fix(ci): add path-aware PR checks #255
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review!255
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/path-aware-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why:
What:
path-classificationPR job that emits separateapp_ciandopencode_cirouting outputs.opencode-teston opencode configuration/harness changes..opencode/**and rootopencode.jsonas opencode inputs, while defaulting to application CI when path detection is empty or uncertain.semantic-reviewavailable for PRs after path classification instead of requiring the full application gate set for opencode-only PRs.Validation:
cargo nextest run -p ar-gateway pr_ci_classifies_changed_paths_before_expensive_gatescargo nextest run -p ar-gateway pr_ci_classifier_treats_root_opencode_json_as_opencode_and_fails_closed_to_app_ci_on_uncertain_diffcargo nextest run -p ar-gateway --test ci_workflow_contractjust fmtjust ciCloses #252
This PR introduces a
path-classificationjob to optimize CI checks by routing based on changed paths. It ensures that only relevant checks run for opencode and application changes, potentially reducing unnecessary CI load. The changes appear well-structured, but ensure that the path classification logic is thoroughly tested.Walkthrough
path-classificationjob to determine which CI checks to run based on changed paths.fmt,clippy,test,deny,build,opencode-test) to depend on thepath-classificationjob and run conditionally based on its outputs.semantic-reviewjob now only depends onpath-classification, which may affect its execution timing.path-classificationjob and its integration with other CI jobs.path-classificationjob correctly identifies opencode paths and defaults to application CI when uncertain.