Skip to content

Add -a for extra docker run options for start_ursim.sh - #618

Merged
urrsk merged 2 commits into
UniversalRobots:masterfrom
urrsk:dockerarg
Nov 6, 2026
Merged

urrsk merged 2 commits into
UniversalRobots:masterfrom
urrsk:dockerarg

Conversation

@urrsk

@urrsk urrsk commented Nov 4, 2026

Copy link
Copy Markdown
Member

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

Callers can pass additional mounts and docker run options without rebuilding the launch command.
Copilot AI balanced review requested due to automatic review settings November 4, 2026 15:23
@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.83%. Comparing base (e1425ce) to head (8e52633).
✅ All tests successful. No failed tests found.

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     
Flag Coverage Δ
python_scripts 49.69% <ø> (ø)
start_ursim 91.64% <100.00%> (-1.66%) ⬇️
unit 61.60% <ø> (ø)
ur20-latest 81.01% <ø> (-0.08%) ⬇️
ur5-3.14.3 80.83% <ø> (+0.03%) ⬆️
ur5e-10.11.0 76.57% <ø> (-0.06%) ⬇️
ur5e-10.12.0 77.54% <ø> (-0.13%) ⬇️
ur5e-10.7.0 76.14% <ø> (-0.07%) ⬇️
ur5e-5.9.4 81.06% <ø> (+0.02%) ⬆️
ur7e-10.13.0 78.13% <ø> (-0.08%) ⬇️
ur7e-10.14.0 78.47% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread scripts/start_ursim.sh Resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 5, 2026 08:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the change adding support for extra Docker run options.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@urrsk
urrsk marked this pull request as ready for review November 5, 2026 08:29
@urrsk
urrsk requested a review from urfeex November 5, 2026 11:49

@urfeex urfeex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mergify

mergify Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

@urrsk
urrsk merged commit c094c99 into UniversalRobots:master Nov 6, 2026
59 of 66 checks passed
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.

3 participants