Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-41846: Use the test ID as the unique component of the test run collection #387

Merged
merged 3 commits into from Nov 27, 2023

Conversation

timj
Copy link
Member

@timj timj commented Nov 22, 2023

This is a reasonable thing to do in general, but is important when using pytest-randomly because when using that plugin without the --randomly-dont-reset-seed flag, the seed is forced to the global value before every test is run. This leads to makeTestCollection returning the same random integer for every test and the runs clash in the shared repo.

Requires lsst/daf_butler#910

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

This is a reasonable thing to do in general, but is important when
using pytest-randomly because when using that plugin without the
--randomly-dont-reset-seed flag, the seed is forced to the global
value before every test is run. This leads to makeTestCollection
returning the same random integer for every test and the runs
clash in the shared repo.
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a1e3b54) 82.37% compared to head (1e9c489) 82.36%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #387      +/-   ##
==========================================
- Coverage   82.37%   82.36%   -0.02%     
==========================================
  Files          92       92              
  Lines       10367    10369       +2     
  Branches     1955     1955              
==========================================
  Hits         8540     8540              
- Misses       1484     1485       +1     
- Partials      343      344       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Since the factory is a singleton, another test running can
change the storage class definitions and cause the test to fail
when an unexpected storage class is matched to a python type.
@timj timj merged commit e4973f5 into main Nov 27, 2023
12 of 13 checks passed
@timj timj deleted the tickets/DM-41846 branch November 27, 2023 18:55
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.

None yet

2 participants