Repository navigation
[release/3.1.0] Backport standalone CI fix and defer wheel URL validation - #9228
kellyguo11 merged 2 commits into
Conversation
Cherry-pick of isaac-sim#9210 with no changes. (cherry picked from commit 76b6530)
|
run-ci |
There was a problem hiding this comment.
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_stdioand 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: |
There was a problem hiding this comment.
🟡 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. |
There was a problem hiding this comment.
🟡 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.
| 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. |
There was a problem hiding this comment.
🟡 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.
[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
SummaryRestores concurrent standalone smoke tests and adds a child-only workaround for Kit shutdown flushing.
Acknowledged by Reviews (1) · Last reviewed commit: "Backport four-worker standalone smoke te..." · Reviewed by Greptile |
| 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) |
There was a problem hiding this comment.
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!
|
run-ci |
Description
Backport #9210 to
release/3.1.0and 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
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.git diff --checkpassed before committing. Full pre-commit checks were rerun successfully after the workflow change.uv run isaaclab --formatcould 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.