Skip to content

ADR-3555: Pin Intel NEO and Level Zero release asset URLs and SHA-256 digests in a lock file

  • Status: Accepted
  • Date: 2026-11-16
  • Deciders: lusoris
  • Tags: ci, build, docker, release, supply-chain, sycl, intel, renovate

Context

dev/scripts/fetch-intel-neo.py resolved the matched Intel NEO compute-runtime stack (ADR-1145) and Level Zero loader packages (ADR-1368) at build time by making three api.github.com requests per run:

  1. repos/intel/compute-runtime/releases/tags/${INTEL_NEO_VERSION} for .deb asset URLs and the release .sum file;
  2. repos/intel/intel-graphics-compiler/releases/tags/${IGC_TAG} for the IGC .deb SHA-256 digests in the release body;
  3. repos/oneapi-src/level-zero/releases/tags/v${LEVEL_ZERO_VERSION} for the libze1 and libze-dev URLs and GitHub asset digests.

.github/workflows/release-dry-run.yml (ADR-1595) intentionally holds no credentials or secrets (test_is_a_dry_run in scripts/ci/tests/test_pr_time_verify_workflows.py forbids secrets. across the workflow). Hosted runner builds of docker/Dockerfile.production-gpu in the dry run therefore called api.github.com anonymously and hit the shared 60-requests-per-hour IP rate limit.

Both upstream release tags are already pinned in build-config.env (INTEL_NEO_VERSION, LEVEL_ZERO_VERSION) and tracked by Renovate custom managers in renovate.json. Only the derived .deb filenames, github.com release-download URLs, and SHA-256 digests were resolved at build time.

Decision

  1. Asset lock file (dev/scripts/intel-neo-lock.json):
  2. Record neo_version, level_zero_version, level_zero_distro ("u24.04"), the six NEO role records under neo (gmm, icd, level_zero, igc_core, igc_opencl, ocloc), and the two loader records under level_zero (libze1, libze-dev).
  3. Each asset record contains exact keys name, url (https://github.com/<owner>/<repo>/releases/download/<tag>/<name> only), and sha256 (64 lowercase hexadecimal characters).
  4. Reuse StackAssets.select (runtime and ocloc) and level_zero_packages (libze1, plus libze-dev with --level-zero-dev) so package selection matches the prior build-time resolver identically.
  5. Offline-metadata default mode (dev/scripts/fetch-intel-neo.py):
  6. Default mode reads dev/scripts/intel-neo-lock.json next to the script (overridable via --lock PATH), performs zero api.github.com requests, ignores --github-token, downloads selected .deb archives directly from https://github.com/... through the existing HTTPS redirect boundary, verifies each file's SHA-256 against the lock, and writes SHA256SUMS.
  7. Fail closed naming both the lock path and the --write-lock refresh command if the lock is missing, unreadable, malformed, contains duplicate or unknown keys, uses a non-github.com release-download URL or non-64-lowercase-hex digest, or disagrees with --neo-ver, --level-zero-ver, or LEVEL_ZERO_DISTRO.
  8. Retain the optional --github-token flag and BuildKit github_token secret plumbing (ADR-1271) so existing callers remain compatible while lock mode ignores the token.
  9. Lock refresh mode (--write-lock PATH), commit identity, and Renovate / DCO integration:
  10. --write-lock PATH runs the existing ADR-1145 and ADR-1368 resolution functions against api.github.com (using --github-token when supplied), verifies the resulting schema before the atomic replace, and atomically writes sorted JSON without downloading .deb archives.
  11. .github/workflows/intel-neo-lock-refresh.yml runs on push to renovate/** when build-config.env changes, with top-level permissions: contents: read and commit-pinned actions. It mints the release-bot App installation token (RELEASE_BOT_APP_ID / RELEASE_BOT_PRIVATE_KEY) as .github/workflows/docs-render-pr.yml does, verifies APP_SLUG resolves to vmafx-release-bot[bot], runs --write-lock dev/scripts/intel-neo-lock.json, stages and commits only dev/scripts/intel-neo-lock.json as author and committer vmafx-release-bot[bot] <340976456+vmafx-release-bot[bot]@users.noreply.github.com> with a matching Signed-off-by: trailer, and pushes when the lock changed.
  12. scripts/ci/check-dco.py lifts only the PR-mode ADR-3544 "not the branch opener" refusal for a commit when all four conditions hold: PR mode (neither --landed nor pre-push --merge-base), --author renovate[bot] with --author-type Bot, normalized commit author identity vmafx-release-bot[bot] and 340976456+vmafx-release-bot[bot]@users.noreply.github.com, and a non-empty bounded git diff-tree path list (MAX_COMMIT_PATHS_BYTES = 65,536) for which scripts/ci/lint_exceptions.py still_read("dco-bot-opener", paths, root) returns an empty list. Shared attribution rules (commit_attribution_reason), PR-body attribution, and the Signed-off-by: check in judge remain enforced, and branch_opener and --merge-base stay unchanged; in --landed mode (check_landed passing DEFAULT_ROOT), judge_landed (landed_exempt_message) strips Co-authored-by: vmafx-release-bot[bot] <340976456+vmafx-release-bot[bot]@users.noreply.github.com> before commit_attribution_reason (keeping the Signed-off-by: check on the original message unchanged) when the commit author name is renovate[bot] with lowercased email 29139614+renovate[bot]@users.noreply.github.com, exactly one stripped line in the message equals that trailer, and commit_changed_paths is non-empty with at least one path covered by a live dco-landed-release-bot-coauthor exception (len(still_read("dco-landed-release-bot-coauthor", paths, root)) < len(paths)). This narrows the ADR-3389 statement that landed mode has no exemptions, for this one identity and path, until the exception expires.
  13. .config/lint-exceptions.d/dco-bot-opener.toml declares dev/scripts/intel-neo-lock.json under Category D (entered = 2026-11-16, expires = 2027-03-16, 120-day interval).
  14. renovate.json adds top-level "gitIgnoredAuthors": ["340976456+vmafx-release-bot[bot]@users.noreply.github.com"] (exact email string, matched before regex or glob evaluation in Renovate's modified-branch check) without changing any automerge, platformAutomerge, or packageRules entry, so Renovate continues updating and rebasing renovate/** branches after the refresh commit lands.
  15. Callers, routing, and version-drift gate:
  16. scripts/ci/install-intel-ocloc.sh (ADR-1360, ADR-1368), dev/Containerfile, Containerfile.vmafx, docker/Dockerfile.node, docker/Dockerfile.production-gpu, and docker/Dockerfile.tester copy or pass dev/scripts/intel-neo-lock.json alongside dev/scripts/fetch-intel-neo.py.
  17. dev/Containerfile passes --level-zero-ver "${LEVEL_ZERO_VERSION}" --level-zero-dev to dev/scripts/fetch-intel-neo.py in its NEO RUN so libze1 and libze-dev come from dev/scripts/intel-neo-lock.json with SHA-256 verification instead of separate curl downloads, and scripts/ci/check-workflow-versions.py (check_level_zero_container) enforces that contract.
  18. .github/ci-impact.json (tester_image) and scripts/ci/release-dry-run-plan.sh (gpu) include dev/scripts/intel-neo-lock.json so lock edits route the same image checks as fetcher edits.
  19. scripts/ci/check-workflow-versions.py (Pre-Commit job in .github/workflows/lint-and-format.yml, via scripts/ci/check-base-image-single-source.sh) fails closed when dev/scripts/intel-neo-lock.json is missing or its neo_version or level_zero_version differs from build-config.env, catching an unrefreshed version bump before image builds run.

Alternatives considered

Option Pros Cons Why not chosen
Committed asset lock file refreshed by --write-lock and a renovate/** push workflow (chosen) Zero api.github.com calls during builds; release-dry-run.yml stays credential-free; every .deb URL and SHA-256 is pinned in Git and verified; Renovate bumps refresh automatically Adds one JSON lock file and one narrow renovate/** workflow Eliminates anonymous API rate-limit failures while preserving ADR-1145 matched-set derivation and ADR-1595 credential isolation
Pass GITHUB_TOKEN as a BuildKit secret in release-dry-run.yml No lock file or refresh workflow Violates ADR-1595 and test_is_a_dry_run in scripts/ci/tests/test_pr_time_verify_workflows.py, which forbid credentials and secrets. in the dry run Rejected to keep the release dry run strictly credential-free
Renovate postUpgradeTasks running --write-lock Single commit from Renovate without a follow-up workflow The fork uses the Mend-hosted Renovate GitHub App (docs/development/dependency-bot.md, line 4); Renovate's configuration-options documentation (postUpgradeTasks) states that commands stay blocked by default on Mend-hosted apps and allowedCommands is a global-only self-hosted configuration option Rejected because Mend-hosted Renovate cannot execute repository postUpgradeTasks
Vendor .deb packages directly in Git Fully offline archive fetch Exceeds 100 MB of binary .deb artifacts per NEO release and bloats clone history (ADR-1145) Rejected on repository size and binary-artifact policy
Widen BOT_LOGINS in scripts/ci/check-dco.py to include vmafx-release-bot[bot] Single constant edit BOT_LOGINS waives Signed-off-by: in a bot's own PR and enables pre-push opener inference; broadening release-bot acceptance without per-PR opener and path bounds would exempt every vmafx-release-bot[bot] commit on every branch Rejected so only signed single-file dco-bot-opener refreshes on renovate[bot] PRs are accepted
Commit the refreshed lock as renovate[bot] Matches the PR opener and Renovate's own git author Mend-hosted Renovate holds its own App private key; repository workflows have no credential for renovate[bot] (GITHUB_TOKEN suppresses check runs under ADR-1151, and forging renovate[bot] author metadata under the release-bot App token leaves commits unverified and misstates provenance) Rejected because no credential exists for renovate[bot]

Consequences

  • Positive:
  • Container builds and scripts/ci/install-intel-ocloc.sh never contact api.github.com, eliminating anonymous GitHub API rate-limit failures in release-dry-run.yml and local unauthenticated builds.
  • Every Intel NEO, IGC, gmmlib, ocloc, and Level Zero .deb filename, github.com release-asset URL, and SHA-256 digest is auditable in Git history.
  • Pre-Commit fails immediately when INTEL_NEO_VERSION or LEVEL_ZERO_VERSION moves without a matching lock update.
  • Renovate PRs carry a signed vmafx-release-bot[bot] lock-refresh commit that passes PR DCO checks without widening BOT_LOGINS, and gitIgnoredAuthors keeps Renovate rebasing the branch normally.
  • Negative:
  • Manual edits to INTEL_NEO_VERSION or LEVEL_ZERO_VERSION in build-config.env require running fetch-intel-neo.py --write-lock dev/scripts/intel-neo-lock.json in the same branch; the error message and maintainer docs print the exact command.
  • .config/lint-exceptions.d/dco-bot-opener.toml (2027-03-16) and .config/lint-exceptions.d/dco-landed-release-bot-coauthor.toml (2027-03-17) each carry a 120-day Category D expiry. Once expired, scripts/ci/lint_exceptions.py check and scripts/ci/check-dco.py fail closed until a maintainer confirms Mend-hosted Renovate still blocks postUpgradeTasks and renews entered / expires for another 120-day interval (or removes both entries, gitIgnoredAuthors, and the check-dco.py exemptions if Renovate gains built-in lock refresh).
  • Neutral / follow-ups:
  • Amends ADR-1145 and ADR-1368 by moving GitHub Releases API resolution from image build time to --write-lock lock-refresh time.

References

  • Order vmafx-release-dry-run-gpu-secret-adr1595 (2026-11-16, NEO lock file and dry-run credential isolation, paraphrased): keep release-dry-run.yml credential-free under ADR-1595 and replace build-time anonymous api.github.com lookups in dev/scripts/fetch-intel-neo.py with dev/scripts/intel-neo-lock.json, refreshed via --write-lock and a renovate/** push workflow.
  • Order vmafx-neo-lock-refresh-commit (2026-11-16, refresh-commit DCO and Renovate handling, paraphrased): scope the PR-mode check-dco.py bot-opener exemption to renovate[bot] PRs, vmafx-release-bot[bot] commits, and live dco-bot-opener paths (dev/scripts/intel-neo-lock.json, Category D, 120 days), and add the release-bot noreply email to renovate.json gitIgnoredAuthors.
  • ADR-1145, ADR-1151, ADR-1271, ADR-1360, ADR-1368, ADR-1595, ADR-3544.
  • docs/development/dco.md and docs/development/dependency-bot.md (DCO exemptions and Mend-hosted Renovate GitHub App configuration).

Update (2026-11-18) — Python lock refresh

ADR-3560 extends this pattern to the Python lock files. The DCO exemption grows from one path to the 30 path-exact lock outputs listed in .config/lint-exceptions.d/dco-python-lock-refresh.toml. No glob or other path is granted. A new lock output needs a new operator grant. The decision is ledger answer vmafx-renovate-python-lock-refresh dated 2026-11-18.