Skip to content

[release/3.1.0] Backport standalone CI fix and defer wheel URL validation - #9228

Merged
kellyguo11 merged 2 commits into
isaac-sim:release/3.1.0from
kellyguo11:codex/backport-9210-release-3.1.0
Nov 25, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:release/3.1.0from
kellyguo11:codex/backport-9210-release-3.1.0

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Backport #9210 to release/3.1.0 and temporarily unblock release wheel builds while Newton still requires GitHub-pinned dependencies.

The first commit is a clean, exact cherry-pick of 76b6530954689623e272021263a2fcc1741b7bc2. A separate follow-up commit disables the release wheel direct-URL metadata gate, with a TODO to restore it once Newton is released on a package index. Wheel build, dependency resolution, and installation checks remain enabled.

Restore four pytest workers for standalone smoke tests within the existing CI slot budgets. Kit smoke-test children use a test-only bootstrap to flush Python and native stdout/stderr without Isaac Sim's global fflush(NULL), which was observed hanging on an unrelated native file lock. The existing launch cases, assertions, and timeouts are preserved.

Validation

  • All repository pre-commit hooks passed against upstream/release/3.1.0: ISAACLAB_CHANGELOG_BASE_REF=upstream/release/3.1.0 uv run --no-project --with pre-commit python -m pre_commit run --all-files.
  • Verified the cherry-pick commit exactly matches Restore four-worker standalone smoke tests #9210; the relevant test runner inputs on the release branch also match the source commit's parent.
  • git diff --check passed before committing. Full pre-commit checks were rerun successfully after the workflow change.
  • Reused the original passing GPU CI and its repeat results recorded in Restore four-worker standalone smoke tests #9210. GPU tests were not rerun locally. The project lockfile excludes macOS, so uv run isaaclab --format could not run; the same pre-commit hooks were run directly through uv instead.

As noted in #9210, native RTX destruction can still approach the existing 300-second timeout under concurrent load; this backport does not address that separate delay.

Cherry-pick of isaac-sim#9210 with no changes.

(cherry picked from commit 76b6530)
@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

@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 (3). Other reviewed categories look good.

  • PR description: Title matches routing and bootstrap changes; retain reused GPU CI evidence, remove repeated patch-equivalence prose, and document reproducible baseline/candidate timing with revisions, command/workload, hardware, backend, environment count, warmup, and suite wall time.
  • 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 bootstrap callback violates the private-name convention; rename it _flush_stdio and remove comments duplicating the flush rationale and slot-budget documentation.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 3 inline findings.

Automated review; human maintainers own approval decisions.

from pathlib import Path


def flush_stdio() -> None:

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 — Keep the flush callback private

This function is used only within the bootstrap, but its unprefixed name presents it as public under the repository convention. Rename it _flush_stdio and update the assignment.

if __name__ == "__main__":
from isaacsim.simulation_app import SimulationApp

# Isaac Sim 6.3's fflush(NULL) can block on an unrelated background stream lock.

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 — Remove the repeated flush rationale

The file-lock explanation repeats the function docstring and adds a second place to maintain the same constraint. Remove this line; keep the distinct child-only scope comment.

Comment thread tools/test_settings.py
PYTEST_WORKERS = {
# Overlapping standalone RTX apps can stall in native renderer destruction on a shared GPU.
"test_standalone_scripts.py": 1,
# Keep standalone launches concurrent within the CI job's existing 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 — Remove the redundant worker comment

The comment restates the worker count’s effect and the slot-budget rule documented immediately below the mapping. Remove it.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · The PR appears safe to merge, with a non-blocking test gap around selective native flushing.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change affects standalone-script smoke tests and the CI jobs that run them.

The PR appears safe to merge, with a non-blocking test gap around selective native flushing.

Findings

  1. P2 Selective flushing lacks focused tests ▶

Summary

Restores concurrent standalone smoke tests and adds a child-only workaround for Kit shutdown flushing.

  • Standalone smoke tests run with four workers and a Kit-only shutdown workaround.

Acknowledged by kellyguo11: native RTX destruction can still approach the existing 300-second timeout under concurrent load. That separate delay is explicitly deferred.

Reviews (1) · Last reviewed commit: "Backport four-worker standalone smoke te..." · Reviewed by Greptile

Comment on lines +35 to +38
names = ("__stdoutp", "__stderrp") if sys.platform == "darwin" else ("stdout", "stderr")
streams = tuple(ctypes.c_void_p.in_dll(libc, name) for name in names)
for stream in streams:
libc.fflush(stream)

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.

P2 Selective flushing lacks focused tests

flush_stdio() has no focused test proving that it flushes only native stdout and stderr. The GPU smoke tests could pass even if a later change restores fflush(NULL), since the hang depends on a background file lock. Add a GPU-free test with a mocked C library that checks both stream pointers and rejects a null argument.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@kellyguo11 kellyguo11 changed the title [release/3.1.0] Restore four-worker standalone smoke tests (#9210) [release/3.1.0] Backport standalone CI fix and defer wheel URL validation Nov 25, 2026
@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 merged commit ef82ce3 into isaac-sim:release/3.1.0 Nov 25, 2026
75 of 96 checks passed
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