Skip to content

test[next]: apply exclusion-matrix xfails as strict markers - #3082

Draft
havogt wants to merge 1 commit into
havogt/test-conditionals-corefrom
havogt/strict-matrix-xfail
Draft

havogt wants to merge 1 commit into
havogt/test-conditionals-corefrom
havogt/strict-matrix-xfail

Conversation

@havogt

@havogt havogt commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

BACKEND_SKIP_TEST_MATRIX entries with XFAIL called pytest.xfail() inside the backend fixture. That aborts the test before its body runs, so an entry could never report an unexpected pass, despite xfail_strict = true and the note in definitions.py. A backend that gains a feature went unnoticed. apply_backend_exclusions now applies XFAIL entries as strict xfail markers, so the test runs and an XPASS fails. SKIP entries are still raised.

Running the formerly xfailed items locally (internal and dace, cpu and cuda13) found 205 that pass. The matrix and tests are adjusted accordingly:

  • Removed entries that pass everywhere: uses_tuple_args_with_different_but_promotable_dims (roundtrip, gtir, gtfn, dace), uses_scan_nested (gtfn), and uses_reduction_with_only_sparse_fields on gtfn and the gtfn C++ formatter. The last one stays on dace, so it moves from the common list to the dace list.
  • uses_scan_without_field_args passes on embedded numpy only: such a scan has no buffer to take the array type from, so it allocates with NumPy. It moves to a NON_NUMPY_EMBEDDED_SKIP_LIST.
  • uses_concat_where passes on roundtrip except when the branches have different local dimensions. Added uses_concat_where_mixed_local_dims for those three tests. The roundtrip list uses it, and gtir keeps uses_concat_where. In the two *_on_empty_branch tests the static_domains case prunes the empty branch before lowering, so that case no longer carries uses_concat_where. The marker moved from the module to the static_domains fixture params to make this possible.
  • test_collect_metrics: only the PERFORMANCE/ALL levels (compute metrics) carry uses_program_metrics. DISABLED/MINIMAL pass on roundtrip.
  • test_single_value_field checked nothing: it wrote a back into itself and compared against inout=a[1, 3], a scalar copy taken before the call. It now writes a + 1 and compares the a[1:2, 3:4] view. It passes on all backends except jax, where uses_program_with_sliced_out_arguments correctly xfails it.
  • test_slice_sparse no longer carries uses_sparse_fields: dace supports reading a sparse field with list_get. The other three tests with the marker shift sparse fields and still fail there.
  • Removed roundtrip.with_temporaries from the iterator program_processor params. Its (ALL, XFAIL) entry meant it never ran. 110 of its 119 items pass. The other 9 fail for five unrelated reasons (extra-dim temporaries, scans, assertions in type inference and shift tracing), so no single marker replaces ALL. The backend is unchanged in src/.

ADR 15's note now mentions the strict application.

Not run locally: rocm and atlas sessions. Expect CI to surface any XPASS there.

Requirements

  • All fixes and/or new features come with corresponding tests.
  • Important design decisions have been documented in the appropriate ADR inside the docs/development/ADRs/ folder.

@havogt
havogt added this pull request to stack #3083 December 3, 2026 17:36
@havogt havogt changed the title test[next]: apply exclusion-matrix xfails as strict markers and drop stale entries test[next]: apply exclusion-matrix xfails as strict markers Dec 3, 2026
@havogt

havogt commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Written by an agent on behalf of @havogt

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant