Skip to content

chore(ci): spike conditional container semantics (#992) - #998

Merged
c-vigo merged 3 commits into
feature/988-mode-aware-scaffoldfrom
feature/992-container-spike
Jul 13, 2026
Merged

c-vigo merged 3 commits into
feature/988-mode-aware-scaffoldfrom
feature/992-container-spike

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Spike #992 — conditional job-level container: semantics

Validates the mode-branching mechanism for the workflow refactor (#991),
deciding Option A vs B for epic #988.

Question: can a single workflow conditionally run a job in a container OR
on the host runner, driven by a preceding job's output — including across a
workflow_call boundary?

The two files under .github/workflows/spike-992-*.yml are temporary;
they run on pull_request (no branch filter) purely to exercise these cases on
real GitHub runners and will be removed before this branch merges. The
persistent artifact of this spike is the ADR and the run-log URLs.

Cases exercised (each prints hostname / id -u / $HOME / /etc/os-release):

  1. empty image expression, no credentials → host or error?
  2. empty image expression, WITH credentials: → host or error?
  3. non-empty image (ubuntu:24.04) → container baseline
  4. a/b: same pattern inside a reusable workflow_call workflow (image threaded via inputs)
  5. whole container: value as an expression yielding a map-or-null

Some cases may FAIL by design — a failure that proves "empty image errors" is a
valid spike result and its exact error text is captured in the ADR.

Refs: #992

c-vigo added 3 commits July 13, 2026 09:21
Temporary spike (on: pull_request) validating whether a job-level
container: image driven by a resolve job's output runs on the host when
the image is empty, with/without credentials, across a workflow_call
boundary, plus a conditional container-map expression variant. To be
removed once #992 is decided.

Refs: #992
Record the #992 spike verdict: adopt Option A (resolve-toolchain job
outputs image; empty image => host, non-empty => container). Spike on
real ubuntu-24.04 runners proved empty-image runs on host cleanly, the
credentials block is inert when image is empty, and the pattern survives
a workflow_call boundary. Includes per-case evidence and run links.

Refs: #992
The #992 spike is complete; its verdict is recorded in
docs/rfcs/ADR-conditional-container-toolchain.md and the evidence
persists in the run logs (run 29231840324). The temporary spike
workflows must not merge.

Refs: #992
@c-vigo
c-vigo merged commit ea6a905 into feature/988-mode-aware-scaffold Jul 13, 2026
2 checks passed
@c-vigo
c-vigo deleted the feature/992-container-spike branch July 13, 2026 07:29
c-vigo added a commit that referenced this pull request Jul 13, 2026
…997)

One release choreography, mode-aware toolchain provisioning: resolve-toolchain + setup-devkit-toolchain composites (ADR Option A), single mode-aware ci.yml, all release/automation workflows container-free in direnv/bare, opt-in .devcontainer/ prune, vig-utils host-side, actionlint. Sub-PRs: #998 #999 #1000 #1001 #1002 #1005 #1006 #1007.

Refs: #988
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.

1 participant