cta-observatory / ctapipe

Low-level data processing pipeline software for CTAO or similar arrays of Imaging Atmospheric Cherenkov Telescopes
https://ctapipe.readthedocs.org
BSD 3-Clause "New" or "Revised" License
63 stars 266 forks source link

Fix CI after pytest-xdist update #2469

Closed maxnoe closed 8 months ago

maxnoe commented 8 months ago

The new version 3.5 of pytest-xdist was released yesterday changing the order in which tests are run:

now sorts scopes by number of tests to assign largest scopes early – in many cases this should improve overall test session running time, as there is less chance of a large scope being left to be processed near the end of the session, leaving other workers idle.

This lead to the Provenance tests failing due to the nature of this singleton (it contained the provenance of all applications run prior to the provenance test) not only the ones being tested for.

Fixed by monkeypatching the provenance back to an empty state for the tests.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b754690) 92.47% compared to head (b0de499) 92.47%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2469 +/- ## ======================================= Coverage 92.47% 92.47% ======================================= Files 234 234 Lines 19814 19816 +2 ======================================= + Hits 18323 18325 +2 Misses 1491 1491 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.