Skip to content

bench iter8b warm: validate fastled/.venv cache restore (#239) - #250

Merged
zackees merged 1 commit into
bench/fastled-examplesfrom
bench/iter8b-warm-rerun
May 13, 2026
Merged

zackees merged 1 commit into
bench/fastled-examplesfrom
bench/iter8b-warm-rerun

Conversation

@zackees

@zackees zackees commented May 13, 2026

Copy link
Copy Markdown
Member

Summary

Empty-commit warm rerun on the bench/fastled-examples orphan branch to validate the iter8b venv-caching change shipped in #240.

Issue #239's acceptance criteria are bench-measurable and need an actual warm run to verify:

  • warm uv_sync ≤ 5s (iter7 baseline: 22.35s)
  • no new failure mode in the compile phase
  • tarball compressed size ≤ 200 MB
  • cold-run timings unchanged vs iter7

The warm path needs a populated cache from a previous run to exercise. The previous run that primed it is the post-merge benchmark on bench/fastled-examples after #240 landed.

Test plan

  • Workflow run completes successfully
  • uv_sync row in phase-timings.tsv is single-digit seconds (target ≤ 5s)
  • warm_restore_hit=true (artifact-cache hit from prior run)
  • pack_cache tarball compressed size ≤ 200 MB (check ls -lh output in logs)
  • compile phase wall-clock within ±10% of last iter7 warm number

Once timings are confirmed, results get posted as a comment on #239 and #112 can tick the next iter checkbox.

Refs #239. Refs #112. Implementation: #240.

PR #240 added fastled/.venv to the warm-cache tarball (with --dereference
for symlink resolution). This empty commit triggers a benchmark run that
exercises the warm path so we can measure whether the venv-restore path
hits the issue #239 acceptance criteria:

- warm uv_sync ≤ 5s (iter7 baseline: 22.35s)
- no new failure mode in the compile phase
- tarball compressed size ≤ 200 MB
- cold-run timings unchanged vs iter7

Refs #239.
Refs #112.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented May 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fc871476-a8c4-4ea2-b6be-ec26cbd499f5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bench/iter8b-warm-rerun

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees
zackees merged commit 9c37231 into bench/fastled-examples May 13, 2026
zackees added a commit that referenced this pull request Jun 15, 2026
iter8b's fastled/.venv cache (#240/#250) cut warm uv_sync 22s -> <5s on
paper but broke warm rerun entirely with:

  error: Querying Python at `fastled/.venv/bin/python3` failed
  Fatal Python error: init_fs_encoding: failed to get the Python codec
  of the filesystem encoding
  ModuleNotFoundError: No module named 'encodings'

Classic UV/venv portability footgun: `uv venv` writes absolute paths
into pyvenv.cfg and bin/python that don't survive a runner change. The
prior runner's Python interpreter (e.g. /opt/hostedtoolcache/Python/...)
doesn't exist on the next runner, so the restored venv can't find its
own stdlib. Net: iter8b made warm worse, not better.

iter9 swaps the cached payload: pack UV_CACHE_DIR (the content-
addressed wheel + source-dist cache) instead of fastled/.venv. The
wheel cache is path-portable by construction — uv sync replays it
locally without network, so warm uv_sync stays short while remaining
structurally sound across runners.

This is the recommended fix from the 2026-06-15 status audit on #112.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees deleted the bench/iter8b-warm-rerun branch October 16, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant