Skip to content

Bring CI to parity with manipulation; prefetch remote packages - #645

Merged
RussTedrake merged 2 commits into
masterfrom
ci-parity
Nov 26, 2026
Merged

RussTedrake merged 2 commits into
masterfrom
ci-parity

Conversation

@RussTedrake

@RussTedrake RussTedrake commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

The nightly CI on master (run 45466877641) failed when the spot_description download timed out in the middle of test_spot. This PR brings manipulation's CI improvements over. The two main.yml files now differ only in repo names, black versions, and manipulation's CPU-only torch and data directory. The shared helpers live in htmlbook (9e9d38c, already on htmlbook master).

  • Prefetch remotes: setup/prefetch_remotes.py downloads drake_models and spot_description before pytest, retrying failures through htmlbook.drake_remotes. Pytest then runs with DRAKE_ALLOW_NETWORK=lcm:meshcat, so a package that wasn't prefetched fails immediately instead of downloading mid-test.
  • Solutions: each test job clones RobotLocomotion/underactuated-solutions at solutions_sha.txt when the SOLUTIONS_TOKEN secret is set. ⚠️ This repo doesn't have that secret yet; until it does, the step is skipped.
  • Fork PRs: they run through pull_request_target only after a collaborator approves them or adds the approved-for-ci label.
  • Test speed: pytest-xdist with -n 2 --dist loadfile, one native thread per worker, --durations=30, and JUnit timing artifacts.
  • Setup:
    • Ubuntu's own git instead of the PPA.
    • INSTALL_JUPYTER=0 in the Poetry job, which gets Jupyter from its venv.
    • xvfb removed; nothing here needs an X server.
    • More robust Homebrew setup on macOS.
    • Poetry 2.5.1, matching poetry.lock.
  • Notebook coverage: book/test_notebook_coverage.py uses the shared htmlbook check. hybrid.ipynb and lcp_cart.ipynb were already commented out, so they're now listed in UNTESTED with their reasons.
  • Docs: docs/testing.md explains all of the above.

Local run with the CI settings: 209 passed. 4 failed from LCM multicast on my Mac, and they fail the same way without the new settings; the macOS CI job sets up that route.

🤖 Generated with Claude Code


This change is Reviewable

The nightly CI on master failed when the spot_description download timed
out in the middle of test_spot. Port manipulation's CI improvements:

- Prefetch Drake remote packages (setup/prefetch_remotes.py, with retries
  from htmlbook) before pytest, then run pytest with
  DRAKE_ALLOW_NETWORK=lcm:meshcat so uncached packages fail loudly instead
  of downloading mid-test.
- Check out underactuated-solutions at solutions_sha.txt when the
  SOLUTIONS_TOKEN secret is available, so solutions are tested too.
- Gate fork PRs behind collaborator status or the approved-for-ci label,
  via pull_request_target, before they receive secrets.
- Run pytest with two xdist workers (--dist loadfile) and one native
  thread each; report slow tests and upload JUnit timings.
- Use Ubuntu's git, skip system Jupyter in the Poetry job
  (INSTALL_JUPYTER=0), and drop xvfb, which nothing here needs.
- Harden Homebrew setup on macOS; use Poetry 2.5.1 to match poetry.lock.
- Add book/test_notebook_coverage.py using the shared htmlbook check.
  hybrid.ipynb and lcp_cart.ipynb were already disabled; list them as
  UNTESTED with their reasons.
- Document all of this in docs/testing.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RussTedrake
RussTedrake merged commit bfbeae6 into master Nov 26, 2026
5 checks passed
@RussTedrake
RussTedrake deleted the ci-parity branch November 26, 2026 12:50
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