Skip to content

[SANDBOX/DO-NOT-MERGE] verify prepare-images disable-build-* skipping for #6029#6030

Closed
Fedr wants to merge 4 commits intomasterfrom
sandbox-test-disable-labels
Closed

[SANDBOX/DO-NOT-MERGE] verify prepare-images disable-build-* skipping for #6029#6030
Fedr wants to merge 4 commits intomasterfrom
sandbox-test-disable-labels

Conversation

@Fedr
Copy link
Copy Markdown
Contributor

@Fedr Fedr commented May 3, 2026

Sandbox / DRAFT — do not merge

Throwaway PR to exercise the per-cell / per-job disable-build-* label skipping introduced in #6029. Branched off ci-prepare-images-respect-disable-labels (so PR #6029's logic is in effect) plus a tiny touch to two trigger paths so all three need_*_rebuild flags fire:

  • docker/ubuntu22Dockerfile (comment line) → need_linux_image_rebuild=true
  • thirdparty/vcpkg/triplets/x64-linux-meshlib.cmake (comment line) → need_linux_vcpkg_rebuild=true and need_windows_vcpkg_rebuild=true

Labels applied

  • disable-build-ubuntu-x64 — should drop ubuntu22/x64 + ubuntu24/x64 cells from linux-image-build-upload
  • disable-build-windows — should skip windows-vcpkg-build-upload (despite need_windows_vcpkg_rebuild=true)
  • disable-build-linux-vcpkg — should skip linux-vcpkg-build-upload (despite need_linux_vcpkg_rebuild=true)
  • disable-build-macos — keeps macos out of CI burn

Expected results

prepare-image jobs:

Job Expected Verifies
compute-linux-image-matrix runs, outputs 3-cell include per-cell drop logic
linux-image-build-upload runs ubuntu22-arm64, ubuntu24-arm64, emscripten-arm64; no */x64 cells item 2
linux-vcpkg-build-upload skipped item 1 (vcpkg variant)
windows-vcpkg-build-upload skipped item 1

Downstream *-build-test jobs are not the focus here — the user can cancel them once prepare-image reports complete to limit CI burn.

After verification

Close without merging.

Fedr added 3 commits May 3, 2026 13:20
Plumb the disable-build-<platform> labels (already resolved into
build_enable_<platform> outputs in config.yml) through to the
prepare-images workflow so it skips image builds the PR has opted out of.

Mapping (label → skipped):
- disable-build-ubuntu-x64    → ubuntu22/x64,   ubuntu24/x64
- disable-build-ubuntu-arm64  → ubuntu22/arm64, ubuntu24/arm64
- disable-build-emscripten    → emscripten/arm64
- disable-build-linux-vcpkg   → rockylinux8-vcpkg/{x64,arm64}
- disable-build-windows       → vs2019, vs2022 vcpkg cache builds

Avoids burning runner time producing images no downstream build job
will consume.
First attempt referenced `matrix.*` from a job-level `if:` for the
linux-image-build-upload job, which fails workflow validation:

  Unrecognized named-value: 'matrix'.

The `matrix` context isn't available in job-level `if:` for
reusable workflow inputs. Compute the include list in a tiny
upstream job and feed it via `fromJSON()` instead.
…-* labels

Throwaway commit on a sandbox branch (NOT for merge) to trigger
need_linux_image_rebuild + need_linux_vcpkg_rebuild + need_windows_vcpkg_rebuild
so PR #6029's per-cell / per-job label skipping in prepare-images.yml
can actually be observed in CI.
Dynamic-include cells get auto-named from every key in the entry,
so the previous shape produced
  linux-image-build-upload (ubuntu22, arm64, -arm64, ubuntu-24.04-arm)
duplicating arm64 and leaking runner/image-suffix details.

Drop image-suffix and os from the matrix entries and derive both
from matrix.arch inline (runs-on + image env). Cell name is now
just "(<distro>, <arch>)", matching the static-matrix baseline.
@Fedr
Copy link
Copy Markdown
Contributor Author

Fedr commented May 3, 2026

Sandbox PR — closing. Verification confirmed PR #6029 works end-to-end. Two image-build failures were unrelated transient Launchpad PPA timeouts inside the Dockerfile apt chain. Branch HEAD preserved as tag wip/sandbox-test-disable-labels-pr-6030.

@Fedr Fedr closed this May 3, 2026
@Fedr Fedr deleted the sandbox-test-disable-labels branch May 3, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant