Repository navigation
ci: install verified fish 4 directly for shell contracts - #31581
Conversation
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🟡 Moderate · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
fcd9ff4d-15ac-4031-b8ab-87323fdea6d7
📒 Files selected for processing: 1
.github/workflows/pr.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
116b88cc-8f18-4c31-a9e7-a42f1304cf43
📒 Files selected for processing: 1
.github/workflows/pr.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1d3ec1b9-1d45-4092-9aa6-fe7a2a2b4ad5
📒 Files selected for processing: 1
.github/workflows/pr.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
|
Launchpad returned 503 responses for hours, leaving fish 3.7 on the Linux runner and failing the required shell-contract check before unrelated PRs could finish. The original fallback also remained unreachable when the combined apt fish/zsh installation itself failed. The completed full review changed this PR in place: apt installs zsh independently, and fish comes directly from its official pinned 4.9.3 release, with architecture-specific SHA-256 verification before extraction/install. The separate fish 4+ gate and all 21 real shell-contract files remain required. Existing Fixed: the retained fatal fish-package acquisition path, obsolete PPA/parser guidance, and the runtime-evidence gap caused by preloaded system resources. No correctness or readiness findings remain. Deferred: one preexisting explanatory comment about the gate's placement; it has no runtime effect. Verified on
Intended tradeoffs: this job tests a fixed version instead of automatically following PPA releases, and a GitHub-release outage can fail it even if the PPA is healthy. No per-release version bump is required. Isolating the two system paths removes incidental Ubuntu/snapd preload coverage; explicit vendor/user contracts remain exercised. This proves the named-path environment on Linux ARM; x86 archive identity was checked without running x86 Linux. No comparative uptime/performance claim or app/UI validation is made. For Brennan's review: no screenshots apply to this CI-only change. The main judgment points are independent acquisition and verification, runner resource isolation, and the retained minimum-version gate. |
ELI5
The required shell-contract check needs fish 4 or newer. A Launchpad outage returned 503 responses for hours, leaving Ubuntu’s fish 3.7 installed and failing unrelated PRs before their tests ran. This PR gets fish directly from its official, checksum-verified release so that fish testing no longer depends on that package archive.
What Changed
Before, the Linux shell-contract job added the fish package archive, retried its setup, refreshed apt, and installed zsh and fish together. A failed archive index could leave an older fish installed; a failed fish package download could also stop the step entirely.
After, bounded apt installs zsh independently. The job downloads the official standalone fish 4.9.3 Linux binary for the runner’s architecture, verifies its pinned SHA-256, and installs it to
/usr/local/bin/fish. The separate fish 4-or-newer gate and real shell-contract tests remain required. Obsolete PPA instructions and comments claiming a workflow test inspects the install command are removed. Existing system fish resource directories are moved into a unique temporary directory on the disposable runner before tests, so preinstalled data cannot supply the standalone binary’s behavior. Test-created XDG vendor snippets remain enabled. Intended coverage difference: this isolated job no longer exercises incidental preloaded Ubuntu/snapd configuration under the two moved system paths; it still exercises the explicitly created vendor and user configuration contracts.Why
This removes fish’s package-repository dependency instead of putting another branch after a fatal package operation. The pin satisfies the existing minimum-version contract and needs no update for each Orca or fish release. A deliberate future security or coverage change can update it and its checksum together. The download retains finite connection/transfer/retry bounds within the job’s 15-minute limit; verification must succeed before extraction or privileged installation.
Intended CI differences: every selected job exercises the same pinned fish version rather than automatically following PPA updates, and fish now requires the GitHub release download even when the PPA might be available. No relative host-uptime claim is made. No app code, shipped default, saved data, packaging or release behavior changes.
Review classification (full path):
none.The architecture review selected direct verified release acquisition in this same PR.
Linked Issue
N/A: main CI repair. Example incident: https://github.com/stablyai/orca/actions/runs/39638395305 (fish package index 503, then fish 3.7 rejected by the required gate).
Visual Proof
N/A: CI-only. The real shell job provides behavioral evidence; no app UI changes.
Testing
Current head:
98121465252d67b8d555063494aca141b7fe402e. Full correctness/readiness reviews and final-head delta checks passed. Full CI is green on this exact head.Both official release archives downloaded and independently hashed; names and SHA-256 values match upstream metadata and the workflow. Each archive contains the standalone
fishexecutable.Exact YAML-extracted installer and version gate pass
bash -n.Instrumented exact-script controls pass for both architecture selections, tolerated index-refresh failure, fatal zsh failure/timeout, and download/checksum failures stopping before extraction/install. These use stubs and prove control flow, not Linux runtime behavior.
config/scripts/pr-workflow-parallelism.test.mjs: 4 tests passed. It parses workflow YAML but has no fish-install assertion; functional coverage comes from the real shell job.Final-head full CI passed. The real shell job verified the archive and selected
/usr/local/bin/fish4.9.3; 21 files / 454 tests passed, 30 skipped. Its log reports no installed fish/fish-common package and/usr/share/fishplus/etc/fishabsent after resource quarantine. This establishes the two named system-path environment; XDG discovery remains enabled, and no claim is made that every possible external resource directory is absent.Linux ARM executed for real. The x86 asset/digest and architecture control flow were verified without an x86 Linux runtime run.
No app QA required (CI only)
Final-head real shell contracts and full CI
AI Disclosure
Review
Agent skill upstream boundary
Checklist