Skip to content

fix(ci): skip paid LLM Tier 1, Tier 2 and Tier 3 jobs when no skill changed - #468

Merged
chrisknvidia merged 4 commits into
mainfrom
naren/skip-llm-tier1-without-skill-change
Nov 13, 2026
Merged

chrisknvidia merged 4 commits into
mainfrom
naren/skip-llm-tier1-without-skill-change

Conversation

@rng1995

@rng1995 rng1995 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • The free keyless Tier 1 scan still runs. It scans every skill when CI configuration changed, and it is the required Tier 1 evidence.
  • Reports list Tier 2 and Tier 3 as skipped because no skill changed, not as incomplete.
  • Pushes to the default branch, manual runs, scan-mode: all, and PR file lists too long to check in full keep every paid job.
  • GitHub fork PRs never run the paid tiers and keep their existing Tier 2/3 reason.

Why

On #439, a CI-only PR, Skill checks (all tiers) / skills / tier1-llm scanned 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

  • Shared decision. ci/select_changed_skills.py now holds:
    • skills_changed() and the select_changed_skills.py --skills-changed command;
    • changed_paths(), which uses --ignore-submodules=none so a committed .gitmodules ignore setting cannot hide a submodule change under a skill root;
    • the skill_root_changed rule. Tests hold GitHub's inline copy equal to it.
  • GitHub (.github/workflows/evaluate-all-tiers.yml):
    • Eligibility emits skills-changed from the PR file list, counting both the old and new path of a rename.
    • tier1-llm, the keyless Tier 1 artifact's gate name and paid-tiers all use that output.
    • The aggregate needs eligibility and receives SKILL_EVAL_SKILLS_CHANGED.
  • GitLab (ci/gitlab/all-tiers.yml):
    • The enriched Tier 1 job and both paid-tier jobs stop before admission or reading any provider key.
    • The aggregate recomputes the decision once with the pinned tools, never from an artifact or a file in the checkout, and exports it.
    • The aggregate fails only when enriched Tier 1 evidence depends on an answer it cannot compute.
  • Aggregate (ci/run_tiers.py): missing Tier 2/3 evidence becomes skipped, with a reason, only for an exact false. Missing Tier 1 evidence still fails the gate.
  • Pins: the candidate descriptor and this repository's callers point at 80ef7b62, and trusted-caller-blobs follows the updated caller.
  • Docs: ci/templates/all-tiers/README.md and CHANGELOG.md.

Testing

  • New tests cover:
    • GitHub eligibility outputs for skill, setup-only, unrelated, rename-out-of-root, explicit-all, truncated-listing and fork PRs, plus parity with the shared rule.
    • The job conditions and the aggregate's inputs.
    • The launcher skipping before any credential check, and the --skills-changed command, including the submodule case.
    • GitLab paid-tier jobs skipping before admission, and running when a skill changed or the answer is unknown.
    • The GitLab aggregate decision: recomputed true or false, a forged marker file ignored, failure only when enriched Tier 1 is affected, default-branch pipelines unaffected.
    • An end-to-end MR route that uses the real tools against a real git checkout.
    • run_tiers skipped rows, and a missing Tier 1 that is never excused.
  • I ran a sample of the new tests against the code before each fix; they fail there.
  • tests/ci, the onboarding and golden suites, and tests/reporting/test_retained_publication_scope.py give 2,052 passed and 9 failed. I believe none of the 9 come from this change:
    • 8 run python -I subprocesses that import an outdated SkillEvaluator package from another checkout on my machine.
    • 1 is a 5-second timing assertion in 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.
  • Independent review passes found:
    • one problem in an earlier version: the GitLab aggregate trusted a skip-marker file. The recompute above replaces it.
    • three documentation gaps, now fixed. A further check found no way around the fix.

🤖 Generated with Claude Code

rng1995 and others added 2 commits November 12, 2026 11:14
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]>
rng1995 and others added 2 commits November 12, 2026 12:30
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]>
@rng1995 rng1995 changed the title fix(ci): skip the LLM-enriched Tier 1 job when no skill changed fix(ci): skip paid LLM Tier 1, Tier 2 and Tier 3 jobs when no skill changed Nov 12, 2026

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
chrisknvidia merged commit 8b76f2a into main Nov 13, 2026
32 checks passed
@chrisknvidia
chrisknvidia deleted the naren/skip-llm-tier1-without-skill-change branch November 13, 2026 06:06

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread ci/templates/all-tiers/README.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread ci/run_tiers.py Resolved
rng1995 added a commit that referenced this pull request Nov 13, 2026
* 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]>
chrisknvidia added a commit that referenced this pull request Nov 17, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants