Skip to content

fix(openshell): keep generated sandbox names routable - #2671

Merged
cwing-nvidia merged 2 commits into
mainfrom
fix/openshell-sandbox-name-length
Aug 25, 2026
Merged

cwing-nvidia merged 2 commits into
mainfrom
fix/openshell-sandbox-name-length

Conversation

@cwing-nvidia

@cwing-nvidia cwing-nvidia commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • generate compact ng-<16 hex> OpenShell sandbox names within the gateway's 19-character routing limit
  • preserve stable name reuse across retries and ALREADY_EXISTS recovery
  • cover name length, DNS-safe format, uniqueness, and create-call mapping

Fixes #2666.

Test plan

  • uv run --extra dev --extra openshell pytest tests/unit_tests/test_openshell_provider.py -q (83 passed)
  • pre-commit run --files nemo_gym/sandbox/providers/openshell/provider.py tests/unit_tests/test_openshell_provider.py
  • Live AsyncSandbox lifecycle against OpenShell 0.0.111's Homebrew gateway over mTLS: created ng-0a484765a0434088 (19 characters), executed a command successfully, and confirmed cleanup with no remaining sandboxes

Use a compact DNS-safe identifier so current OpenShell gateways accept Gym-created sandboxes without weakening their routing-name constraint.

Signed-off-by: Chris Wing <cwing@nvidia.com>
@github-actions github-actions Bot removed the sla:review-overdue Review response is over the one-business-day SLA label Aug 24, 2026
@cwing-nvidia
cwing-nvidia enabled auto-merge (squash) August 25, 2026 00:24
@cwing-nvidia
cwing-nvidia merged commit 07bb0f5 into main Aug 25, 2026
41 checks passed
@cwing-nvidia
cwing-nvidia deleted the fix/openshell-sandbox-name-length branch August 25, 2026 00:29

This branch was previously deployed

1 inactive deployment
public — 1abad5d9 Deployed Aug 25, 2026 by copy-pr-bot[bot] via release / finalize / notify #1721
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(openshell): generate sandbox names within the gateway routable-name limit

2 participants