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:
repos/intel/compute-runtime/releases/tags/${INTEL_NEO_VERSION}for.debasset URLs and the release.sumfile;repos/intel/intel-graphics-compiler/releases/tags/${IGC_TAG}for the IGC.debSHA-256 digests in the release body;repos/oneapi-src/level-zero/releases/tags/v${LEVEL_ZERO_VERSION}for thelibze1andlibze-devURLs 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¶
- Asset lock file (
dev/scripts/intel-neo-lock.json): - Record
neo_version,level_zero_version,level_zero_distro("u24.04"), the six NEO role records underneo(gmm,icd,level_zero,igc_core,igc_opencl,ocloc), and the two loader records underlevel_zero(libze1,libze-dev). - Each asset record contains exact keys
name,url(https://github.com/<owner>/<repo>/releases/download/<tag>/<name>only), andsha256(64 lowercase hexadecimal characters). - Reuse
StackAssets.select(runtimeandocloc) andlevel_zero_packages(libze1, pluslibze-devwith--level-zero-dev) so package selection matches the prior build-time resolver identically. - Offline-metadata default mode (
dev/scripts/fetch-intel-neo.py): - Default mode reads
dev/scripts/intel-neo-lock.jsonnext to the script (overridable via--lock PATH), performs zeroapi.github.comrequests, ignores--github-token, downloads selected.debarchives directly fromhttps://github.com/...through the existing HTTPS redirect boundary, verifies each file's SHA-256 against the lock, and writesSHA256SUMS. - Fail closed naming both the lock path and the
--write-lockrefresh command if the lock is missing, unreadable, malformed, contains duplicate or unknown keys, uses a non-github.comrelease-download URL or non-64-lowercase-hex digest, or disagrees with--neo-ver,--level-zero-ver, orLEVEL_ZERO_DISTRO. - Retain the optional
--github-tokenflag and BuildKitgithub_tokensecret plumbing (ADR-1271) so existing callers remain compatible while lock mode ignores the token. - Lock refresh mode (
--write-lock PATH), commit identity, and Renovate / DCO integration: --write-lock PATHruns the existing ADR-1145 and ADR-1368 resolution functions againstapi.github.com(using--github-tokenwhen supplied), verifies the resulting schema before the atomic replace, and atomically writes sorted JSON without downloading.debarchives..github/workflows/intel-neo-lock-refresh.ymlruns onpushtorenovate/**whenbuild-config.envchanges, with top-levelpermissions: contents: readand 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.ymldoes, verifiesAPP_SLUGresolves tovmafx-release-bot[bot], runs--write-lock dev/scripts/intel-neo-lock.json, stages and commits onlydev/scripts/intel-neo-lock.jsonas author and committervmafx-release-bot[bot] <340976456+vmafx-release-bot[bot]@users.noreply.github.com>with a matchingSigned-off-by:trailer, and pushes when the lock changed.scripts/ci/check-dco.pylifts only the PR-mode ADR-3544 "not the branch opener" refusal for a commit when all four conditions hold: PR mode (neither--landednor pre-push--merge-base),--author renovate[bot]with--author-type Bot, normalized commit author identityvmafx-release-bot[bot]and340976456+vmafx-release-bot[bot]@users.noreply.github.com, and a non-empty boundedgit diff-treepath list (MAX_COMMIT_PATHS_BYTES= 65,536) for whichscripts/ci/lint_exceptions.pystill_read("dco-bot-opener", paths, root)returns an empty list. Shared attribution rules (commit_attribution_reason), PR-body attribution, and theSigned-off-by:check injudgeremain enforced, andbranch_openerand--merge-basestay unchanged; in--landedmode (check_landedpassingDEFAULT_ROOT),judge_landed(landed_exempt_message) stripsCo-authored-by: vmafx-release-bot[bot] <340976456+vmafx-release-bot[bot]@users.noreply.github.com>beforecommit_attribution_reason(keeping theSigned-off-by:check on the original message unchanged) when the commit author name isrenovate[bot]with lowercased email29139614+renovate[bot]@users.noreply.github.com, exactly one stripped line in the message equals that trailer, andcommit_changed_pathsis non-empty with at least one path covered by a livedco-landed-release-bot-coauthorexception (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..config/lint-exceptions.d/dco-bot-opener.tomldeclaresdev/scripts/intel-neo-lock.jsonunder Category D (entered = 2026-11-16,expires = 2027-03-16, 120-day interval).renovate.jsonadds 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 anyautomerge,platformAutomerge, orpackageRulesentry, so Renovate continues updating and rebasingrenovate/**branches after the refresh commit lands.- Callers, routing, and version-drift gate:
scripts/ci/install-intel-ocloc.sh(ADR-1360, ADR-1368),dev/Containerfile,Containerfile.vmafx,docker/Dockerfile.node,docker/Dockerfile.production-gpu, anddocker/Dockerfile.testercopy or passdev/scripts/intel-neo-lock.jsonalongsidedev/scripts/fetch-intel-neo.py.dev/Containerfilepasses--level-zero-ver "${LEVEL_ZERO_VERSION}" --level-zero-devtodev/scripts/fetch-intel-neo.pyin its NEORUNsolibze1andlibze-devcome fromdev/scripts/intel-neo-lock.jsonwith SHA-256 verification instead of separatecurldownloads, andscripts/ci/check-workflow-versions.py(check_level_zero_container) enforces that contract..github/ci-impact.json(tester_image) andscripts/ci/release-dry-run-plan.sh(gpu) includedev/scripts/intel-neo-lock.jsonso lock edits route the same image checks as fetcher edits.scripts/ci/check-workflow-versions.py(Pre-Commitjob in.github/workflows/lint-and-format.yml, viascripts/ci/check-base-image-single-source.sh) fails closed whendev/scripts/intel-neo-lock.jsonis missing or itsneo_versionorlevel_zero_versiondiffers frombuild-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.shnever contactapi.github.com, eliminating anonymous GitHub API rate-limit failures inrelease-dry-run.ymland local unauthenticated builds. - Every Intel NEO, IGC, gmmlib,
ocloc, and Level Zero.debfilename,github.comrelease-asset URL, and SHA-256 digest is auditable in Git history. Pre-Commitfails immediately whenINTEL_NEO_VERSIONorLEVEL_ZERO_VERSIONmoves without a matching lock update.- Renovate PRs carry a signed
vmafx-release-bot[bot]lock-refresh commit that passes PR DCO checks without wideningBOT_LOGINS, andgitIgnoredAuthorskeeps Renovate rebasing the branch normally. - Negative:
- Manual edits to
INTEL_NEO_VERSIONorLEVEL_ZERO_VERSIONinbuild-config.envrequire runningfetch-intel-neo.py --write-lock dev/scripts/intel-neo-lock.jsonin 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 checkandscripts/ci/check-dco.pyfail closed until a maintainer confirms Mend-hosted Renovate still blockspostUpgradeTasksand renewsentered/expiresfor another 120-day interval (or removes both entries,gitIgnoredAuthors, and thecheck-dco.pyexemptions 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-locklock-refresh time.
References¶
- Order
vmafx-release-dry-run-gpu-secret-adr1595(2026-11-16, NEO lock file and dry-run credential isolation, paraphrased): keeprelease-dry-run.ymlcredential-free under ADR-1595 and replace build-time anonymousapi.github.comlookups indev/scripts/fetch-intel-neo.pywithdev/scripts/intel-neo-lock.json, refreshed via--write-lockand arenovate/**push workflow. - Order
vmafx-neo-lock-refresh-commit(2026-11-16, refresh-commit DCO and Renovate handling, paraphrased): scope the PR-modecheck-dco.pybot-opener exemption torenovate[bot]PRs,vmafx-release-bot[bot]commits, and livedco-bot-openerpaths (dev/scripts/intel-neo-lock.json, Category D, 120 days), and add the release-bot noreply email torenovate.jsongitIgnoredAuthors. - ADR-1145, ADR-1151, ADR-1271, ADR-1360, ADR-1368, ADR-1595, ADR-3544.
docs/development/dco.mdanddocs/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.