Skip to content

ci: consume shared edera-dev/actions for disk and sccache steps#214

Merged
kaniini merged 1 commit into
mainfrom
steven/retrofit-shared-actions
Jul 15, 2026
Merged

ci: consume shared edera-dev/actions for disk and sccache steps#214
kaniini merged 1 commit into
mainfrom
steven/retrofit-shared-actions

Conversation

@tycho

@tycho tycho commented Jul 15, 2026

Copy link
Copy Markdown
Member

The disk-reporting, disk-reclaim, and sccache-credential-selection steps that grew here over the recent disk-pressure and compile-cache work have been extracted into reusable composite actions in edera-dev/actions (v0.0.15), so xen-oci and later builders share one implementation instead of drifting copies. Replace the inline steps with the actions, pinned by commit hash.

Behavior is intentionally identical, with two structural changes:

  • The separate "report disk space (after cleanup)" step is gone; the reclaim action prints the KB it freed and the resulting disk state itself.
  • The Azure connection string no longer travels via GITHUB_ENV (which lands in the process environment of every subsequent step, including third-party actions); the configure action emits it as a step output and only the "run docker script" step binds it as env, which is the single place docker.sh's -e passthrough needs it. The non-secret SCCACHE_AZURE_{RW_MODE,BLOB_CONTAINER,KEY_PREFIX} still arrive via GITHUB_ENV from the action. Fork PRs (no secrets) still degrade to a local disk cache: the container name is only exported when credentials exist, and sccache's Azure backend engages only when both are present.

The reclaim action's dangerous removals (hosted toolcache, Rust) are opt-in defaults-off in the shared action; this workflow opts into both, since kernel builds use neither and cosign-installer runs after the reclaim and re-creates its toolcache entry.

The disk-reporting, disk-reclaim, and sccache-credential-selection
steps that grew here over the recent disk-pressure and compile-cache
work have been extracted into reusable composite actions in
edera-dev/actions (v0.0.14), so xen-oci and later builders share one
implementation instead of drifting copies. Replace the inline steps
with the actions, pinned by commit hash.

Behavior is intentionally identical, with two structural changes:

- The separate "report disk space (after cleanup)" step is gone; the
  reclaim action prints the KB it freed and the resulting disk state
  itself.
- The Azure connection string no longer travels via GITHUB_ENV (which
  lands in the process environment of every subsequent step, including
  third-party actions); the configure action emits it as a step output
  and only the "run docker script" step binds it as env, which is the
  single place docker.sh's -e passthrough needs it. The non-secret
  SCCACHE_AZURE_{RW_MODE,BLOB_CONTAINER,KEY_PREFIX} still arrive via
  GITHUB_ENV from the action. Fork PRs (no secrets) still degrade to a
  local disk cache: the container name is only exported when
  credentials exist, and sccache's Azure backend engages only when
  both are present.

The reclaim action's dangerous removals (hosted toolcache, Rust) are
opt-in defaults-off in the shared action; this workflow opts into both,
since kernel builds use neither and cosign-installer runs after the
reclaim and re-creates its toolcache entry.

Signed-off-by: Steven Noonan <steven@edera.dev>
@tycho
tycho force-pushed the steven/retrofit-shared-actions branch from 56f9020 to d678772 Compare July 15, 2026 19:30
@tycho
tycho marked this pull request as ready for review July 15, 2026 20:56
@kaniini
kaniini merged commit ce5c905 into main Jul 15, 2026
8 checks passed
@kaniini
kaniini deleted the steven/retrofit-shared-actions branch July 15, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants