Skip to content

ci: pin cache-apt-pkgs-action to v1.6.0 - #2583

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-25306276882
May 4, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-25306276882

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • All three awalsh128/cache-apt-pkgs-action call sites used @latest — pin them to @v1.6.0 (current latest, published 2025-10-15).
  • Matches the existing pin style for the rest of the workflow actions (Swatinem/rust-cache@v2, hustcer/setup-nu@v3, taiki-e/[email protected]).
  • Surfaced by the nightly survey of .github/actions/test-setup/action.yaml.

Test plan

  • CI passes on this branch — test-setup and the two cargo-affected jobs all install zsh/fish via the pinned action.

Pin all three call sites away from `@latest`. Matches the existing pin
style for `Swatinem/rust-cache@v2`, `hustcer/setup-nu@v3`, and
`taiki-e/[email protected]`.
@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label May 4, 2026
@max-sixty
max-sixty enabled auto-merge (squash) May 4, 2026 07:40
@max-sixty
max-sixty merged commit 2c1fc9f into main May 4, 2026
25 checks passed
@max-sixty
max-sixty deleted the nightly/clean-25306276882 branch May 4, 2026 07:48
max-sixty pushed a commit that referenced this pull request Jun 29, 2026
## Problem

CI on `main` fails in the required `code-coverage` job ([failed
run](https://github.com/max-sixty/worktrunk/actions/runs/28358354325)).
The `Install shells (zsh, fish)` step aborts:

```
PACKAGES: zsh fish
Normalizing package list...
Validating action arguments (version='1', packages='')...
exit status 100Packages argument is empty.
##[error]Process completed with exit code 3.
```

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 input `zsh
fish` into an empty string before validation. Upstream root cause: PR
#177 added quotes around `${packages}` in `get_normalized_package_list`,
so `apt_query` treats the entire space-separated list as one package
name and the normalization yields nothing — tracked at
[awalsh128/cache-apt-pkgs-action#210](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.yaml` `code-coverage`,
two in `nightly.yaml`); `.github/actions/test-setup/action.yaml` was
never bumped and stayed on v1.6.1 — which is why test-setup-based jobs
passed while `code-coverage` failed.

## 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 `ignore` for 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-coverage` job with v1.6.1. The v1.6.1 path is
already exercised by every existing run via `test-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](https://github.com/max-sixty/worktrunk/actions/runs/28358354325)

Co-authored-by: worktrunk-bot <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants