Repository navigation
Add -a for extra docker run options for start_ursim.sh - #618
Conversation
Callers can pass additional mounts and docker run options without rebuilding the launch command.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #618 +/- ##
==========================================
- Coverage 83.92% 83.83% -0.10%
==========================================
Files 127 127
Lines 8417 8424 +7
Branches 3829 3829
==========================================
- Hits 7064 7062 -2
- Misses 947 955 +8
- Partials 406 407 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
There was a problem hiding this comment.
🟡 Changes recommended
Multiline option lists silently lose arguments after the first newline because read only processes the first line, requiring corrected parsing and a regression test.
1 open issue
What changed in this PR
Adds -a to start_ursim.sh so callers can supply extra Docker run options without modifying the launch command.
Changes:
- Parses additional options and inserts them before the container name and image.
- Documents whitespace splitting with a volume and environment-variable example.
- Adds tests for e-series, PolyScope X, and launches without extra options.
| File | Description |
|---|---|
| tests/test_start_ursim.bats | Tests extra options for both simulator variants and default behavior. |
| scripts/start_ursim.sh | Adds help text, argument parsing, and Docker command integration for -a. |
| doc/setup/ursim_docker.rst | Documents how to pass extra Docker options. |
Review effort: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
urfeex
left a comment
There was a problem hiding this comment.
Tested locally by specifying -a "-e CB_TYPE=CB7 -e TF_TYPE_CONTROLLER=TF_V2" on the 10.15 preview image in order to get a CB7 / TF_V2 robot.
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |

Callers can pass additional mounts and docker run options without rebuilding the launch command.