Skip to content

Fixes rlinf issue on windows and spark - #5966

Merged
kellyguo11 merged 3 commits into
isaac-sim:developfrom
mingxueg-nv:mingxue/fix_rlinf_on_windows11_spark
Jun 5, 2026
Merged

kellyguo11 merged 3 commits into
isaac-sim:developfrom
mingxueg-nv:mingxue/fix_rlinf_on_windows11_spark

Conversation

@mingxueg-nv

@mingxueg-nv mingxueg-nv commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Resolve issues with valid Windows paths and the installation of decord on Spark.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Jun 4, 2026
@greptile-apps

greptile-apps Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes two platform compatibility issues in the rlinf reinforcement learning scripts: colons in timestamp-based log directory names (invalid on Windows), and the decord package lacking pre-built aarch64 wheels (replaced with decord2 which ships them). The companion documentation is trimmed to remove the now-unnecessary build-from-source instructions.

  • All four rlinf scripts (play.py, play_rlinf.py, train.py, train_rlinf.py) change %H:%M:%S → %H-%M-%S in the strftime format used to name log directories, making the paths valid on Windows.
  • pyproject.toml swaps decord>=0.6.0 for decord2 (which provides manylinux_2_28_aarch64 wheels), removing the need to build from source on DGX Spark / aarch64 hosts.
  • The documentation removes the build-from-source instructions but leaves a "Then preload…" paragraph whose transitional wording now has no preceding step.

Confidence Score: 4/5

The code changes are safe to merge; the timestamp fix is a straightforward one-liner applied consistently across all four scripts, and decord2 is a legitimate, actively maintained package with the aarch64 wheels that motivated the switch.

The four script edits and the pyproject.toml dependency swap are clean and low-risk. The documentation edit leaves a dangling 'Then preload…' sentence and a now-misnamed section anchor that will confuse aarch64 users following the guide, but this does not affect runtime behavior.

docs/source/experimental-features/rlinf_vla_posttraining.rst — the paragraph starting with 'Then' and the .. _rlinf-decord-aarch64: anchor need a small follow-up wording fix after the build instructions were removed.

Important Files Changed

Filename Overview
docs/source/experimental-features/rlinf_vla_posttraining.rst Removes the aarch64 decord build-from-source instructions, but leaves a dangling 'Then preload...' paragraph and a misnamed section anchor that now points at the wrong content.
source/isaaclab_contrib/pyproject.toml Switches from decord>=0.6.0 (no aarch64 wheels) to decord2 (has aarch64 wheels), but omits a minimum version constraint unlike every other dependency in this group.
scripts/reinforcement_learning/rlinf/play.py Fixes Windows-incompatible colons in timestamp format string for log directory paths; straightforward and correct.
scripts/reinforcement_learning/rlinf/play_rlinf.py Same timestamp colon fix as play.py; consistent and correct.
scripts/reinforcement_learning/rlinf/train.py Same timestamp colon fix applied to the training script's log directory setup.
scripts/reinforcement_learning/rlinf/train_rlinf.py Same timestamp colon fix applied to the train_rlinf entry point.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[rlinf script starts] --> B[Build timestamp via strftime]
    B -->|Old format with colons| C[Fails on Windows - invalid path chars]
    B -->|New format with hyphens| D[Valid on all platforms]
    D --> E[Create log_dir with mkdir]

    G[pip install rlinf extras] --> H{Platform}
    H -->|x86_64| I[decord - old package]
    H -->|aarch64 DGX Spark| I
    I -->|Old| J[No pre-built wheel - build from source]
    H -->|Any platform| K[decord2 - new package]
    K -->|New| L[Pre-built wheel available for aarch64 and x86_64]
Loading

Reviews (1): Last reviewed commit: "Merge branch 'develop' into mingxue/fix_..." | Re-trigger Greptile

Comment on lines 120 to 122
Then preload the OpenMP library so it can be loaded into the Python process
(see the IsaacLab `pip installation guide
<https://isaac-sim.github.io/IsaacLab/develop/source/setup/installation/pip_installation.html#installing-dependencies>`_):

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 Dangling "Then" with no antecedent step

After removing the "Building decord on DGX Spark / aarch64" subsection, the paragraph that starts with "Then preload the OpenMP library..." has no preceding step to refer to. The word "Then" implies the reader just completed an action, but that action (building decord from source) is gone. The section anchor .. _rlinf-decord-aarch64: at line 118 also still refers to decord/aarch64 setup but now only precedes the OpenMP preload instructions, which creates a misleading cross-reference target. The paragraph text should be updated to stand alone (e.g., replace "Then preload" with "On aarch64 hosts, preload") and the anchor renamed to match the section's remaining content.

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!

"numpydantic>=1.7.0",
"albumentations>=1.4.18",
"decord>=0.6.0",
"decord2",

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 decord2 is listed without any version constraint, unlike every other dependency in this extras group which pins a minimum version. Without a floor, a pip resolver on a fresh environment could install any version including older ones that may have different APIs or lack the aarch64 wheels that motivated this switch.

Suggested change
"decord2",
"decord2>=3.3.0",

@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.

PR Review: Windows Path Fix & decord2 Migration

Summary

This PR addresses two related platform compatibility issues:

  1. Windows path fix: Replaces colons in timestamp format (%H:%M:%S → %H-%M-%S) since colons are invalid in Windows file paths
  2. decord2 migration: Switches from decord>=0.6.0 to decord2, which provides pre-built wheels for aarch64, eliminating the need for manual compilation on DGX Spark

🔬 Design Assessment

Approach: ✅ Correct and minimal. The timestamp format change is the right fix — using hyphens maintains readability while ensuring cross-platform compatibility.

Cross-Module Impact: Self-contained. These changes only affect logging directory names and the rlinf extra dependencies.

🔍 Findings

🟡 Observation: source/isaaclab_contrib/pyproject.toml — No version pin for decord2

The change from decord>=0.6.0 to just decord2 removes the version constraint. While this may be intentional (to always get latest), it could lead to unexpected breakage if a future decord2 release has breaking API changes.

Suggestion: Consider adding a minimum version:

"decord2>=3.0.0",

🔵 Minor: Documentation removal is appropriate

The removed section in rlinf_vla_posttraining.rst about building decord from source is correctly removed since decord2 now provides aarch64 wheels. However, the remaining text starts with "Then preload the OpenMP library..." which may read awkwardly without the preceding context. Consider updating the transitional text.

🧪 Test Coverage

Verdict: Tests not strictly required for this change.

This is a platform compatibility fix affecting file path generation and dependency resolution. The timestamp format change is deterministic and the decord2 API is compatible with decord. Manual testing on Windows would be the appropriate verification.

That said, if you want to be thorough:

  • The Windows path issue could be covered by a simple unit test validating that generated log paths contain no invalid characters
  • The decord2 import could be verified in CI if aarch64 runners are available

✅ Verdict

Ship it — This is a clean, focused bug fix. The changes are correct and improve cross-platform support. The optional version pinning suggestion is minor and can be addressed in a follow-up if desired.


🤖 Review by IsaacLab Review Bot

"numpydantic>=1.7.0",
"albumentations>=1.4.18",
"decord>=0.6.0",
"decord2",

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.

🟡 No version pin for decord2

The change from decord>=0.6.0 to bare decord2 removes version constraints. Consider adding a minimum version to avoid potential breakage from future API changes:

Suggested change
"decord2",
"decord2>=3.0.0",

This is a minor suggestion — the current approach is acceptable if you prefer to track latest.

make -j$(nproc)
cd ../python && pip install -e .

Then preload the OpenMP library so it can be loaded into the Python process

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.

🔵 Minor: Transitional text reads awkwardly

After removing the "Building decord on DGX Spark" section, this line now starts with "Then preload the OpenMP library..." without prior context. The "Then" implies a preceding step that no longer exists.

Consider updating the anchor and opening to something like:

Suggested change
Then preload the OpenMP library so it can be loaded into the Python process
OpenMP Preload on aarch64
~~~~~~~~~~~~~~~~~~~~~~~~~~
On aarch64 hosts (e.g. DGX Spark / Grace), preload the OpenMP library so it can be loaded into the Python process

@mingxueg-nv mingxueg-nv changed the title reslove rlinf issue on windows and spark Fixed rlinf issue on windows and spark Jun 4, 2026
@mingxueg-nv mingxueg-nv changed the title Fixed rlinf issue on windows and spark Fixes rlinf issue on windows and spark Jun 4, 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

Summary

This PR fixes two platform compatibility issues in the RLinf workflow:

  1. Windows path fix: Replaces colons (:) in timestamp format strings (%H:%M:%S → %H-%M-%S) across 4 script files. Colons are invalid in Windows file paths, causing mkdir failures.
  2. DGX Spark / aarch64 fix: Replaces decord>=0.6.0 with decord2 in pyproject.toml extras. The original decord package lacks aarch64 wheels; decord2 is a maintained fork with broader platform support.
  3. Documentation cleanup: Removes the manual build-from-source instructions for decord on aarch64, since decord2 installs cleanly via pip. Also removes a now-unnecessary paragraph about re-running Step 1.
  4. Changelog fragment: Adds a changelog entry for the isaaclab_contrib package describing the fix.

Findings

  1. Timestamp format change is correct and safe. Replacing %H:%M:%S with %H-%M-%S is a well-known Windows compatibility pattern. The timestamp is only used for log directory naming, so there is no functional impact on sorting (hyphen-separated times still sort lexicographically correctly: 14-05-30 < 14-06-00).

  2. decord2 dependency has no version pin. The old dependency was decord>=0.6.0 — consider adding a minimum version constraint for decord2 (e.g., decord2>=0.6.0) to prevent accidental installation of an older or incompatible release. This is a minor suggestion, not a blocker.

  3. Documentation removal looks slightly aggressive. The section about preloading libgomp.so.1 via LD_PRELOAD is still present but the leading paragraph ("Building decord on DGX Spark / aarch64") that provided context for why the preload is needed was removed. The remaining LD_PRELOAD instructions may now appear without clear motivation. Consider adding a brief sentence explaining that this preload is needed for aarch64 OpenMP compatibility regardless of decord.

  4. No regressions detected. The changes are minimal and well-scoped. The 4 script files have identical one-line changes (format string only). No logic changes, no API changes, no import changes.

Verdict

Minor suggestions only — no blocking issues found.

@kellyguo11
kellyguo11 merged commit 43adb71 into isaac-sim:develop Jun 5, 2026
36 of 37 checks passed
kellyguo11 added a commit that referenced this pull request Jun 7, 2026
… imports fixes, Newton 1.2.1rc2 pin (#6014)

# Description

Cherry pick fixes from develop:

- #5990 
- #5944 
- #5973
- #5935 
- #5948 
- #5932 
- #5966 
- #5927

---------

Signed-off-by: matthewtrepte <[email protected]>
Co-authored-by: sameerchavan0027 <[email protected]>
Co-authored-by: matthewtrepte <[email protected]>
Co-authored-by: Mustafa H <[email protected]>
Co-authored-by: Antoine Richard <[email protected]>
Co-authored-by: ooctipus <[email protected]>
Co-authored-by: mingxueg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants