cache-apt-pkgs-action/test
Andrew Walsh 5905c29b85
perf: speed up cache restores (#243)
* fix: find install scripts for package names with regex metacharacters

findInstallScript built a regex from the raw package name, so names like
g++ or libstdc++6 threw "Nothing to repeat" on cache save and on restore
with install scripts, and a '.' in a name could match another package's
script. Compare file names as plain strings instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf: speed up cache restores

- Upload the diagnostic artifact only when debug is on or the action
  fails. The upload took ~1.4s of a ~3.7s restore in CI.
- Extract all package archives in one sudo shell when install scripts
  are off, instead of a sudo and tar process per package. Per-package
  extraction stays when scripts run, to keep install ordering (#196).
- Skip the apt-fast availability probe on a cache hit, where nothing is
  installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: document Manifest and ManifestEntry public members

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 16:44:39 -08:00
..
action-runner.test.ts perf: speed up cache restores (#243) 2026-11-08 16:44:39 -08:00
action.test.ts ci: bundle the action with rollup and upload it for integration jobs (#233) 2026-11-07 12:39:31 -08:00
cache-restore.test.ts perf: speed up cache restores (#243) 2026-11-08 16:44:39 -08:00
cache.test.ts stuff 2026-08-01 12:33:44 -07:00
instrumentation.test.ts ci: bundle the action with rollup and upload it for integration jobs (#233) 2026-11-07 12:39:31 -08:00
manifest.test.ts stuff 2026-08-01 12:33:44 -07:00
packages.test.ts perf: speed up cache restores (#243) 2026-11-08 16:44:39 -08:00