mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
test(ci): smoke-test the tools that built images take from their base
The CSI, LINSTOR, multus, Harbor and redis-backup images call tools at runtime that their base images or build stages install: mkfs and mount.nfs, drbd, lvm and zfs, the CNI plugins, nginx and trivy under a fixed uid, redis 8. A base or tool bump that drops one still builds, and only fails once the image runs in a cluster. The kubevirt CSI node plugin and its sidecars run inside tenant VMs on whatever vCPU they are given, so their filesystem tools, libc and Go entrypoints must not require more than x86-64-v2. C objects declare that level in a GNU property note and Go binaries in their GOAMD64 build setting; a file that records neither fails the check. Each PR build job runs the checks against the images it pushed, found by diffing the tree's image references before and after the build. Fork PRs are skipped because their images are not in a registry yet, and the unit lane runs no container. A change to kubevirt-csi-node alone, where the node sidecar tags live, now runs the kubevirt CSI build too, and the check fails when either sidecar is missing or the reference file cannot be read. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
6 files changed
+204
-2
No files matched your search
@@ -62,6 +62,7 @@ If a package stamps a reference somewhere the two globs do not cover, add that f
|
||||
| `hack/stitch-multiarch.sh` | all three shapes | join each amd64 image and its `-arm64` twin into one index, each side an image or, built with `SBOM=1`, an index of the image and its attestation that the result keeps, repin the tree on it, then fail if any old digest survives |
|
||||
| `hack/retention-packages.sh` | all three shapes, in the published nightly tree | name the GHCR packages the retention workflow prunes (those linked to another repository are then skipped); a ref it cannot see is a package whose nightlies are never pruned |
|
||||
| `hack/verify-multiarch.sh` | all three shapes, first- and third-party | fail a release unless every pinned image is an index with `linux/amd64` and `linux/arm64`, attestation entries not counted, bar the repositories in `hack/multiarch-allowlist` |
|
||||
| PR build job, image smoke step | all three shapes | list the references a package build stamped, by diffing the tree before and after it, for `hack/image-smoke.bats` to run |
|
||||
|
||||
`hack/multiarch-allowlist` is the only bypass for that gate, and it is for images that cannot exist for arm64, not for images nobody has rebuilt yet. An entry is a repository with no tag or digest, so bumping an allowed image needs no edit, and it must carry a reason after `#` on the same line: the script refuses an entry without one. Allowed refs are still printed, under their own "allowed single-arch" heading, and in tree mode an entry that matches no ref that failed the check is reported as stale without changing the exit status, so it gets removed once the image is multi-arch or gone. `--refs-file` reports no stale entries, since a list of pulled images omits everything the run did not pull.
|
||||
|
||||
|
||||
Reference in new issue
Block a user