Repository navigation
CI: Run model detection on all events and disable shared_infra run_all - #192
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
…temporarily disable run_all for specific files Co-authored-by: Copilot <[email protected]>
Performance Comparison
|
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the CI workflow to always run affected-model detection (PRs, pushes to main, and manual runs) and adjusts detection logic so shared infrastructure changes no longer force run_all, reducing unnecessary test execution.
Changes:
- Run
detect-affectedon all workflow events and compute changed files differently for PR vs non-PR events. - Remove non-PR fallbacks that previously caused downstream GPU/parity jobs to run unconditionally.
- Disable
_SHARED_INFRA_PATTERNSso core infra file changes no longer automatically triggerrun_all.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/main.yml |
Runs detect-affected for more event types and gates parity/golden/e2e purely on detection outputs. |
scripts/detect_affected_models.py |
Disables shared-infra patterns so infra changes don’t automatically force full test runs. |
|
The author of this PR, tadani3, is not an activated member of this organization on Codecov. |
…structure logic Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Tommaso Adani <[email protected]>
justinchuby
reviewed
Apr 23, 2026
justinchuby
approved these changes
Apr 23, 2026
tadani3
enabled auto-merge (squash)
April 23, 2026 18:22
justinchuby
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Two problems with the current CI setup:
Model detection was skipped on pushes to
main. Thedetect-affectedjob hadif: github.event_name == 'pull_request', so pushes tomainbypassed detection entirely. Downstream jobs compensated withgithub.event_name != 'pull_request'fallbacks that ran everything unconditionally on main — wasting compute.Any touch to base infrastructure files triggered
run_all. Files like_configs.py,_registry.py,_builder.py, etc. were in_SHARED_INFRA_PATTERNS, causing every model's tests to run even for trivial or scoped changes. This made CI prohibitively slow for infrastructure work.Changes
main.ymlif: github.event_name == 'pull_request'from thedetect-affectedjob — it now runs on PRs, pushes tomain, andworkflow_dispatch.origin/$BASE_REF; pushes diffHEAD~1...HEAD.github.event_name != 'pull_request'fallbacks fromsynthetic-parity,golden-comparison, andgeneration-e2e. These jobs now rely purely on detection output (has_affected/run_all).detect_affected_models.py_SHARED_INFRA_PATTERNS. Changes to_configs.py,_registry.py,_builder.py,_weight_loading.py,_model_package.py,_exporter.py, andmodels/__init__.pyno longer triggerrun_all."other"and do not trigger any model tests.detect_affected_models_test.pyWhat this means in practice
main_configs.pyrun_all=true, every model tested_attention.pymodels/falcon.pyHow to restore
run_allfor infrastructure filesRe-add entries to
_SHARED_INFRA_PATTERNSinscripts/detect_affected_models.py:Risk
Changes to base files like
_configs.pythat break multiple models will not be caught until those models are independently modified. This is an accepted tradeoff for faster CI iteration on infrastructure. If a broad regression is suspected, useworkflow_dispatchwith a manual change list or re-enable the patterns.