Repository navigation
Fix affected-model scoping for concrete model file changes - #528
Conversation
|
|
Co-authored-by: justinchuby <[email protected]>
Performance Comparison
|
There was a problem hiding this comment.
Pull request overview
This pull request tightens CI “affected model” detection so that changes to a concrete model implementation map to the model_types that module directly registers, instead of expanding through the broader import graph and inflating the test matrix.
Changes:
- Adds an early-exit for model modules that have a direct registry mapping, limiting impact to the module’s registered model_types.
- Clarifies intent via inline comments, preserving reverse-dependency scanning for non-directly-registered/shared modules.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@copilot also fix lint and windows ci errors |
Co-authored-by: Copilot Autofix powered by AI <[email protected]> Signed-off-by: Justin Chu <[email protected]>
The CI model-impact detection was over-scoping file changes, so a diff in one concrete model implementation could incorrectly trigger sibling models in the same import graph. That widened the test matrix and made the PR- and Windows-targeted CI behavior less precise than intended.
Scope
Fix
scripts/detect_affected_models.py, the model-file path handling now stops after adding the directly registered model types for that module.Why this matters
src/mobius/models/lfm2.pyno longer incorrectly includeslfm2_vljust because both share common imports or a base implementation.This narrows the detection to the actual model registration boundary while preserving import-graph tracing for shared infrastructure files.