Skip to content

Issue(medcat):CU-869c570zv stability on windows and macos#338

Merged
mart-r merged 6 commits intomainfrom
issue/medcat/CU-869c570zv-stability-on-windows-and-macos
Feb 16, 2026
Merged

Issue(medcat):CU-869c570zv stability on windows and macos#338
mart-r merged 6 commits intomainfrom
issue/medcat/CU-869c570zv-stability-on-windows-and-macos

Conversation

@mart-r
Copy link
Collaborator

@mart-r mart-r commented Feb 16, 2026

This PR (hopefully) fixes the stability workflow failures on Windows and MacOS.

The Windows failure was due to how temporary files are used on Windows. They can't be opened multiple times (i.e to write and read).

The MacOS issue seems to have been a rate limiting one. So hopefully mocking the GH call will fix it.

EDIT:
I had the stability workflow run in the 2nd to last commit to double check that everything works. And it did. So that's why the change to run the workflow was reverted.

@tomolopolis
Copy link
Member

Copy link
Collaborator

@alhendrickson alhendrickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

mock_get_version.return_value = cls.use_version
cls.scripts_path = download_scripts.fetch_scripts(cls._temp_dir.name)
with unittest.mock.patch(
"medcat.utils.download_scripts._find_latest_scripts_tag"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally agree that this fixes it

I'm not 100% if we should mock stuff in the stability check though - maybe we can just add some retries with back off? Is there any chance that we actually break this but dont test it, eg we delete all the tags in github (accidentally...), this action still says success but the scripts are broken. Now I say that seems like 0% chance of that...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore my comment altogether actually - just saw that this is a regular test. 100% ignore my above, and carry on as you were

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, a regular test that also gets run during the stability workflow. But during that there's A LOT of them which means we get rate limited (apparently).

@mart-r mart-r merged commit 87ef606 into main Feb 16, 2026
21 checks passed
@mart-r mart-r deleted the issue/medcat/CU-869c570zv-stability-on-windows-and-macos branch February 16, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants