Repository navigation
Remove stale xfail decorator from Newton environment tests - #5692
Conversation
Greptile SummaryThis PR removes the stale
Confidence Score: 5/5Safe 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 No files require special attention. The changelog fragment has a missing trailing newline but is otherwise correct. Important Files Changed
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]
Reviews (1): Last reviewed commit: "Remove stale xfail decorator" | Re-trigger Greptile |
There was a problem hiding this comment.
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
test_environments_newton.py: Removes the 8-line xfail decorator block — straightforward and correct- Changelog fragment: Documents the fix appropriately
CI Note
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!
Removed the stale file-level
@pytest.mark.xfaildecorator ontest_environments_newton(the cited Hydra deep nesting issue was already resolved by PR #5029 and follow-ups #5130 / #5177).Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there