ci: cache robot_descriptions assets across runs#530
Merged
Conversation
Model tests (Panda, PR2, UR3/5/10, Jaco, ...) load URDFs via robot_descriptions, which lazily git-clones large upstream asset repos on first use rather than bundling them. On a fresh CI runner that clone happens mid-test, competing with the per-test 50s timeout — slow and occasionally flaky (ImportError surfaces as "model not available" even though the model exists, robot_descriptions just couldn't fetch it in time). Caching ~/.cache/robot_descriptions between runs means only the first run after this lands pays that cost. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
robot_descriptions, which lazilygit clones large upstream asset repos (hundreds of files) on first use of a given model rather than bundling the data--timeout=50, and shows up asValueError: Robot model 'X' is not available(via fix(models): fall back to robot_descriptions' new naming, hide wrapped dependency on failure #529's improved error message) even though the model exists — robot_descriptions just couldn't fetch it in time~/.cache/robot_descriptions(confirmed via robot_descriptions' own source: alwaysos.path.expanduser("~/.cache/robot_descriptions"), consistent across Windows/Mac/Linux) acrosstest-core,test, andcoveragejobs — only the first run after this lands pays the fetch costTest plan
python -c "import yaml; yaml.safe_load(...)"🤖 Generated with Claude Code