Skip to content

ci: publish per-commit test inputs to ghcr - #6015

Merged
elezar merged 1 commit into
mainfrom
claude/ci-publish-test-inputs-7b748a
Nov 26, 2026
Merged

elezar merged 1 commit into
mainfrom
claude/ci-publish-test-inputs-7b748a

Conversation

@elezar

@elezar elezar commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Publish an immutable, per-commit set of test inputs to ghcr so downstream repositories can consume them without dispatching Branch E2E by hand and without hitting the 5-day Actions artifact expiry.

Related Issue

None. This is a CI/build change from an author with write access; no accepted issue covers it yet.

Changes

  • New reusable publish-test-inputs.yml: pushes openshell-tmachine-inputs, the conformance program (x86_64 and aarch64 musl), supervisor/sandbox/vm-init, Linux compute drivers and SHA256SUMS to ghcr.io/ai-openshell/openshell/test-inputs:<full-sha> with oras. An existing tag is kept, not overwritten.
  • New reusable build-conformance.yml; Release Dev uses it so main runs also upload openshell-conformance-<triple>.
  • Release Dev: adds build-conformance and publish-test-inputs jobs.
  • Branch E2E: adds publish-test-inputs, so every push to a same-repo PR labeled test:e2e, and any dispatched ref, publishes. Skipped for fork PRs. It is not part of Core E2E result. Existing PR jobs, including build-conformance, are unchanged.
  • CI.md: short section on locating the inputs.

How a downstream repo finds inputs for a SHA

oras pull ghcr.io/ai-openshell/openshell/test-inputs:<full-sha>

Layers: tmachine-inputs/, conformance/, runtime/, drivers/, SHA256SUMS. Release Dev coalesces queued runs, so some main commits get no run; dispatch Branch E2E on that SHA to publish it. To test a fix, label the PR test:e2e or dispatch Branch E2E on the branch, then pull by the head SHA.

Not done

  • No pruning of old package versions.
  • Release Dev conformance rows still build the suites in the runner instead of using the prebuilt program.
  • Branch E2E's own build-conformance job is not yet migrated to the reusable workflow.

Testing

  • YAML parses; actionlint 1.7.7 reports only the existing unknown artifact-metadata permission; zizmor reports nothing new.
  • Not exercised: no workflow was run. Unverified: the openshell-{supervisor,sandbox,vm-init}-* pattern, oras push of directories, the ghcr package's visibility for a private downstream repo (may need package access granted), and driver artifact names in Branch E2E.

Downstream repositories reused test inputs from a hand-dispatched Branch E2E
run that expired after five days. Publish the tmachine inputs, the
conformance program, supervisor, sandbox, VM init and Linux drivers to
ghcr.io/ai-openshell/openshell/test-inputs:<sha> from Release Dev and from
Branch E2E (any same-repository PR commit or dispatched ref).

Release Dev now builds the conformance program through a new reusable
workflow. Branch E2E keeps its own build-conformance job unchanged.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 26, 2026
@elezar elezar added the test:e2e Requires end-to-end coverage label Nov 26, 2026
@elezar
elezar marked this pull request as ready for review November 26, 2026 17:38
@elezar
elezar requested a review from a team as a code owner November 26, 2026 17:38
@elezar
elezar enabled auto-merge November 26, 2026 18:05
@elezar
elezar added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 94a9527 Nov 26, 2026
213 of 214 checks passed
@elezar
elezar deleted the claude/ci-publish-test-inputs-7b748a branch November 26, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants