fix(ci): qualify on the pinned Python and retain immutable release bundles
Device Core qualification / qualify (push) Successful in 5m51s
Device Core qualification / qualify (push) Successful in 5m51s
This commit is contained in:
@@ -45,8 +45,12 @@ entry, branch policy, release contract and acceptance tests.
|
||||
## Reproduce source qualification
|
||||
|
||||
Runner label: `nodedc-node22-build`; Node 22.21.0, npm 10.9.4, Python >=3.9 and
|
||||
Git must be available in the reviewed build image. The workflow does not
|
||||
download third-party Actions. It fetches the exact pushed SHA from our Gitea.
|
||||
Git must be available in the reviewed build image. The workflow fetches the
|
||||
exact pushed SHA from our Gitea. After qualification it uses the upstream
|
||||
`actions/upload-artifact` v3 implementation pinned to commit
|
||||
`ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5` to retain the bundle in **our Gitea**.
|
||||
The upload uses the job's short-lived artifact credential, not a production
|
||||
credential. The workflow's repository token has read-only content access.
|
||||
`infra/ci/sources.lock.json` pins Design Guideline, Platform and Launcher to full commits;
|
||||
following their current `main` branches would make old releases unreproducible.
|
||||
Launcher sources are required by the existing Hub trust/session artifact tests;
|
||||
@@ -73,6 +77,21 @@ hashes and the UI output hash. It contains `deployed: false` deliberately.
|
||||
The qualification report is evidence, not an authorization token or substitute
|
||||
for independently checking Gitea job identity and the deploy artifact.
|
||||
|
||||
`infra/ci/package_release.py` runs only after all qualification steps pass. It
|
||||
checks the source and build hashes again, then emits a deterministic `.tgz`
|
||||
and `release.json` receipt. The archive declares `device-core-release.v1` with
|
||||
the exact source SHA, run id/number and file digests. It cannot choose Compose
|
||||
files, host roots, install commands or database operations. This new artifact
|
||||
type still needs the reviewed Platform runner extension before installation.
|
||||
Bundles remain in Gitea for 30 days; installed releases will additionally be
|
||||
retained by the canonical NAS journal/archive. Expiry is not a successful
|
||||
deployment and must never be silently ignored by the controller.
|
||||
|
||||
Linux qualification also exercises the standalone Edge/VPS archive readers.
|
||||
These materialize validated regular files explicitly, without `extractall`,
|
||||
so they work with the pinned image's Python while retaining path/link/mode
|
||||
checks. No Edge/VPS runtime is changed by running these tests.
|
||||
|
||||
Local focused tests: `python3 -m unittest discover -s infra/ci -p 'test_*.py'`.
|
||||
The full artifact suite belongs on the bounded Linux build worker; there is no
|
||||
requirement to start Docker or run load tests on an operator Mac.
|
||||
|
||||
Reference in New Issue
Block a user