File tree Expand file tree Collapse file tree
.github/workflows/scripts/selective-testing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 ".github/CODEOWNERS" : ["tests/sentry/api/test_api_owners.py" ],
3636}
3737
38+ # Tests that should always be run, even if no files are changed.
39+ TESTS_TO_ALWAYS_RUN : set [str ] = {
40+ "tests/sentry/taskworker/test_config.py" ,
41+ }
42+
3843
3944def _matches_trigger (file_path : str , trigger : str | re .Pattern [str ]) -> bool :
4045 if isinstance (trigger , re .Pattern ):
@@ -164,6 +169,9 @@ def main() -> int:
164169 print (f"Including { len (existing_changed_test_files )} directly changed test files" )
165170 affected_test_files .update (existing_changed_test_files )
166171
172+ # Include tests that should always be run
173+ affected_test_files .update (TESTS_TO_ALWAYS_RUN )
174+
167175 # Filter out any test files found via coverage lookup that no longer exist
168176 # (e.g. a deleted test file that covered the same source as another changed file).
169177 existing_files = {f for f in affected_test_files if Path (f ).exists ()}
You can’t perform that action at this time.
0 commit comments