Repository navigation
Fixes rlinf issue on windows and spark - #5966
kellyguo11 merged 3 commits into
Conversation
Greptile SummaryThis PR fixes two platform compatibility issues in the
Confidence Score: 4/5The 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 Important Files Changed
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]
Reviews (1): Last reviewed commit: "Merge branch 'develop' into mingxue/fix_..." | Re-trigger Greptile |
| 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>`_): |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
| "decord2", | |
| "decord2>=3.3.0", |
There was a problem hiding this comment.
PR Review: Windows Path Fix & decord2 Migration
Summary
This PR addresses two related platform compatibility issues:
- Windows path fix: Replaces colons in timestamp format (
%H:%M:%S→%H-%M-%S) since colons are invalid in Windows file paths - decord2 migration: Switches from
decord>=0.6.0todecord2, 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", |
There was a problem hiding this comment.
🟡 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:
| "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 |
There was a problem hiding this comment.
🔵 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:
| 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 |
There was a problem hiding this comment.
🤖 Isaac Lab Review Bot
Summary
This PR fixes two platform compatibility issues in the RLinf workflow:
- 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, causingmkdirfailures. - DGX Spark / aarch64 fix: Replaces
decord>=0.6.0withdecord2inpyproject.tomlextras. The originaldecordpackage lacks aarch64 wheels;decord2is a maintained fork with broader platform support. - Documentation cleanup: Removes the manual build-from-source instructions for
decordon aarch64, sincedecord2installs cleanly via pip. Also removes a now-unnecessary paragraph about re-running Step 1. - Changelog fragment: Adds a changelog entry for the
isaaclab_contribpackage describing the fix.
Findings
-
Timestamp format change is correct and safe. Replacing
%H:%M:%Swith%H-%M-%Sis 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). -
decord2dependency has no version pin. The old dependency wasdecord>=0.6.0— consider adding a minimum version constraint fordecord2(e.g.,decord2>=0.6.0) to prevent accidental installation of an older or incompatible release. This is a minor suggestion, not a blocker. -
Documentation removal looks slightly aggressive. The section about preloading
libgomp.so.1viaLD_PRELOADis still present but the leading paragraph ("Building decord on DGX Spark / aarch64") that provided context for why the preload is needed was removed. The remainingLD_PRELOADinstructions may now appear without clear motivation. Consider adding a brief sentence explaining that this preload is needed for aarch64 OpenMP compatibility regardless of decord. -
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.
… 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]>
Description
Resolve issues with valid Windows paths and the installation of decord on Spark.
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there