Skip to content

Restore concurrent standalone tests and fix shutdown resource cleanup - #9210

Draft
kellyguo11 wants to merge 6 commits into
isaac-sim:mainfrom
kellyguo11:codex/reduce-standalone-ci-time
Draft

kellyguo11 wants to merge 6 commits into
isaac-sim:mainfrom
kellyguo11:codex/reduce-standalone-ci-time

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Standalone non-Kit smoke tests grew from about 7 minutes to 20 minutes after #9145 reduced their pytest worker count from four to one. Restore four workers within the existing CI job slot budgets and runner count, and address the shutdown problems exposed by concurrent launches.

  • Synchronize the renderer's external CUDA producers before destroying the native RTX engine that borrows their buffers. This adds one synchronization at engine teardown.
  • Release standalone Newton viewer GL/CUDA resources explicitly before the RTX engine is destroyed. Kit retains its existing shared-context behavior; closing an already closed viewer remains idempotent.
  • Replace Isaac Sim 6.3's global fflush(NULL) shutdown hook on the launcher-owned app with a flush of Python and native stdout/stderr. The global flush can deadlock on an unrelated C stream held by a background thread. Normal app and renderer cleanup still runs.
  • Opt CI containers out of Omniverse startup telemetry, whose SDK-documented DNS/reporting worker can also delay process exit.

All existing launch cases, clean-exit assertions, timeouts, runner counts, and GPU slot budgets are preserved. Kit remains capped at its existing three job slots. Temporary Python/native diagnostic instrumentation has been removed.

Validation:

  • Full formatting/lint checks, changelog gate, and git diff --check passed.
  • Native stream regression passed locally with buffered output; restoring the old global flush makes it time out. It verifies Python and native stdout/stderr survive fast exit while another thread owns an unrelated native stream lock.
  • The new visualizer lifecycle cases passed on Linux CI; a sibling picking fixture missing a window context has been corrected.
  • Local visualizer/OVRTX checks are blocked by missing ovstorage on macOS. Linux GPU CI validates those packages.
  • Full GPU CI passed on 7676140de: run 45586822740, attempt 1. Visualizer, OVRTX, and all other package jobs passed.
  • Non-Kit standalone: 23 passed / 3 skipped in 8m38s of pytest time (9m34s whole job), with four workers. Kit standalone: 19 passed / 2 skipped (5m39s whole job).
  • Still unresolved: H1/NIST take 266s/260s with four workers, versus 62s/42s in the serialized Migrate supported task and example defaults to standalone OV backends #9145 run. Native stacks wait in destroyRTXRenderer → gpu.foundation → carb.tasking. CUDA synchronization did not eliminate this slowdown. The overall speedup does not establish stable shutdown.
  • Repeated both standalone jobs on the same 7676140de commit. Non-Kit attempt 2: 23 passed / 3 skipped in 8m34s pytest time (9m36s whole job). Kit attempt 3: 19 passed / 2 skipped in 4m39s pytest time (5m29s whole job), including tactile in 26.81s. No timeout or crash occurred in these repeats.
  • The repeated H1/NIST times were 278s/267s, still close to the unchanged 300s timeout. This PR remains draft: these green runs do not resolve the native destruction delay or establish adequate timeout margin. A source-level fix requires access to the native OVRTX/GPU teardown implementation; the local SDK contains Python bindings and stripped native binaries, and internal source search is currently unreachable.

@kellyguo11

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Restores parallel standalone smoke tests and disables startup telemetry in test containers.

  • Standalone smoke tests run across four workers when the job has enough slots.
  • CI test containers start with Omniverse telemetry disabled.

Reviews (1) · Last reviewed commit: "Restore concurrent standalone tests with..." · Reviewed by Greptile

@isaaclab-review-bot isaaclab-review-bot Bot 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.

Isaac Lab Review Bot

Needs attention: Style consistency (1). Other reviewed categories look good.

  • PR description: Two-file scope matches; qualify “without telemetry exit waits” pending CI and substantiate timing with reproducible baseline/candidate revisions, command/workload, hardware, backend, environment count, warmup, duration, and clean-exit results.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: The replacement worker comment repeats the nearby docstring and removes the shared-GPU renderer-destruction rationale; retain that constraint until parallel teardown is verified.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 1 inline finding.

Automated review; human maintainers own approval decisions.

Comment thread tools/test_settings.py Outdated
PYTEST_WORKERS = {
# Overlapping standalone RTX apps can stall in native renderer destruction on a shared GPU.
"test_standalone_scripts.py": 1,
# Each standalone launch owns a subprocess; overlap startups within the job's slot budget.

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.

🟡 Warning · Style Consistency — Preserve the renderer-concurrency rationale

This replaces the shared-GPU renderer-destruction warning with process and slot mechanics already covered by the PYTEST_WORKERS docstring. The remaining concurrency constraint becomes hard to find; retain it until parallel renderer teardown is verified.

@kellyguo11

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Nov 25, 2026
@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
@kellyguo11
kellyguo11 marked this pull request as draft November 25, 2026 08:36
@kellyguo11

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
@kellyguo11 kellyguo11 changed the title Restore parallel standalone smoke tests without telemetry exit waits Restore concurrent standalone tests and fix shutdown resource cleanup Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant