Repository navigation
fix(ci): pin cache-apt-pkgs-action back to v1.6.1 - #3321
Merged
Merged
Conversation
v1.6.2 normalizes any multi-package list (e.g. `zsh fish`) to an empty string, then aborts with "Packages argument is empty" because empty_packages_behavior defaults to error. Upstream PR #177 quoted ${packages} in get_normalized_package_list, so apt_query treats the whole list as a single package name (awalsh128/cache-apt-pkgs-action#210). Revert the three v1.6.2 sites introduced by #3311 to v1.6.1, matching the test-setup action that was never bumped, and ignore v1.6.2 in Dependabot until a fixed release ships. Co-Authored-By: Claude <[email protected]>
Collaborator
Author
|
This same failure recurred on |
max-sixty
added a commit
that referenced
this pull request
Jun 29, 2026
main's #3321 already fixed the awalsh128/cache-apt-pkgs-action v1.6.2 breakage by pinning back to v1.6.1 and adding a Dependabot ignore — the maintainer's chosen approach. This reverts the earlier apt-action removal on this branch so the PR stays scoped to the rust-cache churn work and doesn't diverge from that decision. (claude-setup's direct apt-get is pre-existing and untouched.) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Jun 29, 2026
#3323) ## What The Actions cache sat at **11.1 GB across 57 caches** against GitHub's hard **10 GB per-repo cap**, so every run was evicting older caches LRU-style — constant churn. ~57% of that was single-PR caches (`refs/pull/N/merge`) that no other PR can ever restore, depositing budget that evicted the reusable `main` caches. ## Changes - **`save-if` gated to `main` on every rust-cache call.** PRs restore `main`'s cache via the restore-key fallback and never deposit their own. This alone drops the footprint under the cap. - **One shared cache per OS for the test family.** `test-setup` now sets `shared-key`, with `test` as the sole saver (new `save-cache` input, default `true`); `affected-tests` / `collect-affected` / `release-target` pass `save-cache: "false"`. The PR-only `affected-tests` job needed this most — it never runs on `main`, so a per-job key had no baseline and cold-built every PR; it now rides `test`'s `main` cache. - **Nightly/release jobs stop saving.** Stable ones (`feature-powerset`, `benchmarks`, `crate-build`) restore the shared cache read-only; the nightly-toolchain ones (`check-unused`, `minimal-versions`) and the cross-target `release-target` just don't save — near-zero reuse against the cap. - **`cache-bin: false` applied to the v0 jobs too** (`lint`, `feature-check`, `msrv`, `code-coverage`), closing the latent rustup-proxy bug that `test-setup` already guarded against. ## Deliberate non-changes - `lint` / `feature-check` / `code-coverage` keep their own `main`-gated caches rather than joining the shared one. They build divergent artifacts (clippy-check, `--no-default-features`, coverage-instrumented), and we're no longer space-constrained after the above — a right-sized own cache beats a 1.3 GB restore for partial reuse. - Did **not** add PRQL's `Cargo.lock`-hash-in-prefix-key: rust-cache already keys on the lockfile, and `save-if: main` already prevents the PR-junk accumulation that trick fights (one mechanism per guarantee). - The `awalsh128/cache-apt-pkgs-action` stays pinned at `v1.6.1` (per #3321, merged into this branch) — not replaced. Only `Swatinem/rust-cache` config changes here. Projected active cache: **~3–5 GB**, all `main`-scoped. No `wt` behavior change, so no changelog entry. > _This was written by Claude Code on behalf of max_ --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Jun 29, 2026
) ## 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](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: - Issue #210 is open with **no maintainer engagement**; affected users call the action "basically non-functional," with a fresh repro confirmed on 2026-06-29. - **No open PR** reverts #177 or fixes the regression; v1.6.2 (broken) is still tagged `Latest`, and contributor PRs sit unmerged for months. - The action's mutable `v1`/`latest` tags are actively being retargeted upstream (open PR #211), which is how a `@v1.6.1` ref can resolve to drifted code — so even the pin isn't a stable anchor. `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_ Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CI on
mainfails in the requiredcode-coveragejob (failed run). TheInstall shells (zsh, fish)step aborts:This is a deterministic regression in
awalsh128/[email protected], introduced by the bump in #3311. v1.6.2's new "Normalize package list" step turns the inputzsh fishinto an empty string before validation. Upstream root cause: PR #177 added quotes around${packages}inget_normalized_package_list, soapt_querytreats the entire space-separated list as one package name and the normalization yields nothing — tracked at awalsh128/cache-apt-pkgs-action#210. v1.6.2 is still the latest release with no fix.#3311 bumped three of the four call sites (
ci.yamlcode-coverage, two innightly.yaml);.github/actions/test-setup/action.yamlwas never bumped and stayed on v1.6.1 — which is why test-setup-based jobs passed whilecode-coveragefailed.Solution
Revert the three v1.6.2 references to v1.6.1, the known-good version the test-setup action already uses, so all four sites are consistent again. Also add a Dependabot
ignorefor v1.6.2 of this action so the daily github-actions update doesn't immediately re-create the same broken bump; the entry is scoped to that one version, so Dependabot can bump forward once a fixed release ships.This is the right level: the failure is entirely upstream, the fix matches the existing precedent (#2583 pinned this action), and pinning back is a clean revert rather than a workaround layered on a broken release.
Testing
The fix is a CI-config change; correctness is verified by CI itself re-running the
code-coveragejob with v1.6.1. The v1.6.1 path is already exercised by every existing run viatest-setup, which never failed on this step.Note: the advisory (non-required)
collect affected coverage (windows)leg in the failed run also failed, on an unrelated PTY flake (test_switch_picker_create_validates_templates_before_worktree) — a separate known-flaky Windows shell-integration test, not caused by this commit and not addressed here.Automated fix for failed run