Skip to content

Report rendering XFAIL reasons in HTML - #6812

Merged
nvsekkin merged 4 commits into
isaac-sim:developfrom
nvsekkin:esekkin/kitless-xfail-stabilization-patch
Jul 31, 2026
Merged

nvsekkin merged 4 commits into
isaac-sim:developfrom
nvsekkin:esekkin/kitless-xfail-stabilization-patch

Conversation

@nvsekkin

@nvsekkin nvsekkin commented Jul 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Follow-up to Stabilize kitless rendering CI #6767: reports image-comparison XFAILs as UNRELIABLE and XPASSes as XPASS (REVIEW XFAIL) with ticketed reasons in the HTML artifact.
  • Skipped or crashed tests that never reach image comparison remain out of scope.

Type of change

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

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

Distinguish expected image mismatches from unexpected failures in the
comparison artifact and expose their ticketed reason for triage.
@nvsekkin
nvsekkin requested a review from a team July 30, 2026 21:14
@greptile-apps

greptile-apps Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds ticketed XFAIL reasons and distinct expected/unexpected outcome labels to rendering comparison HTML reports.

  • Escapes XFAIL reasons before inserting them into generated HTML.
  • Annotates comparison entries during fixture teardown for session-level reporting.
  • Adds focused coverage for XFAIL, XPASS, ordering, and HTML escaping behavior.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
source/isaaclab_tasks/test/rendering_test_utils.py Extends rendering reports with escaped XFAIL reasons, outcome-specific labels and styling, and fixture-time comparison annotations.
source/isaaclab_tasks/test/test_parametrization_helpers.py Adds coverage for mixed expected-failure outcomes, XPASS labeling, reason escaping, and report ordering.
source/isaaclab_tasks/changelog.d/esekkin-kitless-xfail-stabilization-patch.skip Records the test-only rendering report enhancement.

Reviews (4): Last reviewed commit: "Restore comparison helper naming" | Re-trigger Greptile

@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Jul 30, 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 HTML report correctly adds escaped XFAIL reasons and an UNRELIABLE (XFAIL) status, but the new data flow relies on an undocumented mutation performed by the JUnit-property helper.

  • Design and architecture: The report consumes xfail_reason from shared comparison-score dictionaries, while attach_comparison_properties is the sole producer. This creates a non-obvious ordering dependency between JUnit attachment and HTML generation that should be documented or represented by a clearly named annotation step.
  • API: No public or extension-facing API changes are introduced. The HTML header and row structures remain aligned, reasons are HTML-escaped, and the test-only changelog fragment follows the repository rule for the touched package.
  • Implementation: The status selection, failure guard, CSS classes, and empty-reason fallback are internally consistent, and the test exercises the actual report path. However, attach_comparison_properties now mutates each failed comparison entry despite its name and docstring describing only JUnit XML property attachment; this hidden side effect supplies all XFAIL report state and should be made discoverable.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

Preserve expected-failure metadata for passing comparisons so the HTML
artifact identifies marks that may need review instead of hiding them.
@nvsekkin

Copy link
Copy Markdown
Collaborator Author

@greptile review

Apply one XFAIL or XPASS verdict across every AOV produced by a test and
prioritize marked rows so expected-outcome signals remain visible.
@nvsekkin

Copy link
Copy Markdown
Collaborator Author

@greptile review

Keep the established helper and fixture names while documenting their HTML
annotation side effect, avoiding unrelated rename churn in this focused fix.
@nvsekkin

Copy link
Copy Markdown
Collaborator Author

@greptile review

@nvsekkin
nvsekkin merged commit 429326c into isaac-sim:develop Jul 31, 2026
72 of 74 checks passed
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

- Follow-up to isaac-sim#6767: reports image-comparison XFAILs as `UNRELIABLE`
and XPASSes as `XPASS (REVIEW XFAIL)` with ticketed reasons in the HTML
artifact.
- Skipped or crashed tests that never reach image comparison remain out
of scope.

## Type of change

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

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] 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)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
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.

3 participants