Repository navigation
fix(ci): skip paid LLM Tier 1, Tier 2 and Tier 3 jobs when no skill changed - #468
Conversation
With scan-mode auto, a PR or MR that changes no file under a configured skill root no longer runs the paid LLM Tier 1 pass. A setup-only change used to scan every skill with provider calls, so a provider quota error (HTTP 429) failed the check even though no skill changed. The keyless Tier 1 scan still runs, covers every skill for a setup change, and stays the gate. - GitHub: eligibility emits skills-changed from the PR file listing. tier1-llm and the keyless artifact's gate name both use it. Explicit scan-mode all, pushes, manual runs and truncated listings keep the enriched pass. - GitLab: run_tier1_image.py stops before reading a provider key. The aggregate recomputes the same decision with the pinned tools (run_tier1_image.py --skills-changed) instead of trusting an artifact or checkout file, and fails closed when it cannot. - select_changed_skills.skill_root_changed is the shared predicate, and tests hold the GitHub inline copy equal to it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Points the candidate descriptor and this repository's callers at 02c141c, so this repository's own runs skip the LLM-enriched Tier 1 job when no skill changed. trusted-caller-blobs follows the updated caller blob on both trusted jobs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
A pull or merge request that changes no file under a configured skill root (scan-mode auto) now also skips the paid Tier 2 and Tier 3 jobs. A configuration-only change used to run full Tier 2/3 evaluations, including live agents, on every skill. Reports now list both tiers as skipped because no skill changed, not as incomplete. - The "did a skill change?" check moves to select_changed_skills.skills_changed, with a `select_changed_skills.py --skills-changed` command. The launcher, the GitLab paid-tier job and the GitLab aggregate all use it. - GitHub: paid-tiers runs only when eligibility says skills changed. The aggregate needs eligibility and receives SKILL_EVAL_SKILLS_CHANGED. Fork PRs, whose file lists are never read, report true, so their skipped paid tiers keep the existing reason. - GitLab: each paid-tier job skips before admission when no skill changed. The aggregate recomputes the decision once, exports it, and fails only when enriched Tier 1 evidence depends on an answer it cannot compute. - run_tiers aggregate records missing Tier 2/3 evidence as skipped only for an exact "false". Missing Tier 1 evidence still fails. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Points the candidate descriptor and this repository's callers at 80ef7b6, so onboarded and self-CI runs also skip Tier 2 and Tier 3 when no skill changed. trusted-caller-blobs follows the updated caller blob on both trusted jobs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia
left a comment
There was a problem hiding this comment.
LGTM. Same-repo PRs now default skills_changed to scan_mode == 'all' and set it to true when any changed path (both sides of a rename) is under a skill root. A truncated file list still counts as both a setup change and a skill change. Pushes, manual runs and fork PRs keep the paid jobs. In the aggregate, missing Tier 2 and 3 evidence only becomes skipped when the output is exactly false. On GitLab, an exit code of 2 from --skills-changed runs the paid tier, and the aggregate fails when the enriched evidence status is unknown, so an error can't silently skip a gate. The pins follow the repo's self-pin convention. 253 CI tests pass and ruff is clean.
chrisknvidia
left a comment
There was a problem hiding this comment.
Reading this after it merged, so treat what follows as follow-ups.
I went through the skip decision in all three places (GitHub eligibility, the GitLab paid jobs plus aggregate, and the Tier 1 launcher) looking for a way to skip when a skill did change, and I could not find one.
What I checked: edits only under scripts/ or references/, renames out of the root (both sides are counted), whole-skill deletes, mode-only changes, a gitlink under the root with ignore = all, merging main into the branch, a missing or bogus base commit and a shallow clone. I ran the shared helper against throwaway git repos for those, and each one answers 'run' or fails hard, never 'skip'. Fork PRs, pushes, manual runs, scan-mode all and a file list too long to read all stay on 'run'. Only an exact 'false' turns missing Tier 2/3 evidence into 'skipped', and missing Tier 1 evidence still fails the aggregate. If the eligibility job itself fails, its outputs are empty: the paid jobs are not started and the aggregate reports Tier 2/3 as incomplete, not skipped.
Workflow security: nothing untrusted reaches a shell. inputs.paths goes through env, the eligibility script is a quoted heredoc, the GitLab check quotes the pinned-tool path and CI_PROJECT_DIR, and the helper runs git with the hardened environment. No new actions or permissions. The pins and trusted-caller-blobs match (the blob hash is the caller's current blob, and the pinned workflow and ci/ are identical to this head).
Required gate: neither request / require-nvskills-ci (it polls the NVSkills status for skills/ and team-skills/ changes) nor the repo's required checks depend on the paid jobs, and the aggregate always runs, so skipped jobs neither satisfy nor fail those checks.
Before merging, please fix the docs wording: with the generated caller's paths filter, the PRs that now skip are exactly the setup, pin-bump and model/secret PRs, and the README (the 'Missing prerequisites remain visible' line and the HTTP 404 advice), docs/advanced-ci.mdx and docs/tier1-validation.mdx still describe the old behavior. Also drop the unrelated baselines sentence from the changelog. Smaller points are inline.
* fix(ci): address #468 review follow-ups for the paid-job skip Follow-ups from the post-merge review of #468: - Docs: say plainly that the PRs which now skip the paid jobs are the setup PRs (onboarding, pin bumps, and caller model, secret or gateway changes). Their first provider-backed run is the push after merge, a manual run, or the next skill PR, and `scan-mode: all` exercises a caller change before merging. Updated the statements that still promised the old behaviour: the README's missing-prerequisites line, the HTTP 404 advice and the setup-PR note, plus docs/advanced-ci.mdx and docs/tier1-validation.mdx. - CHANGELOG: the skip entry no longer carries the unrelated security-baselines sentence. - run_tiers setup detection now reads select_changed_skills.changed_paths, the same list as the skill-root check. That list includes gitlinks a committed .gitmodules "ignore" setting would otherwise hide. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]> * docs(ci): qualify provider prerequisite evidence by selected tier Signed-off-by: Narendran Raghavan <[email protected]> * fix(ci): include ignored GitLab setup gitlinks Signed-off-by: Narendran Raghavan <[email protected]> --------- Signed-off-by: Narendran Raghavan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…it (#712) Every push to main and every pull request showed the "Skill checks (all tiers)" workflow as failed with no jobs. GitHub's error was: Invalid workflow file: .github/workflows/skill-checks-all-tiers.yml#L24 error parsing called workflow ".github/workflows/skill-checks-all-tiers.yml" -> "NVIDIA/SkillEvaluator/.github/workflows/evaluate-all-tiers.yml@80ef7b6..." : workflow was not found. The caller pinned the reusable workflow to 80ef7b6, a commit from the pull-request branch of #468. That commit is reachable from no branch or tag since the squash merge, and GitHub resolves a called workflow only at a reachable commit, so every run since the merge failed before any job started. The feedback caller pins the same commit and would fail the same way once the scan workflow runs again. The previous pin, e56ced7 from #439, was orphaned the same way. Pin both callers to ba7779a, the workflow_ref and tools_ref of the committed 0.9.0 release descriptor, which is on main, and move the Tier 1 image to the same release's digest so the callers match what the all-tier onboarding writes today. Refresh trusted-caller-blobs for the edited scan caller. Add a test that the repository's own callers pin a revision named by a committed release descriptor, which rejects pull-request branch commits before they are merged. Signed-off-by: Christopher Kevin <[email protected]>
Summary
With the default
scan-mode: auto, a merge request or same-repository pull request that changes no file under a configured skill root now skips all paid jobs: the LLM-enriched Tier 1 pass (tier1-llm), Tier 2 and Tier 3.scan-mode: all, and PR file lists too long to check in full keep every paid job.Why
On #439, a CI-only PR,
Skill checks (all tiers) / skills / tier1-llmscanned every skill with provider calls and failed on an NVIDIA Build HTTP 429 (rate or quota limit), even though no skill changed. The same PR also ran full Tier 2 and Tier 3 evaluations, including live agents, on every skill. That spends provider quota and runner time, and produces results that say nothing about any skill.Changes
ci/select_changed_skills.pynow holds:skills_changed()and theselect_changed_skills.py --skills-changedcommand;changed_paths(), which uses--ignore-submodules=noneso a committed.gitmodulesignoresetting cannot hide a submodule change under a skill root;skill_root_changedrule. Tests hold GitHub's inline copy equal to it..github/workflows/evaluate-all-tiers.yml):skills-changedfrom the PR file list, counting both the old and new path of a rename.tier1-llm, the keyless Tier 1 artifact's gate name andpaid-tiersall use that output.SKILL_EVAL_SKILLS_CHANGED.ci/gitlab/all-tiers.yml):ci/run_tiers.py): missing Tier 2/3 evidence becomesskipped, with a reason, only for an exactfalse. Missing Tier 1 evidence still fails the gate.80ef7b62, andtrusted-caller-blobsfollows the updated caller.ci/templates/all-tiers/README.mdandCHANGELOG.md.Testing
--skills-changedcommand, including the submodule case.run_tiersskipped rows, and a missing Tier 1 that is never excused.tests/ci, the onboarding and golden suites, andtests/reporting/test_retained_publication_scope.pygive 2,052 passed and 9 failed. I believe none of the 9 come from this change:python -Isubprocesses that import an outdated SkillEvaluator package from another checkout on my machine.test_ci_worker_diagnostics.py. It also failed when run alone, while the machine's load average was about 180, and this PR doesn't touch its code. CI's test jobs will check it properly.🤖 Generated with Claude Code