Repository navigation
Conversation
changes.py named the standalone workflows it skips, and treated every devkit-*.yml workflow and every script/ci file as dev-kit CI. So #1124 (two new standalone workflows, devkit-auto-swap.yml and devkit-swap-review.yml, and their script devkit_auto_swap.py) still ran every dev-kit build, every NPU suite and HIPEP. build_and_test_closure() now works out, from the checkout, the CI files a Build and Test run can use: build-and-test.yml, the workflows and actions it reaches through uses:, transitively, and the script/ci files any of them names or imports (the test_* unit tests aside, which the changes job runs on every event). A changed workflow, action or script/ci file outside it is OUTSIDE_BUILD_AND_TEST: nothing is built or tested for it, and no list has to be kept. It errs towards testing: a mention, comments included, is enough; a reference counts even when the change deletes or renames away its target, so that break is tested and fails; files in script/ci subdirectories count as used; and an unreadable build-and-test.yml leaves every CI file to the existing rules. decide() takes the repo, so --repo works out the closure of that checkout. Co-Authored-By: Claude <noreply@anthropic.com>
Security scan found no critical or high findings on lines changed by this pull requestView the security scan run for complete reports. “New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta. |
This branch has not been deployed
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.
Why
#1124 adds two standalone workflows,
devkit-auto-swap.ymlanddevkit-swap-review.yml, plus their scriptdevkit_auto_swap.py. Build and Test never calls any of them, yet the PR still ran every dev-kit build, every NPU suite and HIPEP. Two reasons:DEVKIT_CImatched by name: anydevkit-*.ymlworkflow and anyscript/ci/file selected every dev-kit area, and an unrecognised script ran every suite.What
build_and_test_closure()works out, from the PR's own checkout, which CI files a Build and Test run can use:build-and-test.yml.uses: ./.github/..., transitively.script/cifiles any of them names or imports. Thetest_*unit tests are left out, because the changes job runs them on every event and they call nothing else.Any changed workflow, action or
script/cifile outside that set isOUTSIDE_BUILD_AND_TEST: nothing is built or tested for it, and there is no list to keep up to date. If a PR wires a new script into Build and Test, its ownbuild-and-test.ymlputs the script in the set, so it is tested.The rule errs towards testing:
script/cicount as used.build-and-test.ymlcannot be read, every CI file falls back to the existing rules.decide()now takes the repo, so--repoworks out the set for that checkout.On #1124's real diff, using its own checkout:
run_tests=false, no build, NPU, HIPEP, dev-kit job or bench. Today the set holds the same workflows, actions and scripts as a hand-built prototype. Outside it are the expected workflows: build-container, cpu-tests, devkit-aie-image, devkit-bench-comment, pr-security-scan, release, smolvla-package and weekly-security-scan.Tests
python3 -m unittest discover -s ci -p 'test_*.py' -t ci: 448 tests OK. New tests cover:uses:, names and imports; wiring a script in; deleted or renamed targets; subdirectories; an unreadablebuild-and-test.yml.setup_windows_deps.ps1, which must still be tested.script/ciscript outside the set must be a test, or be named by another workflow. Anything else is either dead or called in a way the set cannot see.An independent review found three ways a change Build and Test uses could go untested: deleted or renamed targets,
script/cisubdirectories, and--repo. All three are fixed above and covered by tests.check_internal_refs.py: ok.After this merges, merging main into #1124 makes its next run follow the new rule.
🤖 Generated with Claude Code