Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

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

Narendran Raghavanc3b298c2b1a1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 06698f9f..e24780dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -51,6 +51,11 @@ All notable changes to SkillEvaluator are documented in this file.
### Changed
+- Run GitLab Tier 2 without Docker-in-Docker while keeping TLS-protected Docker
+ for Tier 3. Both native tiers retain shared caller timeout and runner-tag
+ overrides, advisory outcomes, and aggregate artifacts; local mode still
+ disables the Tier 3 Docker service.
+
- Align terminal grade and lift colors across compact, full, and direct Tier 3
reports; displayed zero lift is neutral. Narrow terminals stack complete
condition score/bar groups. Full-report Details retain successful quality and
@@ -136,6 +141,8 @@ All notable changes to SkillEvaluator are documented in this file.
pinned evaluation and feedback configuration before reporting readiness,
including malformed YAML and missing approval inputs. Candidate onboarding
pins include the reviewed CI fixes and matching runtime metadata.
+ Use the verified released Tier 1 image so valid multi-valued `metadata.domain`
+ fields also work in new all-tier consumers.
- Private native Claude Code staging keeps the source client's skill
declarations: Codex paths that Codex ignores are no longer copied into the
diff --git a/ci/gitlab/all-tiers.yml b/ci/gitlab/all-tiers.yml
index 72961eb1..dfbf9b96 100644
--- a/ci/gitlab/all-tiers.yml
+++ b/ci/gitlab/all-tiers.yml
@@ -162,8 +162,8 @@ skill-evaluation-native:
action: prepare
parallel:
matrix:
- - SKILL_EVAL_TIER: ['2', '3']
- # Docker mode requires a privileged runner supporting Docker-in-Docker and
+ - SKILL_EVAL_TIER: ['3']
+ # Tier 3 Docker mode requires a privileged runner supporting Docker-in-Docker and
# sharing /certs/client (runner volumes = ["/certs/client"]). TLS client
# certificates stay in the job and service; agent containers cannot use the
# daemon. For local mode select a native runner and remove this service.
@@ -230,6 +230,20 @@ skill-evaluation-native:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+skill-evaluation-native-tier2:
+ # Inherit caller timeout/tags and the shared execution policy, without
+ # starting Tier 3's Docker service or retaining its client configuration.
+ extends: skill-evaluation-native
+ parallel:
+ matrix:
+ - SKILL_EVAL_TIER: ['2']
+ services: []
+ variables:
+ DOCKER_HOST: ''
+ DOCKER_TLS_CERTDIR: ''
+ DOCKER_TLS_VERIFY: ''
+ DOCKER_CERT_PATH: ''
+
skill-evaluation-aggregate:
extends: .skill-evaluation-tools
stage: test
@@ -241,6 +255,9 @@ skill-evaluation-aggregate:
- job: skill-evaluation-native
artifacts: true
optional: true
+ - job: skill-evaluation-native-tier2
+ artifacts: true
+ optional: true
script:
- |
set -eu
diff --git a/ci/templates/all-tiers/gitlab-all-tiers.yml b/ci/templates/all-tiers/gitlab-all-tiers.yml
index 43f11369..9a10417a 100644
--- a/ci/templates/all-tiers/gitlab-all-tiers.yml
+++ b/ci/templates/all-tiers/gitlab-all-tiers.yml
@@ -33,6 +33,7 @@ skill-evaluation:
- if: '$CI_PIPELINE_SOURCE == "web"'
# Job duration must be a literal; GitLab 17.8 does not expand CI variables here.
+# Tier 2 inherits this timeout and other shared overrides, such as runner tags.
skill-evaluation-native:
timeout: 5 hours
diff --git a/docs/gitlab-ci.mdx b/docs/gitlab-ci.mdx
index 56bb033f..090e490b 100644
--- a/docs/gitlab-ci.mdx
+++ b/docs/gitlab-ci.mdx
@@ -74,7 +74,8 @@ pipeline, so a merged file must keep this shape:
reports whether the root is recognized and warns about unguarded root jobs.
The shared configuration runs the pinned Tier 1 image plus parallel native
-Tier 2 and Tier 3 jobs. Only Tier 1 is required; Tier 2 and Tier 3 are advisory,
+Tier 2 and Tier 3 jobs. Tier 2 runs without a Docker service. Only Tier 1 is
+required; Tier 2 and Tier 3 are advisory,
including failed or incomplete outcomes. The deprecated
`SKILL_EVAL_TIER3_REQUIRED` variable is ignored, including when set to `'true'`;
it cannot make Tier 3 block CI. Native execution jobs retain failed outcomes
@@ -109,7 +110,7 @@ Do not add deployment approval rules to these environments. Depending on the
GitLab version and its `prevent_blocking_non_deployment_jobs` feature flag,
approval rules either do not gate these jobs or turn them into manual jobs
that wait to be run. Restrict who can run them with the protected
-environments' deploy access. The default Docker
+environments' deploy access. The Tier 3 Docker
service needs a privileged runner with Docker-in-Docker enabled. The daemon accepts only TLS clients on
port 2376 (`DOCKER_TLS_CERTDIR: /certs`), so agent containers cannot use the
Docker API. Configure the runner with `volumes = ["/certs/client"]` so the job
@@ -200,6 +201,13 @@ skill-evaluation-native:
timeout: 45 minutes
```
+Timeout and runner-tag overrides on `skill-evaluation-native` apply to both
+native tiers. The
+`skill-evaluation-native-tier2` job extends that public job and clears its
+Docker service and TLS client variables; a caller's `services` override applies
+to Tier 3. The generated local-mode caller sets `services: []` on
+`skill-evaluation-native` to disable Tier 3's Docker service too.
+
Keep a manual tier selection quoted, for example `SKILL_EVAL_TIERS: '1,2,3'`.
GitLab's YAML parser reads the unquoted value as the number `123`. The CLI
quotes generated variable values automatically.
diff --git a/src/skillevaluator/_ci_onboarding_all_tiers.py b/src/skillevaluator/_ci_onboarding_all_tiers.py
index c1e040d2..dfb767e5 100644
--- a/src/skillevaluator/_ci_onboarding_all_tiers.py
+++ b/src/skillevaluator/_ci_onboarding_all_tiers.py
@@ -43,6 +43,7 @@ _GL_GLOBAL_KEYS = {
_GL_EVALUATOR_JOBS = {
"skill-evaluation",
"skill-evaluation-native",
+ "skill-evaluation-native-tier2",
"skill-evaluation-aggregate",
"skill-evaluation-request-feedback",
"skill-evaluation-feedback",
diff --git a/src/skillevaluator/ci-release-all-tiers.json b/src/skillevaluator/ci-release-all-tiers.json
index 8be6b3c3..664155a7 100644
--- a/src/skillevaluator/ci-release-all-tiers.json
+++ b/src/skillevaluator/ci-release-all-tiers.json
@@ -1,16 +1,16 @@
{
"repository": "NVIDIA/SkillEvaluator",
- "workflow_ref": "472e8becc289a2dc1131e550ebd335c08249918d",
+ "workflow_ref": "157bab5730759cb46b40645beb1c65542fb21520",
"publisher_ref": "8096c6966a498f35f6f7dc1a596d1cc4da85cf11",
- "image": "ghcr.io/nvidia/skillevaluator-tier1@sha256:a3baec51f48145cdf9de05a5ab054d9576f62f1de0f5276b788410f5c17747d4",
+ "image": "ghcr.io/nvidia/skillevaluator-tier1@sha256:9d5483243918937be4f2178f74cf7c622a531dee41e3176906994d52fa14950a",
"schema_version": 2,
"capabilities": [
"all-tiers-github",
"all-tiers-gitlab"
],
- "feedback_ref": "472e8becc289a2dc1131e550ebd335c08249918d",
- "gitlab_ref": "472e8becc289a2dc1131e550ebd335c08249918d",
- "tools_ref": "472e8becc289a2dc1131e550ebd335c08249918d",
+ "feedback_ref": "157bab5730759cb46b40645beb1c65542fb21520",
+ "gitlab_ref": "157bab5730759cb46b40645beb1c65542fb21520",
+ "tools_ref": "157bab5730759cb46b40645beb1c65542fb21520",
"report_contract": "skillevaluator-ci-v1",
"evaluator_version": "0.8.0",
"runtime_lock_sha256": "4b22e964d4aa2e78c5a6a73fe2f1ee979e72090aac85b6558e91d885e72cd966"
diff --git a/tests/ci/test_all_tier_workflows.py b/tests/ci/test_all_tier_workflows.py
index 2bf43819..21a2d193 100644
--- a/tests/ci/test_all_tier_workflows.py
+++ b/tests/ci/test_all_tier_workflows.py
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
"""Validate the security boundaries of the opt-in three-tier pipeline."""
+import json
from pathlib import Path
import yaml
@@ -12,6 +13,14 @@ def load(path):
return list(yaml.load_all((ROOT / path).read_text(), Loader=yaml.BaseLoader))[-1]
+def test_candidate_onboarding_uses_the_released_tier1_image():
+ candidate = json.loads((ROOT / "src/skillevaluator/ci-release-all-tiers.json").read_text())
+ released = json.loads((ROOT / "src/skillevaluator/ci-release.json").read_text())
+ # Released schema capabilities, such as multi-valued metadata.domain,
+ # must also work for new all-tier consumers of the same package.
+ assert candidate["image"] == released["image"]
+
+
def test_required_tier1_reuses_hardened_workflow_and_parallel_paid_tiers():
workflow = load(".github/workflows/evaluate-all-tiers.yml")
inputs = workflow["on"]["workflow_call"]["inputs"]
@@ -123,7 +132,8 @@ def test_gitlab_feedback_token_is_confined_to_trusted_default_branch_job():
evaluation = load("ci/gitlab/all-tiers.yml")
assert "SKILLEVALUATOR_GITLAB_TOKEN" not in str(evaluation)
paid = evaluation["skill-evaluation-native"]
- assert paid["parallel"]["matrix"] == [{"SKILL_EVAL_TIER": ["2", "3"]}]
+ assert paid["parallel"]["matrix"] == [{"SKILL_EVAL_TIER": ["3"]}]
+ assert evaluation["skill-evaluation-native-tier2"]["parallel"]["matrix"] == [{"SKILL_EVAL_TIER": ["2"]}]
assert paid["environment"]["name"] == "$SKILL_EVAL_ENVIRONMENT"
assert evaluation["skill-evaluation-aggregate"]["when"] == "always"
feedback = load("ci/gitlab/feedback.yml")["skill-evaluation-feedback"]
@@ -256,6 +266,43 @@ def test_gitlab_aggregate_enforces_required_gates_for_all_matrix_outcomes():
assert jobs["skill-evaluation-aggregate"]["when"] == "always"
+def test_gitlab_tier2_has_no_docker_service_or_tls_settings():
+ jobs = load("ci/gitlab/all-tiers.yml")
+ tier2 = jobs["skill-evaluation-native-tier2"]
+ assert tier2["extends"] == "skill-evaluation-native"
+ assert tier2["services"] == []
+ assert tier2["variables"] == {
+ "DOCKER_HOST": "",
+ "DOCKER_TLS_CERTDIR": "",
+ "DOCKER_TLS_VERIFY": "",
+ "DOCKER_CERT_PATH": "",
+ }
+
+
+def test_gitlab_native_caller_overrides_and_advisory_policy_apply_to_both_tiers():
+ from skillevaluator._ci_onboarding_all_tiers import _gitlab_inherited
+
+ jobs = load("ci/gitlab/all-tiers.yml")
+ jobs["skill-evaluation-native"].update({"timeout": "45 minutes", "tags": ["native-linux"], "services": []})
+ for name in ("skill-evaluation-native", "skill-evaluation-native-tier2"):
+ job = jobs[name]
+ assert _gitlab_inherited(jobs, job, "timeout") == "45 minutes"
+ assert _gitlab_inherited(jobs, job, "tags") == ["native-linux"]
+ assert _gitlab_inherited(jobs, job, "services") == []
+ assert _gitlab_inherited(jobs, job, "allow_failure") == "true"
+ assert _gitlab_inherited(jobs, job, "environment") == {"name": "$SKILL_EVAL_ENVIRONMENT", "action": "prepare"}
+ assert _gitlab_inherited(jobs, job, "rules")[0] == {"if": '$SKILL_EVAL_FEEDBACK == "true"', "when": "never"}
+
+
+def test_gitlab_aggregate_downloads_evidence_from_both_advisory_tiers():
+ needs = load("ci/gitlab/all-tiers.yml")["skill-evaluation-aggregate"]["needs"]
+ assert needs == [
+ {"job": "skill-evaluation", "artifacts": "true", "optional": "true"},
+ {"job": "skill-evaluation-native", "artifacts": "true", "optional": "true"},
+ {"job": "skill-evaluation-native-tier2", "artifacts": "true", "optional": "true"},
+ ]
+
+
def test_trusted_native_workflow_entrypoints_and_pip_ignore_consumer_import_paths():
for file in (
".github/workflows/evaluate-all-tiers.yml",
@@ -404,6 +451,7 @@ def test_gitlab_evaluator_budget_ends_before_the_native_job_timeout():
def test_gitlab_dind_daemon_requires_tls_client_certificates():
job = load("ci/gitlab/all-tiers.yml")["skill-evaluation-native"]
+ assert job["services"] == [{"name": "docker:28.5.1-dind", "alias": "docker"}]
variables = job["variables"]
assert variables["DOCKER_HOST"] == "tcp://docker:2376"
assert variables["DOCKER_TLS_CERTDIR"] == "/certs"
diff --git a/tests/test_ci_onboarding_all_tiers.py b/tests/test_ci_onboarding_all_tiers.py
index a946d321..127d62a3 100644
--- a/tests/test_ci_onboarding_all_tiers.py
+++ b/tests/test_ci_onboarding_all_tiers.py
@@ -1031,3 +1031,17 @@ def test_gitlab_status_warns_about_root_jobs_without_feedback_guard(repository,
assert "also run deploy, test." in normalized
assert "SKILL_EVAL_FEEDBACK" in normalized and ".skill-evaluation-not-feedback" in normalized
assert "a job without rules, only or except can extend" in normalized
+
+
+def test_gitlab_status_recognizes_tier2_job_overrides(repository, all_release, monkeypatch):
+ subprocess.run(
+ ["git", "-C", str(repository), "remote", "set-url", "origin", "https://gitlab.example.test/group/consumer.git"],
+ check=True,
+ )
+ assert invoke(repository, all_release, "--mode", "save").exit_code == 0
+ generated = (repository / ".gitlab-ci.yml").read_text()
+ output, _calls = _gitlab_status(
+ repository, monkeypatch, generated + "skill-evaluation-native-tier2:\n tags: [cpu]\n"
+ )
+ assert "All-tier checks: configured" in output
+ assert "Warning" not in output