Skip to content

perf(ci): omit Docker-in-Docker from GitLab Tier 2 - #408

Merged
rng1995 merged 57 commits into
mainfrom
naren/gitlab-tier2-without-dind
Nov 9, 2026
Merged

rng1995 merged 57 commits into
mainfrom
naren/gitlab-tier2-without-dind

Conversation

@rng1995

@rng1995 rng1995 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Problem and behavior

GitLab’s shared native matrix starts Docker-in-Docker for Tier 2 although deduplication only needs chat and embeddings. Tier 2 now runs with no services or Docker client configuration; Tier 3 retains its TLS-protected daemon.

Follows merged #349. This PR targets main.

Changes

  • Keep public skill-evaluation-native for Tier 3; add a Tier 2 child inheriting timeout, tags, environment, admission rules and advisory policy.
  • Clear Tier 2 services/TLS settings, preserve existing local-mode overrides, and collect both native jobs’ artifacts.
  • Recognize Tier 2 overrides in ci status; update GitLab docs/template comments.
  • Pin the candidate include/tools/publisher source to 157bab5730759cb46b40645beb1c65542fb21520.
  • Use the verified released 0.8 Tier 1 image. The old 0.7 image rejected valid multi-valued metadata.domain; no skill content or gate policy is weakened.

Validation

  • 1,635 CI/onboarding tests passed, 23 skipped; independent review verified 177 focused tests.
  • Root feedback/admission/workflow checks: 280 passed; final descriptor checks: 121 passed, followed by 41 workflow/image compatibility checks. Suites overlap.
  • Both follow-up branches merge cleanly; 144 combined workflow/onboarding tests passed with #409.
  • Ruff, formatting and diff checks passed. Fern: zero errors; existing unauthenticated redirects warning.

Branch sync after #349’s squash merge preserved the reviewed tree exactly. No GitLab pipeline/server lint was executed and no runner/credentials were changed; the disposable runner remains paused.

…nboarding

Signed-off-by: Narendran Raghavan <[email protected]>

# Conflicts:
#	CHANGELOG.md
rng1995 and others added 18 commits November 7, 2026 20:36
- Send only SKILLEVALUATOR_GITLAB_TOKEN to the origin host, and require
  --tiers or --platform gitlab before contacting a non-github.com origin.
- Report a GitLab root config as configured only when it passes the same
  include checks as trusted feedback; read the default-branch pipeline.
- Parse trusted-caller-blobs exactly like the feedback job.
- Point setup next steps at ci demo --tiers 1,2,3.
- Reject all-tier-only init options when --tiers is omitted.
- Create the receipt directory before saving files or opening a PR/MR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
- Aggregate the newest tier artifact from this or an earlier attempt, so
  "Re-run failed jobs" no longer drops Tier 1 or Tier 2/3 evidence from jobs
  that were not rerun; accept ci-tier.json from attempts 1..current of the
  same run and record each tier's source_attempt.
- Stop GitHub paid-tier evaluation before the job timeout so the controlled
  timeout path retains evidence, and keep the time-budget diagnostic when no
  report was produced.
- Downgrade a skill whose post-run Tier 3 recheck fails instead of aborting
  the aggregate, and treat neutral or skipped claims missing selected skills
  as incomplete.
- Accept skill directories containing #, %, : or ? in the manifest.
- Pin OpenCode for Harbor-installed runs with the release CI bootstraps.
- Let run_tiers pick the embedding default and forward Docker TLS settings.
- Document neutral, source_attempt and Tier 2's real inputs and findings.

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

- Treat manifest skill paths as escaped display text, so a legal POSIX
  directory such as skills/a\b no longer aborts the aggregate after its tier
  passed; generated report paths still reject backslashes and URL delimiters.
- Document that Harbor installs OpenCode 1.19.5 and assert the pin on both
  agent pages so future drift fails the docs test.

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

- read_results accepts the producer's incomplete downgrade of a neutral
  Tier 3 result by checking the pre-neutral native status; neutral now
  also requires complete paired execution, so nothing is promoted.
- GitLab artifact downloads follow object-storage redirects (HTTPS only,
  no userinfo, at most five hops) without forwarding PRIVATE-TOKEN;
  JSON API calls still refuse redirects.
- GitHub report comments are deferred to only when their run marker names
  a producer run of the approved caller for the same PR head; forged or
  stale github-actions[bot] markers are overwritten and never raise.
- Fork PR runs and superseded producer attempts are skipped instead of
  failing, in both the reusable job condition and github_feedback.
- The GitLab source pipeline may still be pending, running or manual;
  the bound aggregate and request jobs prove completion.
- The archive member limit is derived from the documented 100-skill limit.

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

- Non-success Tier 2/3 skills and a failed Tier 2 catalog retain worker
  diagnostics that read_results never opens. Members under
  tier{2,3}/skill-NNN/diagnostics/ and tier2/catalog/diagnostics/ no longer
  consume the report member or expansion limits; they have their own bound
  derived from ci/diagnostics.py (files, bytes and nested directories), so
  100 failing skills with retained logs are accepted on GitHub and GitLab.
- A report comment marker now verifies only for a producer run whose head
  repository is this repository and whose recorded pull requests, when
  present, include this PR, so fork or sibling-PR runs of the same head
  cannot make the genuine run defer.
- Correct the GitHub docs on which report comments are deferred to,
  updated in place, or left untouched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
- Run the Docker-in-Docker daemon with TLS (port 2376, /certs) so agent
  containers cannot use its API; document the /certs/client runner volume.
- End the evaluator budget min(20, minutes / 4) minutes before the native
  job timeout (16800 s for 300 minutes) so evidence is retained.
- Declare environment action prepare on native jobs: scoped secrets stay,
  but no deployment is recorded for outdated-deployment checks to drop.
- Offer .skill-evaluation-not-feedback, document the SKILL_EVAL_FEEDBACK
  job guard, and warn in ci status about unguarded root jobs.
- Never replace an existing root .gitlab-ci.yml: preview prints the
  rendered files and merge steps; save and pr refuse with guidance.
- Preview lists proposed files; --show-files prints their contents.
- Say that a refused feedback request skips comments, not the gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
The GitHub feedback job shared one repository-wide concurrency group with
the default single pending slot, so a third PR's producer run cancelled a
second PR's pending feedback and that PR never got its comment. Scope the
group to the workflow_run head repository and branch, and queue up to 100
pending runs, matching the publish workflow.

The compact comment renderer escaped "@" as "&#64;", which Markdown decodes
back to "@" before GitHub and GitLab resolve mentions. Insert a zero-width
space after "@" as the previous renderer did, and test hostile skill paths,
reasons, errors and top issues for both bare and entity-encoded mentions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
…only for execution failures

- Share one CI-setup predicate (select_changed_skills.setup_changed) between
  run_tiers and the Tier 1 checks. Tiers 2/3 no longer widen to a full scan for
  a consumer's ci/ scripts, see both sides of a rename, and on GitHub take the
  eligibility job's scan mode, including its large-diff fallback. Tests keep
  the inline GitHub and GitLab predicates equal to the Python one.
- Aggregate rows keep each tier's selected skills, so the PR/MR comment shows
  "Skipped · Not selected for this tier" instead of INCOMPLETE.
- Retain worker diagnostics only for incomplete/not_run skills or unexpected
  exit codes, not complete failed or neutral verdicts. Keep command.log first,
  one trial per Harbor job (failing first) and at most four per skill, and
  share a 1000-file / 16 MiB budget across a tier, within feedback's bounds.

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

- Retain worker diagnostics when the canonical report records incomplete
  evidence, even behind a failed verdict: Tier 3 execution that is not
  complete (one agent failed while another scored a fail), or incomplete
  scans in Tiers 1/2 where a blocking finding outranks them in the status.
- Choose diagnostic trials across every Harbor job of a skill before
  collecting: one per job, failing trials first, at most four. A failing
  agent whose jobs sort last is no longer pushed out by passing jobs.
- Require --timeout-minutes of at least 10, so the evaluator budget always
  ends at least two minutes before the rendered job timeout. Document that
  a GitLab job stopped at its timeout still uploads no native evidence.
- Describe the current diagnostics producer contract above feedback's
  diagnostic bound and rename the matching test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
`git remote get-url origin` applies url.<base>.insteadOf rules. A
developer-level rule such as https://github.com/ -> ssh://[email protected]/
turned the supported github.com origin into an ssh:// URL, so `ci init`
refused it and the onboarding test suites failed outside CI. Parse the
configured remote.origin.url first and fall back to the rewritten URL, which
keeps alias origins such as gh:owner/repo working. Tier 1 and all-tier
onboarding share the helper.

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

- Merge steps (CLI preview, docs, template, catalog) say to keep `test` in
  a root `stages` list; every SkillEvaluator job uses stage test.
- The upgrade path in cli-onboarding merges the SKILL_EVAL_FEEDBACK job
  guards to the default branch before the setup MR, matching the GitLab
  guide and the CLI.
- `extends: .skill-evaluation-not-feedback` is offered only for jobs without
  rules, only or except; ci status and preview treat a job that keeps
  only/except (directly or through extends) as unguarded.
- The trusted feedback job uses `environment: action: prepare`: its scoped
  publisher token and deploy access still apply, ci/feedback.py never reads
  a deployment record, and "Prevent outdated deployment jobs" can no longer
  drop an older MR's feedback.
- Document that deployment approvals do not gate prepare jobs; restrict
  them with protected-environment deploy access.
- The feedback request names the failure: a permission hint only for HTTP
  400/401/403/404 (protected-branch pipelines and pipeline variables), a
  retry hint for other HTTP errors, and separate transport, CI-context and
  response messages. Every failure still skips feedback, not the Tier 1 gate.
- A pr-mode remote root conflict tells the user to update the checkout to
  the default branch before --mode preview prints the merge steps.

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

- Guards merged before the setup MR use rules: a job without rules, only or
  except gets the guard followed by `- when: on_success`. The hidden
  `.skill-evaluation-not-feedback` job comes from the all-tiers include, so
  `extends` of it fails validation until the setup MR merges (CLI step 5,
  gitlab-ci.mdx step 5 and the template comment).
- Guard detection resolves only/except as extends does: a job's own value,
  even null, overrides inherited ones and the last parent wins, so a null
  override beside guard rules no longer reports the job as unguarded.
- Do not add deployment approval rules to the prepare-job environments:
  depending on the GitLab version and prevent_blocking_non_deployment_jobs,
  approvals either do not gate these jobs or turn them into manual jobs.
- The CLI's GitLab prerequisite names permission to pass pipeline variables.
- The feedback request's context hint names the HTTPS API URL requirement.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Resolve CHANGELOG.md by keeping main's Unreleased layout and adding this
branch's all-tier CI entries under Added and Changed. Main's Fixed section
already rewords the PII digest entry. Keep both new tests in
tests/ci/test_native_reports.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from naren/three-tier-ci-onboarding to main November 9, 2026 17:33
@rng1995
rng1995 merged commit c3b298c into main Nov 9, 2026
22 checks passed
@rng1995
rng1995 deleted the naren/gitlab-tier2-without-dind branch November 9, 2026 18:20
@chrisknvidia chrisknvidia mentioned this pull request Nov 10, 2026
10 tasks done
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