Repository navigation
ci: set the CI label automatically; only maintainers can override it - #5345
Conversation
A new "Set CI label" workflow picks the CI:* label from the changed files on every PR event (first match wins): dependency, container or 3rdparty/ submodule changes -> CI:L1; only docs, skills, Autobot config or the PR template -> CI:docs; anything else -> CI:Lfast. A CI:* or "Skip CICD" label set by a repo maintainer (admin or maintain role) is kept until a push changes the bot's own pick. A label anyone else sets is replaced, and the bot explains in one PR comment that it edits in place. The workflow runs on pull_request_target from the base branch and never checks out PR code. The rules live in .github/scripts/ci_label.py (stdlib only) so other CI systems can reuse them. Signed-off-by: Terry Kong <[email protected]>
Signed-off-by: Terry Kong <[email protected]>
|
/ok to test a29d183 |
|
/review-approve |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
I reviewed all five changed files and traced label selection through the affected CI jobs and quality check. The findings below cover override handling, stale reconciliation state, and missed container validation.
This was a static review. I did not execute tests or lint, and live CI results were not available. All acceptance checks below are proposed, not run. Three delegated inspections reached completion, but only one substantive report was delivered; I inspected the other two assignments directly before finishing.
Generated by Codex
Review generated by codex. This was a full review. Request a full review with /review reset=true.
Workflow and script files only need CI:Lfast when the main CI run reads them. Every other .github/ file now counts like docs. The files the main run reads are listed in MAIN_CI_FILES. Signed-off-by: Terry Kong <[email protected]>
|
/ok to test be752a8 |
|
/review-approve |
|
/resolve-conflict |
- A maintainer's Skip CICD now expires on a push that changes the pick, like a CI:* override. - With several maintainer CI:* labels, the newest one stays. - Read labels live instead of from the event payload, and do not expire labels a maintainer set after the push. - Edit only the bot's own marked comment, and show the kept override in it. - Docs and the cp-to-main skill no longer tell people to set CI labels by hand on main. Signed-off-by: Terry Kong <[email protected]>
Signed-off-by: svcnemo-autobot <[email protected]>
…it-5345b Signed-off-by: Terry Kong <[email protected]>
|
/ok to test 47d14d4 |
|
/ok to test 5b90648 |
|
/review-approve |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
I checked all seven prior findings against the current source and compared the subsequent changes with the previous reviewed tree. The fixes address the earlier override-handling, reconciliation, comment-ownership and explanation failures. The updated procedures also resolve the conflicting label instructions, with an explicit release-branch exception.
One prior correctness issue is still unresolved: image-installer changes select a tier that skips rebuilding the image (C8, previously C4).
Three delegated inspections completed. I verified the remaining finding through the current classifier, container-build conditions and test action. This was a static review; I did not execute tests, lint or builds, and live CI results were unavailable. Release-branch trees were not supplied, so their workflow availability was not independently verified.
Generated by Codex
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
The image build runs docker/*.sh and docker/*.py (Apptainer, Mooncake and Dynamo installers, uv cache helpers), so changing one must rebuild the image. Signed-off-by: Terry Kong <[email protected]>
|
/ok to test 53379a1 |
|
/review-approve |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
C8 is addressed in the current source. The updated classifier rules select CI:L1 for Docker shell and Python helpers, including the Apptainer and nested Dynamo installers. That tier enables the container-build path instead of reusing the Lfast image. The regression cases cover the added helper rules while keeping Docker documentation at CI:docs and retaining neighboring classification assertions.
I compared the subsequent changes with the previous reviewed tree and verified their affected CI paths. Three delegated inspections completed. I found no unresolved prior finding or eligible new regression within this follow-up scope.
This was a static review. I did not execute tests, lint or builds, and live CI results were unavailable.
Generated by Codex
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
What and why
Authors (and their agents) often pick the wrong
CI:*label: recipe changes markedCI:docsskip the config checks, and dependency bumps run atCI:Lfast. This PR sets the label automatically, and only maintainers can override it.A new
Set CI labelworkflow picks the label from the changed files on every PR event. First match wins:pyproject.toml,uv.lock,Dockerfile*,docker/**.sh,docker/**.py,3rdparty/**CI:L1*.md,docs/**,skills/**, or.github/**files the main CI run doesn't readCI:docs.github/files the main CI run reads (MAIN_CI_FILES)CI:LfastCI:*orSkip CICDlabel set by a repo maintainer (admin or maintain role) stays until a push changes the bot's own pick.CI:L0orCI:L2. A maintainer sets those, andCI:L1for broad core changes.It runs on
pull_request_targetfrom the default branch, reads the script from that same commit, and never checks out the PR's code. The rules live in.github/scripts/ci_label.py(stdlib only), so other CI systems can reuse them.skills/cicdandCONTRIBUTING.mdnow say the label is automatic.Issues
None
Convergence / perf / functionality proof
N/A: CI only; no training code changes.
CI:L1still need a maintainer.tests/unit/test_ci_label.py: 20 passed.pull_requestthere, sincepull_request_targetreads the default branch). Docs-only gotCI:docs, code gotCI:Lfast, a push addinguv.lockswitched toCI:L1. A maintainer'sCI:L1survived a docs-only push and was replaced after a push that changed the pick. No run failed. Not tried live: a non-maintainer's label (only one account on the fork); unit tests cover it.Needs upstream changes
None
PR commands and CI
/ok to test <full-commit-sha>: start CI for that commit. Post again after each push./review: automated review comments. Addmode=strictfor a stricter review,reset=truefor a fresh full review./resolve-conflict: Autobot mergesmaininto this PR and resolves the conflicts.🤖 Generated with Claude Code