[build] dependency changes should run CI tests for given binding#17534
Merged
Conversation
Contributor
Review Summary by QodoAdd dependency lock file overrides for CI target detection
WalkthroughsDescription• Add explicit target overrides for dependency lock files • Lock files now trigger appropriate language-specific CI tests • Deduplicate targets to avoid mixing wildcards with explicit targets • Rename HIGH_IMPACT_DIRS to HIGH_IMPACT_PATHS for clarity Diagramflowchart LR
A["Changed Files"] --> B{"Check HIGH_IMPACT_PATTERN"}
B -->|Match| C["Run All Tests"]
B -->|No Match| D{"Index Exists?"}
D -->|Yes| E["Get Override Targets"]
E --> F["Filter Index Results"]
F --> G["Deduplicate & Combine"]
G --> H["Return Targets"]
D -->|No| I["Directory Fallback"]
File Changes1. rake_tasks/bazel.rake
|
Contributor
Code Review by Qodo
1. Implicit empty-union regex
|
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Bazel “affected targets” Rake task so CI reliably runs the correct binding test workflows when dependency/lock files change (even when those files are not covered by the Bazel-derived test-file index).
Changes:
- Treat
MODULE.bazelas a high-impact path to trigger full test runs. - Add explicit binding target overrides for key dependency/lock files and dedupe/avoid redundant indexed targets for the same binding.
- Rename “dirs” terminology to “paths” for clarity and update related filtering logic.
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.
💥 What does this PR do?
Currently the way ci.yml is detecting bazel targets based on file changes, it is only looking at the queryable target graph and the lockfiles aren't on that, so this adds an explicit override. So
ci-<language>workflow will run.🔧 Implementation Notes
I'm also deduping the other targets so we don't mix and match wildcards and explicit targets. Not that it matters to bazel, but logs will be more readable.
🤖 AI assistance