Skip to content

Remove stale xfail decorator from Newton environment tests - #5692

Merged
nvsekkin merged 2 commits into
isaac-sim:developfrom
nvsekkin:esekkin/pr-a-newton-xfail
May 19, 2026
Merged

nvsekkin merged 2 commits into
isaac-sim:developfrom
nvsekkin:esekkin/pr-a-newton-xfail

Conversation

@nvsekkin

@nvsekkin nvsekkin commented May 19, 2026 •

Copy link
Copy Markdown
Collaborator

Removed the stale file-level @pytest.mark.xfail decorator on test_environments_newton (the cited Hydra deep nesting issue was already resolved by PR #5029 and follow-ups #5130 / #5177).

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 the isaac-lab Related to Isaac Lab team label May 19, 2026
@greptile-apps

greptile-apps Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes the stale @pytest.mark.xfail(strict=False) decorator from test_environments_newton, which had been added as a workaround for a Hydra deep-nesting issue that has since been resolved by PRs #5029, #5130, and #5177.

  • test_environments_newton.py: The 8-line xfail block (including its TODO comment) is cleanly removed, so the Newton MJWarp environment tests will now run and be expected to pass in CI.
  • changelog.d/esekkin-pr-a-newton-xfail.rst: A new changelog fragment documents the removal; it is missing a trailing newline (minor convention issue).

Confidence Score: 5/5

Safe to merge — the change removes a decorator that was intentionally temporary, and the underlying bug it worked around is confirmed fixed.

The only modification to test logic is dropping an xfail wrapper whose TODO comment explicitly pointed to the now-merged PRs (#5029, #5130, #5177). The test body itself is unchanged, and CI will now simply fail loudly if a regression reintroduces the Hydra nesting bug, which is the desired behavior.

No files require special attention. The changelog fragment has a missing trailing newline but is otherwise correct.

Important Files Changed

Filename Overview
source/isaaclab_tasks/test/test_environments_newton.py Removes the stale @pytest.mark.xfail(strict=False) decorator from test_environments_newton; the underlying Hydra deep-nesting bug was already resolved upstream.
source/isaaclab_tasks/changelog.d/esekkin-pr-a-newton-xfail.rst New changelog fragment documenting the removal of the stale xfail decorator; missing trailing newline (minor RST convention issue).

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[pytest collects test_environments_newton] --> B{xfail decorator present?}
    B -- Before PR: Yes --> C[Test runs; pass or fail both accepted\nstrict=False]
    B -- After PR: No --> D[Test runs normally]
    D --> E{Result}
    E -- Pass --> F[✅ CI green]
    E -- Fail --> G[❌ CI failure surfaced]
Loading

Reviews (1): Last reviewed commit: "Remove stale xfail decorator" | Re-trigger Greptile

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

Review: Remove stale xfail decorator

LGTM ✅ — Clean test cleanup.

Summary

This PR correctly removes the stale @pytest.mark.xfail decorator from test_environments_newton.py. The decorator was originally added to mark tests as expected failures due to nested PresetCfg resolution issues with Hydra, but as the TODO comment in the removed code states, this was resolved by PR #5029 and follow-ups #5130/#5177.

Changes

  1. test_environments_newton.py: Removes the 8-line xfail decorator block — straightforward and correct
  2. Changelog fragment: Documents the fix appropriately

CI Note

⚠️ The pre-commit check is failing due to a missing newline at end of file in esekkin-pr-a-newton-xfail.rst. Please add a trailing newline to fix this.

Verdict

Approving the logic — the xfail removal is correct. Just needs the minor formatting fix for CI.


Update (8165d66): ✅ Trailing newline added to changelog file — formatting issue resolved. PR is good to go!

@nvsekkin nvsekkin changed the title Remove stale xfail decorator Remove stale xfail decorator from test_environments_newton.py May 19, 2026
@nvsekkin nvsekkin changed the title Remove stale xfail decorator from test_environments_newton.py Remove stale xfail decorator from Newton environment tests May 19, 2026
@nvsekkin
nvsekkin merged commit 16d6315 into isaac-sim:develop May 19, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants