Skip to content

Add reusable GitLab skill evaluation and repository onboarding - #248

Merged
rng1995 merged 19 commits into
mainfrom
feat/christopherk/gitlab-ci-integration
Oct 30, 2026
Merged

rng1995 merged 19 commits into
mainfrom
feat/christopherk/gitlab-ci-integration

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Bring SkillEvaluator's Tier 1 checks, including SkillSpector security scanning, into GitLab CI using the same container as GitHub Actions. The reusable job checks changed skills in detached merge requests, applies a configurable quality threshold, and retains reports when checks fail.

Adds a visual repository integration page, separate GitHub and GitLab guides, and directly copyable source templates in ci/templates/. Report, log and PR-comment examples live in the public ci/examples/ directory. Release generation fills in immutable workflow and image pins for both platforms.

Optional GitHub hosting now verifies a separate GitHub-signed execution receipt before accepting the approved scan configuration. Hosting setup adds id-token: write to the scan caller and refreshes its approved blob. Ordinary scans retain their existing read-only setup; when signing permission is unavailable, downloadable reports remain available and hosting is explicitly skipped.

#238 has merged. This PR targets main and is no longer stacked on its feature branch. The official CI image and generated onboarding bundle still require the reviewed release process before public installation.

Conflict resolution refreshed against main at 618fc0f9 in 4ab1230f. The merge retains the newer parallel scanner, compact publisher evidence, and report design alongside GitLab onboarding and signed execution receipts. Quality thresholds reach every worker; independent quality-gate errors remain prominent in the report and link to the relevant check.

Validation of this refresh:

  • Independent review, Ruff, lockfile consistency, container build, and Fern validation passed (zero docs errors; published-redirect comparison remains unavailable).
  • 2,123 CI, reporting, filesystem, workflow, packaging, discovery and compatibility tests passed before the final main sync; 1,279 reporting/progress/native-report tests passed after it.
  • Real container scans covered workers 1 and 4 with thresholds 70 and 100, changed-skill selection, and no-change selection. Real GitHub scanning uploaded separate full reports, compact JSON evidence, and a signed receipt; the current publisher verified the receipt and generated HTML and PR feedback locally.
  • GitHub checks are rerunning on the updated PR head. The PR remains unmerged. Pages deployment and comment posting were not repeated; the GitHub contract test reused the prior public demo image, while scanner verification used the newly built merged image.

Earlier validation for bec54538, synchronized with main at 935b1628 (the tested production workflow is unchanged from 6585316a):

  • All 10 required GitHub checks passed on this exact head; optional image verification, dependency review, CodeQL and HTML compatibility checks also passed. Naren approved this head, and no unresolved review threads remain. GitHub reported that earlier head as clean and mergeable.
  • Independent review of the GitLab/reporting changes and the signed-receipt producer/verifier found no remaining blocking issue.
  • Before the final base sync, the combined CI, reporting, validator, CLI, packaging and workflow regression run passed: 3,207 tests, 2 intentional skips. The merged runtime code passed 635 focused rubric, CI, packaging and workflow tests, with 3 expected skips. Naren's final sync preserves that code and adds a GitLab documentation clarification. Independent merge review, Ruff, lockfile consistency and whitespace checks passed.
  • Real GitHub scans covered changed-skill pass, threshold failure, no-change skip, and ordinary scanning without signing permission. The production publisher verified actual GitHub signatures and generated native HTML and PR feedback from those artifacts. A real fork PR confirmed that GitHub withholds signing permission without rejecting the reusable job.
  • Real GitLab changed-skill and full-collection runs passed using the public test image. Threshold failure/report retention and no-change behavior were also verified, on earlier image revisions.
  • Fern validation reported zero errors. The updated local NVIDIA-theme preview renders the onboarding guides; the published-redirect comparison was unavailable because FDR returned 403.

Verification limits: the new publisher generated HTML and comment payloads locally from live GitHub artifacts; Pages deployment and bot-comment posting were not repeated. Paid LLM evaluation and GitLab merged-result pipelines were not run. GitLab hosted reports and MR comments are outside this integration.

@chrisknvidia
chrisknvidia added this pull request to stack #253 October 29, 2026 19:42
@chrisknvidia
chrisknvidia marked this pull request as ready for review October 29, 2026 20:01
Base automatically changed from feat/christopherk/github-tier1-ci to main October 29, 2026 20:26
chrisknvidia and others added 6 commits October 29, 2026 13:35
The shared runner now also redacts NVIDIA API keys, unquoted KEY=value and
Bearer credentials, and parts of them that a scanner cuts or escapes. GitLab
jobs use the same runner, so describe the same coverage in the GitLab guide.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

@rng1995 rng1995 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.

Reviewed the complete PR diff, conversation and review history, including the latest main sync and GitLab documentation clarification at bec5453. No blocking issue remains.

The GitLab detached-MR selection, full-scan fallback, threshold forwarding and report retention match the documented contract. Independently checked the signed execution receipt producer/verifier, fixed public JWKS endpoint, RSA verification, immutable repository/run/attempt/evaluator identities, approved caller blob and bounded ZIP/JWT handling. Receipt capture precedes checkout and stays outside scanner mounts; a second reviewer independently found no blocker.

Validation: CI-focused suite 498 passed, 2 skipped (CI production code unchanged by the final sync); latest-head rubric/packaging/workflow suite 179 passed, 1 skipped, with the one isolated distribution build subsequently passing when allowed to download its build dependencies. The shared environment's older Harbor caused two earlier packaging-contract failures; both pass with private pinned Harbor 0.24.0 / LiteLLM 1.93.2. Ruff over src/tests/ci, whitespace checks and wheel/sdist builds pass. Fern reports zero errors; its sole warning is the unauthenticated published-redirect comparison.

Approval applies to bec5453. DCO, Security and image verification pass; the CI workflow remains queued. Live provider calls and Pages deployment were not repeated.

@chrisknvidia
chrisknvidia enabled stacked auto-merge October 30, 2026 00:16
stacked auto-merge was automatically disabled October 30, 2026 00:27

Pull Request is not mergeable

@rng1995 rng1995 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.

Automated review: 2 findings (0 P1, 0 P2, 2 P3); 2 posted inline.

Comment thread ci/gitlab/skill-evaluation.yml Resolved
Comment thread tests/ci/test_gitlab_template.py Resolved
rng1995 and others added 2 commits October 30, 2026 00:12
…ests

A self-managed GitLab served over HTTP made every run fail on the report
link check. The job now passes CI_JOB_URL only when it is HTTPS.

The template tests started from the full outer environment, so a suite
run inside a GitLab merged-results pipeline failed. They now drop CI_,
GITLAB_ and SKILL_EVAL_ variables first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Resolve CHANGELOG.md by keeping both sides' Unreleased entries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

@rng1995 rng1995 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.

Approving at 9f3b94a. A security pass over the GitLab job, the signed workflow receipts and credential redaction on the GitLab outputs found no issues. I pushed fixes for the two review comments (HTTPS-only job links, and template tests isolated from the outer CI environment) and merged current main, keeping both sides of the CHANGELOG. All required checks pass.

@rng1995
rng1995 merged commit eff92ac into main Oct 30, 2026
20 checks passed
@rng1995
rng1995 deleted the feat/christopherk/gitlab-ci-integration branch October 30, 2026 07:45
@rng1995 rng1995 mentioned this pull request Oct 30, 2026
15 of 20 tasks
chrisknvidia added a commit that referenced this pull request Oct 30, 2026
* feat: add reusable GitLab skill evaluation
* test: cover merged-result mode and improve mobile flow
* docs: clarify shared CI runtime
* docs: show PR feedback inline and clarify template setup
* docs: publish copyable CI template and example guides
* docs: keep template onboarding within README length limit
* fix(ci): verify signed workflow receipts before publishing reports
* test(ci): cover optional signing permissions in reusable scans
* test(ci): preserve read-only permissions in scan templates

Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
* docs(gitlab): describe the wider credential redaction
* fix(ci): pass only HTTPS job links from GitLab and isolate template tests

Signed-off-by: Narendran Raghavan <[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