Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Conversation

@ant0nsc
Copy link
Contributor

@ant0nsc ant0nsc commented Feb 3, 2022

Linux PR build to run pytest got stuck after agent version upgrade. This PR changes pytest to run on Windows, apart from the tests that are Linux-specific.

Also renamed many build legs so that they can be found more easily in the UI.

Closes #651

Please follow the guidelines for PRs contained here. Checklist:

  • Ensure that your PR is small, and implements one change.
  • Add unit tests for all functions that you introduced or modified.
  • Run PyCharm's code cleanup tools on your Python files.
  • Link the correct GitHub issue for tracking.
  • Update the Changelog file: Describe your change in terms of
    Added/Changed/Removed/... in the "Upcoming" section.
  • When merging your PR, replace the default merge message with a description of your PR,
    and if needed a motivation why that change was required.

@ant0nsc ant0nsc enabled auto-merge (squash) February 3, 2022 20:58
@pytest.mark.skipif(is_windows(), reason="cucim package is not available on Windows")
def test_load_roi(level: int, margin: int, foreground_threshold: Optional[float]) -> None:
dataset = MockSlidesDataset()
sample = dataset[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

is this moving the tests to Windows and skipping them a temporary workaround?
skipping all tests related to cucim is a problem for the histo pipeline. For now these functions are used less frequently because they are used for patching and we store the patches. But if we want to move towards online patching this will prevent testing on the end-to-end pipeline

@ant0nsc ant0nsc merged commit a6b1516 into main Feb 4, 2022
@ant0nsc ant0nsc deleted the antonsc/stuck_job_fix2 branch February 4, 2022 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux PR build is getting stuck after agent version upgrade

4 participants