Repository navigation
bench iter8b warm: validate fastled/.venv cache restore (#239) - #250
Merged
Merged
Conversation
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]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
5 tasks
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Empty-commit warm rerun on the
bench/fastled-examplesorphan 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:
uv_sync≤ 5s (iter7 baseline: 22.35s)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-examplesafter #240 landed.Test plan
uv_syncrow inphase-timings.tsvis single-digit seconds (target ≤ 5s)warm_restore_hit=true(artifact-cache hit from prior run)pack_cachetarball compressed size ≤ 200 MB (checkls -lhoutput in logs)compilephase wall-clock within ±10% of last iter7 warm numberOnce 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.