Skip to content

ci: install verified fish 4 directly for shell contracts - #31581

Merged
brennanb2025 merged 5 commits into
mainfrom
brennanb2025/ci-fish4-install-resilient
Oct 21, 2026
Merged

brennanb2025 merged 5 commits into
mainfrom
brennanb2025/ci-fish4-install-resilient

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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):

  • Size: one CI workflow, 32 additions and 52 deletions against the base; within the small-change limit.
  • Risk: acquisition retries are touched, so light criterion 2 does not hold.
  • History: earlier acquisition-delay fixes exist; the architecture review also found the retained fatal package-install mechanism. No light-path no-incident claim is made.
  • Effect: CI only; no shipped app code. QA is 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 fish executable.

  • 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/fish 4.9.3; 21 files / 454 tests passed, 30 skipped. Its log reports no installed fish/fish-common package and /usr/share/fish plus /etc/fish absent 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

  • Not applicable; no upstream skill-installer source or tests are copied.

Checklist

  • Small, focused change to one CI workflow
  • Problem, developer-facing result and intended differences explained
  • No app, saved-data, mobile, remote-protocol or packaging changes
  • SHA-256 verification before extraction/install; bounded acquisition
  • CI is the full lint/typecheck/test gate

@brennanb2025
brennanb2025 marked this pull request as ready for review October 21, 2026 17:28
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

The shell-contracts workflow replaces the fish-shell PPA with a direct fish 4.9.3 GitHub release installation. It selects an architecture-specific archive, verifies its SHA-256 checksum, extracts and installs fish under /usr/local/bin, and logs package and path diagnostics. The workflow retains bounded apt refresh behavior and required zsh installation.

Priority: ⬇️ Low

Merge Risk: 🟡 Moderate · up to e1120

Restore the apt-first fish check before merging. Otherwise, a release-download failure can fail the required shell-contracts job when a suitable apt package is available.

Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive The description is detailed and covers the change, rationale, testing, visual proof, AI disclosure area, review considerations, and checklist. The Linked Issue section lists an incident workflow URL a… Confirm that the author is a maintainer covered by the template exception. Otherwise, add the applicable issue reference in the Fixes # section.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title is concise, specific, and accurately describes the main change: direct verified fish 4 installation for shell-contract CI.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description is detailed and covers the change, rationale, testing, visual proof, AI disclosure area, review considerations, and checklist. The Linked Issue section lists an incident workflow URL and N/A, but the template requires an actual issue link unless the author is a repository maintainer.

Resolution

Confirm that the author is a maintainer covered by the template exception. Otherwise, add the applicable issue reference in the Fixes # section.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fcd9ff4d-15ac-4031-b8ab-87323fdea6d7
📥 Commits

Reviewing files that changed from the base of the PR and between 8174208 and a938e57.

📒 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.

Comment thread .github/workflows/pr.yml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 116b88cc-8f18-4c31-a9e7-a42f1304cf43
📥 Commits

Reviewing files that changed from the base of the PR and between a938e57 and 58ba0c5.

📒 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.

Comment thread .github/workflows/pr.yml Resolved
@brennanb2025 brennanb2025 changed the title ci: install fish 4 from its GitHub release when the Launchpad PPA is down ci: install verified fish 4 directly for shell contracts Oct 21, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1d3ec1b9-1d45-4092-9aa6-fe7a2a2b4ad5
📥 Commits

Reviewing files that changed from the base of the PR and between f2ec64a and e1120ff.

📒 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.

Comment thread .github/workflows/pr.yml Resolved
@brennanb2025

Copy link
Copy Markdown
Contributor Author

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 /usr/share/fish and /etc/fish resources are moved aside on the disposable runner to exercise the standalone binary while retaining test-created XDG vendor and user configuration.

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 98121465252d67b8d555063494aca141b7fe402e:

  • Full PR workflow passed, including static analysis/typecheck and all selected checks.
  • Real shell job: archive checksum OK; no installed fish/fish-common package; both named system resource paths absent after quarantine; /usr/local/bin/fish selected; version 4.9.3; 21 files and 454 tests passed, 30 skipped.
  • Both official architecture assets and their actual SHA-256 digests match the pins. Exact-script syntax and bounded failure controls pass. The named workflow test passed four tests; it parses YAML but has no fish-install assertion.
  • Fresh full correctness and separate readiness/performance reviews passed after the design change; narrow final-head checks passed after resource isolation. Strict light-path eligibility was rejected because retries are touched. App QA is none: only one CI workflow changed.

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.

@brennanb2025
brennanb2025 merged commit afcb385 into main Oct 21, 2026
32 checks passed
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