cache-apt-pkgs-action/test
awalsh128 1a61d5b6e4 fix: archive and restore packages with system tar under sudo
The in-process tar library ran as the runner user, so archiving failed on
root-only files such as /etc/default/cacerts from ca-certificates-java
(regression #72), and extraction could skip root-owned paths without failing.

- Create and extract with sudo tar; the file list is piped NUL-separated on
  stdin so large packages don't exceed the argument size limit.
- Keep directory symlinks such as /lib on extract.
- Hand archives back to the runner user for the cache save.
- Disable the command timeout for tar and maintainer scripts.
- Record the installed (versioned) entries in manifest_main.json; it held
  unversioned names with no files.
- Return every installed package on a cache hit so outputs include deps.
- Split runInstallScripts into per-script runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:35:34 -08:00
..
action-runner.test.ts fix: report requested and dependency package versions separately 2026-11-07 12:35:34 -08:00
action.test.ts fix: report requested and dependency package versions separately 2026-11-07 12:35:34 -08:00
cache-restore.test.ts fix: archive and restore packages with system tar under sudo 2026-11-07 12:35:34 -08:00
cache.test.ts stuff 2026-08-01 12:33:44 -07:00
instrumentation.test.ts fix: make diagnostic artifact names unique per step 2026-11-05 18:51:51 -08:00
manifest.test.ts stuff 2026-08-01 12:33:44 -07:00
packages.test.ts fix: report requested and dependency package versions separately 2026-11-07 12:35:34 -08:00