diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c80e381..5d4d07c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -70,6 +70,30 @@ jobs: - name: Frontend build identity (both shipped nginx images, no publishing) run: bash frontend/ci/bin/test-build-version-image.sh + # The frontend image is published for linux/arm64 too (docs/adr/0043), but + # `fast` builds and starts it on amd64 only. This job runs the same + # shipped-image contract on an arm64 runner, so the arm64 nginx base, the + # entrypoint script and both nginx configurations are started and checked on + # arm64 before merge. The script builds its own image on this runner; the + # published arm64 image is cross-built on amd64 from the same Dockerfile. + # Node is only the script's JSON assertion tool; the frontend build itself + # runs in the Docker build. + frontend-image-arm64: + name: frontend image (arm64) + runs-on: ubuntu-24.04-arm + timeout-minutes: 15 + steps: + - name: Check out repository + uses: actions/checkout@v7 + + - name: Set up Node + uses: actions/setup-node@v7 + with: + node-version: 'lts/*' + + - name: Frontend build identity (both shipped nginx images, no publishing) + run: bash frontend/ci/bin/test-build-version-image.sh + # The GraalVM native build plus the native @QuarkusIntegrationTest suite # (SshOsReleaseResourceIT et al. — see docs/adr/0025). `quarkusIntTest` boots # the freshly built native binary and exercises it over HTTP, so this job diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8664aca..3802510 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -81,7 +81,7 @@ yarn build # production build ## The merge gate -Every pull request must pass four required checks before it can merge: +Every pull request must pass five required checks before it can merge: - **`fast`** runs the backend unit and JVM integration tests (`gradle :backend:test`) plus the frontend test suite. @@ -93,10 +93,12 @@ Every pull request must pass four required checks before it can merge: `docs/adr/0025-ssh-os-release-native-image-reachability.md` records one example. Both architectures are published, so both are gated (`docs/adr/0043-images-are-multi-arch-built-natively-per-architecture.md`). +- **`frontend image (arm64)`** builds the frontend image on an arm64 runner + and runs the same image checks that `fast` runs on amd64. - **`manifests`** builds every shipped Kubernetes composition and validates the rendered resources with kubeconform. -All four jobs are defined in `.github/workflows/pr.yml`. +All five jobs are defined in `.github/workflows/pr.yml`. ## Conventions diff --git a/RELEASE.md b/RELEASE.md index 0e2a138..6581fad 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -118,10 +118,11 @@ docker build frontend --build-arg BUILD_VERSION=1.2.3-rc.6+build.1 \ PR checks test the identity CLI, rebuild the JVM artifact with changed injection without cleaning generated output, query its public endpoint, and exercise the frontend build and nginx images. Native integration tests use explicit -injection through the packaged native image, on both published architectures. -Those tests validate the source -and image recipe, **not the exact binary later published**: the publishing run -separately recompiles the triggering source with the release/edge identity. +injection through the packaged native image. The image checks and the native +integration tests run on both published architectures. Those tests validate +the source and image recipe, **not the exact binary later published**: the +publishing run separately recompiles the triggering source with the +release/edge identity. Tag pushes rebuild both images; they do not promote or retag an earlier `edge` artifact. Publication tag policies and the pin-bump flow above are unchanged. diff --git a/ci/README.md b/ci/README.md index 0215240..2e0362b 100644 --- a/ci/README.md +++ b/ci/README.md @@ -24,6 +24,8 @@ bash ci/check-image-platforms.sh linux/amd64,linux/arm64 ... unreachable. Runtime identity overrides must be ignored. - The frontend check requires Docker, curl, and Node; it checks the static artifact through both shipped nginx configurations. It never publishes images. + It builds for the architecture of its host; PR checks run it on amd64 and on + arm64. - The native Dockerfile test requires Docker (BuildKit) and `readelf`. It builds only the `patcher` stage of `Dockerfile.native-ci` with a fixture binary: each supported target platform gets its ELF loader, `/nix/store` paths are removed, diff --git a/docs/adr/0043-images-are-multi-arch-built-natively-per-architecture.md b/docs/adr/0043-images-are-multi-arch-built-natively-per-architecture.md index 8578353..6394b21 100644 --- a/docs/adr/0043-images-are-multi-arch-built-natively-per-architecture.md +++ b/docs/adr/0043-images-are-multi-arch-built-natively-per-architecture.md @@ -33,7 +33,7 @@ Three rules follow: pre-merge proof that the arm64 binary compiles and that its image boots on the UBI9 runtime. The runner images are pinned, to the same pair for PR checks and for publishing, because the binary links against the build host's - glibc. + glibc. The frontend image checks run on an arm64 runner too. ## Considered Options