Skip to content

fix(ci): install zsh/fish via apt-get, drop cache-apt-pkgs-action - #3324

Merged
max-sixty merged 2 commits into
mainfrom
fix-ci-apt-pkgs
Jun 29, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix-ci-apt-pkgs

Conversation

@max-sixty

@max-sixty max-sixty commented Jun 29, 2026 •

Copy link
Copy Markdown
Owner

What this does

Removes the third-party awalsh128/cache-apt-pkgs-action from CI entirely, installing zsh + fish with a plain sudo apt-get update && sudo apt-get install -y zsh fish at all four call sites:

  • ci.yaml — code-coverage
  • nightly.yaml — feature-powerset and benchmarks
  • .github/actions/test-setup/action.yaml — composite action used by the required test matrix

It also drops the Dependabot ignore entry for the action (no longer needed once the action is gone).

Why (and why this supersedes #3321)

awalsh128/[email protected] (dependabot bump #3311) empties its own packages: zsh fish argument in the "Normalizing package list" step and aborts with Packages argument is empty, in ~20s, before any compilation — killing code-coverage on every PR, which in turn stopped codecov/patch from posting anywhere. Root cause is upstream PR #177 quoting ${packages}, tracked at awalsh128/cache-apt-pkgs-action#210.

#3321 already fixed main by pinning back to v1.6.1. This PR takes the sturdier route — dropping the dependency — based on the upstream's health:

zsh and fish are in the standard Ubuntu repos (no PPA), so the action only cached an install of two tiny packages — a negligible speed-up for a third-party dependency that is under-maintained, broke CI repo-wide, and can't be stably pinned. Dropping it removes the whole failure class and matches the existing musl-tools install already in nightly.yaml. Verified: the identical apt-get step already runs green in the required test (linux) job (installs zsh 5.9 + fish 3.7.0), and a full code-coverage run on this branch completed green end-to-end with codecov/patch posting again.

Guard against recurrence

#3311 merged while its own code-coverage was red because code-coverage/codecov/patch aren't required status checks (only test (linux/macos/windows) are), and codecov/patch was absent rather than red (the job died before uploading), so the mechanical-bump merge saw nothing blocking. Recommended guard: make the code-coverage job a required status check — it fails only on genuine breakage (the codecov upload already soft-fails on fork PRs), so it blocks this class without re-introducing the flake that keeps codecov/patch itself advisory.

This was written by Claude Code on behalf of max

awalsh128/[email protected] (dependabot bump #3311) empties the
`packages: zsh fish` argument in its "Normalizing package list" step, then
aborts with "Packages argument is empty" before any compilation. This killed
the non-required `code-coverage` job on every PR, so `codecov/patch` — a real
merge gate in this repo — could no longer post anywhere.

Replace the third-party action at all four call sites (ci.yaml code-coverage,
nightly.yaml feature-powerset + benchmarks, and the test-setup composite
action used by the required test matrix) with a plain
`sudo apt-get update && sudo apt-get install -y zsh fish`. zsh and fish are in
the standard Ubuntu repos, so the action only cached an install of two tiny
packages — negligible benefit for a third-party dependency that can (and did)
break CI repo-wide, and whose bare semver tags aren't immutable pins. Matches
the existing musl-tools install already in nightly.yaml.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
# Conflicts:
#	.github/workflows/ci.yaml
#	.github/workflows/nightly.yaml
@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Linking another concrete instance of this failure: the code-coverage run on 4388def (the #3319 merge, on main) died with the same [email protected] signature this PR fixes — packages='zsh fish' normalized to empty, then Packages argument is empty / exit 3, ~20s in before any compilation. code-coverage was the only failing job.

This was a default-branch failure, so main was briefly red until #3321 (pin back to v1.6.1, merged 18:28 UTC) restored it ~8 min later. So there's no separate fix to make here — main is already green via the pin, and this PR is the forward-looking robustness fix that removes the whole failure class. Nothing further needed from a CI-fix standpoint.

@max-sixty
max-sixty merged commit 16027a6 into main Jun 29, 2026
35 checks passed
@max-sixty
max-sixty deleted the fix-ci-apt-pkgs branch June 29, 2026 23:48
max-sixty added a commit that referenced this pull request Jun 30, 2026
…3337)

The criterion suite ran as a job inside `nightly.yaml`: ~80 min,
checking performance rather than correctness, yet feeding nightly's
failure aggregator and dominating its wall-clock. This moves it into a
standalone `benchmarks.yaml` on its own daily schedule, decoupled from
nightly's correctness checks.

`benchmarks.yaml` runs on its own cron (3:47 UTC, offset from nightly's
5:37 so the two long runs don't contend) plus `workflow_dispatch`. The
env block is carried over so the shared `test` cache key still matches
(per `.github/CLAUDE.md`); the gist time-series append stays gated to
`schedule` events; and a dedicated `create-issue-on-benchmark-failure`
job keeps a broken bench harness visible, since benchmarks no longer
ride nightly's aggregator.

One behavior change: benchmarks no longer run on PRs at all. Previously
the job ran on a PR carrying the `nightly` label or touching `Cargo.*`.
`workflow_dispatch` against a branch covers on-demand bench runs.

`nightly.yaml` loses the `benchmarks` job, its header line, and its
`needs` entry in the failure aggregator. Docs updated: the `CLAUDE.md`
benchmarks note (benchmarks no longer gate merges since they're off PRs)
and the `running-tend` skill's `setup-nu` call-site list.

This branch also merges current `main`, which includes #3324 (drop
`cache-apt-pkgs-action` for plain `apt-get`); `benchmarks.yaml` installs
zsh/fish the same way rather than reintroducing the dropped action.

> _This was written by Claude Code on behalf of max_

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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.

2 participants