Skip to content

[Tests] Skip DrLegs-Walk in the contrib environment test - #7623

Merged
kellyguo11 merged 1 commit into
isaac-sim:developfrom
StafaH:fix/skip-drlegs-walk-contrib-test
Sep 7, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:developfrom
StafaH:fix/skip-drlegs-walk-contrib-test

Conversation

@StafaH

@StafaH StafaH commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Description

test-contrib-environments failed on #7610 (run 34042243157) in test_contrib_environments[IsaacContrib-DrLegs-Walk] with AssertionError: Invalid data on the policy observation. The PR itself only touched source/isaaclab/test/install_ci, so this is unrelated to that change.

Root cause. The first row of the failing observation is NaN across projected gravity, base angular velocity and joint positions, i.e. the robot state itself is non-finite, not a single observation term. Reproducing the test scenario locally (2 envs, 20 random-action steps, fresh env per seed) shows the Kamino P-ADMM solver diverging mid-episode: in 1 of 12 seeds the entire state of env 0 (root position, root quaternion, joint positions and velocities) turns NaN at step 6. The heading-driven velocity command then inherits the NaN through heading_w, and the root_height / bad_orientation termination terms cannot fire because every comparison against NaN is false, so the episode is never reset. The sibling IsaacContrib-DrLegs-HoldPose task (same robot, same solver preset, same random actions) stayed finite in 9 of 9 local trials and passed in the same CI job, as did the deprecated alias id of the Walk task, which is why the failure is intermittent rather than deterministic.

Change. Add DrLegs-Walk to _SKIPPED_TASK_SUBSTRINGS in test_contrib_environments.py with the reason documented inline. The substring covers both IsaacContrib-DrLegs-Walk and its deprecated alias Isaac-DrLegs-Walk-v0, which the test also enumerates. HoldPose keeps running. This is a test-side skip; the solver instability itself needs to be addressed in Kamino/Newton (or by retuning the DR Legs solver preset), and the inline comment says to re-enable once that lands.

Validation

  • Reproduction script (launches once, rebuilds the env per seed, mirrors env_test_utils._run_environments): Walk 1/12 seeds NaN at step 6 with root pose, joint state and the velocity command all non-finite; HoldPose 0/9.
  • pytest source/isaaclab_tasks/test/contrib/test_contrib_environments.py -k DrLegs-Walk -rs: both ids report SKIPPED ... Kamino solver intermittently produces NaN robot state under random actions.; HoldPose ids still collect as runnable.
  • Ruff and ruff-format pass; isaaclab_tasks changelog .skip fragment included.

Type of change

  • Test fix (non-breaking)

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 added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

The Kamino P-ADMM solver intermittently diverges under random actions and
the whole robot state turns NaN mid-episode, which the termination terms
cannot catch. The failure reproduces locally in about one of twelve seeds
while the sibling HoldPose task stays finite, so skip the Walk task and
its deprecated alias until the solver instability is resolved upstream.
@StafaH
StafaH requested a review from a team September 7, 2026 19:57
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 7, 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

The change adds a documented DrLegs-Walk entry to the existing contributed-environment substring skip list and includes the package’s .skip changelog fragment. The patch is narrowly scoped to suppressing the identified intermittent Kamino solver failure in the smoke test.

  • Design and architecture: The change reuses the established _SKIPPED_TASK_SUBSTRINGS mechanism and leaves the environment setup and execution paths unchanged. The skip rationale and re-enable condition are recorded next to the affected entry.
  • API: No production API, runtime configuration, exports, or task registrations are changed. Substring matching skips both the contributed DrLegs-Walk task and its deprecated alias while not matching the sibling DrLegs-HoldPose task.
  • Implementation: The new dictionary entry is consumed by the existing _skip_reason and parametrization logic, which applies a documented pytest skip mark. The residual tradeoff is that any future task name containing DrLegs-Walk will also be skipped until this entry is removed after the solver instability is resolved.

No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.

Automated review; human maintainers own approval decisions.

@greptile-apps

greptile-apps Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR excludes the intermittently unstable DrLegs Walk environments from the contributed-environment smoke test.

  • Adds a documented substring skip covering both the canonical task ID and its deprecated alias.
  • Leaves the sibling DrLegs HoldPose task runnable.
  • Adds a changelog fragment explaining the test-only mitigation.

Confidence Score: 5/5

The PR appears safe to merge because the skip reaches both intended unstable task IDs without affecting currently registered sibling tasks.

The substring is consumed by the existing collection-time skip mechanism, matches the canonical and deprecated DrLegs Walk IDs, and does not match either HoldPose ID.

Important Files Changed

Filename Overview
source/isaaclab_tasks/test/contrib/test_contrib_environments.py Adds a collection-time skip for both registered DrLegs Walk IDs without suppressing the HoldPose variants.
source/isaaclab_tasks/changelog.d/fix-skip-drlegs-walk-contrib-test.skip Documents the intermittent solver divergence and resulting test-only skip.

Reviews (1): Last reviewed commit: "Skip DrLegs-Walk in the contrib environm..." | Re-trigger Greptile

@StafaH

StafaH commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Tracking issue for fixing the solver divergence and re-enabling this test: #7625

@kellyguo11
kellyguo11 merged commit 63d579e into isaac-sim:develop Sep 7, 2026
54 checks passed
@StafaH
StafaH deleted the fix/skip-drlegs-walk-contrib-test branch September 13, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci:run-docker Trigger the on-demand Docker and GPU CI workflow isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants