Repository navigation
ci: run the Go job for every path under packaging/ - #2440
Merged
Merged
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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 and why
Part of #2452.
scripts/ci-changed-areas.shlists all ofpackaging/as known, but onlypackaging/man/,packaging/npm/,packaging/pypi-pysysml/and the agent skills were claimed by an area. A pull request that changed only another subtree (packaging/msi/and itsz3.pin,packaging/homebrew/,packaging/mcp/server.json,packaging/conda/,packaging/scoop/,packaging/winget/,packaging/msys2/,packaging/windows/) was neither claimed nor escalated to the full tier, so every job was skipped and the pull request passed with nothing run. The Go suite is what checks those files (tests/hygiene,cmd/*/man_test.go).The
packaging/man/rule that already ran the Go area is widened to the whole tree (packaging_pattern), and the known-path list reuses the same pattern, so a packaging path can no longer be known without running a job. Areas that already claimed a subtree (docs, Python, Node) still run as before, with the Go area added.Effect on CI usage: a packaging-only pull request now runs the Go job at the quick tier where it previously ran nothing. No job or step is added.
How it was verified
scripts/ci-changed-areas-test.sh: new cases for each packaging subtree, a not-yet-existing subtree, and the quick and queue tiers; all cases pass.TestEveryPackagingSubtreeRunsTheGoAreaintests/hygienewalks every file underpackaging/and requires the quick tier with the Go area on. Against the script ondevelopit reports 35 files withgo=false; with the change it passes.go test -count=1 ./tests/hygiene,go vet ./tests/hygiene,gofmt -l .,scripts/check-doc-ids.py,scripts/changelog.py checkpass. The fullmake testandmake lintwere not run locally; the change touches only the area script, its tests and a changelog fragment.Checklist
make testandmake lintpass locallychanges/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelogImplemented in session Fix OpenSysML CI, release and supply chain findings
Review with Devin · Open in Devin Desktop