Repository navigation
ci: purge broken esptool venvs from the restored fbuild cache - #4722
Conversation
A restored fbuild cache can hold esptool tool venvs whose bin/python no longer resolves on the runner, so elf2image fails with exit 127 / ENOENT on a random ESP job of every ci-full run (FastLED/fbuild#1655). Remove any esptool install whose launcher can't start; fbuild re-downloads it. Same pattern as the existing stale-platform-tarball purge (#3543). Co-Authored-By: Claude <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe build workflow now checks restored fbuild toolchain caches for unusable esptool virtual environments. It removes an enclosing install directory if ChangesBuild cache validation
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The workflow removes only the affected esptool cache entry when its Python launcher is unusable. No material merge risk remains from this change. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Every
ci-fullrun today has failed one random ESP job atelf2image:These failed on #4719 and #4721 (runs 37502123063, 37509356090, 37509357058, 37514824417); the same job passed and failed on consecutive runs. The cached esptool venv's
bin/pythonlauncher doesn't resolve on the restoring runner, and fbuild never revalidates it. Filed upstream as FastLED/fbuild#1655.This adds a step to
build_template.yml, next to the existing stale-tarball purge (#3543). It removes any cached esptool install whose launcher can't start, and fbuild re-downloads it on first use. Delete the step once fbuild#1655 lands.Tested locally against a fake cache with one dangling-symlink venv and one healthy venv: only the broken one is removed. The workflow YAML parses and
ci/tests/test_github_actions_security.pypasses. Theci-fullrun on this PR is the real-runner test.🤖 Generated with Claude Code
Summary by CodeRabbit