Repository navigation
ci: reuse immutable package setup across shutdown checks - #20368
Conversation
|
Warning Review limit reachedNext included review available in 13 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
ℹ️ Minor suggestions only.
Reviewed changes
- Single CI matrix invocation —
.github/workflows/pr.ymldrops the separate launcher and AppImage shutdown steps and runs the existing step with--all-entrypoints, so one Docker build, startup oracle, and extraction now serve all three entrypoints. - Shared preparation in the runner —
config/scripts/run-headless-serve-shutdown-docker.mjsadds--all-entrypoints, builds the app/launcher/appimage case matrix, runs the entrypoint-agnostic setup once, and still runs each of the six cases in a fresh--rmcontainer with the/artifactsvolume read-only. Per-case flag combinations are rejected, and failure ids are nowentrypoint:signal:status. - Matrix unit tests — the new
config/scripts/headless-serve-shutdown-matrix.test.mjspins one build/startup/extraction, six isolated signal containers with the expected env/mounts/names, per-case SHA-256 evidence, aggregate failure attribution, cleanup after failed extraction, the preserved individual--launcher-exec-overlaypath, and rejection of ambiguous flag combinations. - Workflow contract test —
config/scripts/headless-serve-shutdown-workflow.test.mjsnow asserts the workflow has exactly one runner step and pins its exact--all-entrypointscommand.
The signal semantics are unchanged (each case still gets its own container, and the shared artifact volume remains :ro), and running the startup oracle once is sound given the AppImage bytes are identical across cases. I ran the two affected suites locally (17 tests passed).
ℹ️ Reliability-gate manifest still describes the old three-invocation shape
config/reliability-gates.jsonc's runtime.headless-serve-graceful-signal-exit gate is the coverage record for exactly this oracle, and it was not updated. Its runtimeBudget.scope still reads "three AppImage startup/extraction matrices", its commands still invoke the runner without --all-entrypoints, and its testFiles/assertionRefs omit the new matrix test that now guards the shared-preparation behavior. CI won't catch this (the manifest check does not cross-reference tests or the workflow), but the gate's declared evidence no longer names the path PR CI actually runs.
Technical details
# Reliability gate not synced with the new oracle shape
## Affected sites
- `config/reliability-gates.jsonc:18370` — `runtimeBudget.scope` describes "three AppImage startup/extraction matrices", which the single shared-preparation invocation replaces.
- `config/reliability-gates.jsonc:18279` — `commands` only exercise the default `app` case; neither command passes `--all-entrypoints`.
- `config/reliability-gates.jsonc:18286` — `testFiles` / `assertionRefs` (18293) list `config/scripts/headless-serve-shutdown-workflow.test.mjs` but not `config/scripts/headless-serve-shutdown-matrix.test.mjs`.
## Required outcome
- The gate's declared scope and evidence commands match the oracle PR CI now runs, and the new matrix test is either registered in the gate or deliberately excluded.
## Suggested approach (optional)
- Add the matrix test to the gate's vitest command and to `testFiles`, with an `assertionRefs` entry, then refresh `runtimeBudget.scope` to reflect one shared startup/extraction feeding three entrypoints × INT/TERM.
## Open questions for the human (optional)
- Is the reliability-gates manifest expected to track changed CI oracle shapes, or only the invariant-level commands?openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

ELI5
Extract the packaged app once, then reuse its read-only bytes for all six shutdown checks.
What Changed
--all-entrypointsto run app, extracted launcher, and AppImage cases with both INT and TERM.Why
The three existing invocations repeat image setup, startup validation, and extraction of the same package. Sharing immutable preparation removes that duplicate work while preserving isolation and all six signal cases.
Linked Issue
Part of #20366. This PR is independent and targets
main.Visual Proof
N/A — this changes CI or test synchronization only; no application UI or interaction behavior changes.
Testing
Five mocked-Docker matrix tests passed, covering one-time setup, six isolated cases, signal semantics, failures, cleanup, and legacy invocations.
Workflow contracts passed in the combined 189-test integration run on macOS.
Workflow syntax, lint, formatting, and script syntax checks passed.
Automated checks run locally; scope and limitations listed above.
Automated tests added/updated, or existing targeted E2E tests exercised.
Review
Self-reviewed for scope, failure handling, cross-platform effects, and compatibility. No application execution-host, SSH, folder-workspace, or wire behavior changes.
Agent skill upstream boundary
Notes
No packaged AppImage was available locally, so the real Docker shutdown matrix still needs the Linux package CI job. No post-change hosted timing claim is made.
Checklist
Measured impact before merge
Compared the original three invocations with
--all-entrypointsusing identical releasedv1.4.200/orca-linux-arm64.AppImagebytes in Docker Linux ARM64 on macOS. Warmed Docker image layers before timing; alternated base/head/head/base. No other local benchmark ran concurrently.Measured reduction: 8.14 seconds / 31.7%. All 24 signal cases passed, including app, launcher, and AppImage INT/TERM, startup oracles, CLI registration, and cleanup. Artifact SHA-256:
3eb0ff9b111b8384eb9b8fe98d809aef3546f6954817759c882877b471604144.This validates the runner orchestration against a real released artifact; it is not an x86 hosted-CI timing claim. The x86 artifact could not execute under local Docker emulation, so that attempt was discarded rather than counted. Raw timing and signal reports remain in
/tmp/orca-ci-impact/package-arm64-*in the measurement workspace.No required checks are configured/reported and no review blockers were present at head
565919245e06b1c5db5c19dc88277aea70749753. The hosted Linux package check was still queued at merge; completed local matrix and contract checks are the merge evidence.