Skip to content

ci: cache robot_descriptions assets across runs#530

Merged
petercorke merged 1 commit into
mainfrom
ci/cache-robot-descriptions
Jul 3, 2026
Merged

ci: cache robot_descriptions assets across runs#530
petercorke merged 1 commit into
mainfrom
ci/cache-robot-descriptions

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

  • Model tests (Panda, PR2, UR3/5/10, Jaco, ...) load URDFs via robot_descriptions, which lazily git clones large upstream asset repos (hundreds of files) on first use of a given model rather than bundling the data
  • On a fresh CI runner this clone happens mid-test, competing with the per-test --timeout=50, and shows up as ValueError: 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 ~/.cache/robot_descriptions (confirmed via robot_descriptions' own source: always os.path.expanduser("~/.cache/robot_descriptions"), consistent across Windows/Mac/Linux) across test-core, test, and coverage jobs — only the first run after this lands pays the fetch cost

Test plan

  • YAML validated with python -c "import yaml; yaml.safe_load(...)"
  • This PR's own CI run is the first real test — expect the fetch to still happen once, then restore instantly on any subsequent run

🤖 Generated with Claude Code

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>
@petercorke petercorke merged commit ee69383 into main Jul 3, 2026
3 of 15 checks passed
@petercorke petercorke deleted the ci/cache-robot-descriptions branch July 3, 2026 00:20
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