1
0
Fork 0
mirror of https://github.com/imjasonh/terraform-playground synced 2026-07-08 07:44:57 +00:00
No description
Find a file
Cursor Agent 4100e12b20
perf: speed up no-op builds (resolve base once, cache interpreter detection)
A no-op build's ~2-3s was almost all registry I/O:
- the base index was fetched 3x (BasePlatforms + remote.Image per platform)
- the base's top layer was downloaded once per platform every build to read
  /etc/apko.json for interpreter detection (Chainguard has no PYTHON_VERSION)

Changes:
- build.BaseSet resolves the base reference once and serves per-platform child
  images memoized (index fetched once; verified by TestBaseSet)
- cache the detected interpreter version by base digest in a default per-user
  metadata cache (cache.GetText/PutText), so repeat builds skip the apko layer
  download
- lazy wheel-cache dir creation; wheelhouse.Resolve defaults to the per-user
  cache dir

Tests: TestBaseSet (index fetched once + per-platform memoized), TestCachedInterpreter
(write + cache-hit short-circuit), cache text round-trip.

Co-authored-by: Jason Hall <imjasonh@users.noreply.github.com>
2026-06-11 00:34:16 +00:00
.github/workflows ci: run the built image on macOS too (Intel runner + Docker via Colima) 2026-06-10 21:53:37 +00:00
cf-worker use R2 CRUD example 2023-08-14 10:37:13 -04:00
cf-worker-container Add Terraform infrastructure for pr-risk-scorer deployment 2026-02-18 17:12:12 +00:00
cf-worker-go WIP: cf-worker-go; tf-cloudfuare doesn't work with wasm :( 2023-12-30 15:47:37 -05:00
container-vm dry 2025-11-30 14:52:44 -05:00
driftlessaf Fix golangci-lint staticcheck issues in cifixer eval_test.go 2026-02-19 02:51:19 +00:00
gitea Add Gitea deployment with Cloud Run and GCS storage 2025-08-04 15:31:46 -04:00
iap add IAP example 2024-07-04 09:19:48 -04:00
image-workflow widespread improvements 2023-08-17 21:21:07 -04:00
litestream clean up logging 2026-02-05 21:55:20 -05:00
pymage perf: speed up no-op builds (resolve base once, cache interpreter detection) 2026-06-11 00:34:16 +00:00
.devcontainer.json skip reqs 2024-06-28 18:48:51 -04:00
.gitignore add cloudflare worker example 2023-08-12 10:22:54 -04:00
LICENSE initial commit 2023-03-31 13:40:37 -04:00