Repository navigation
Conversation
Carry recorded attributes on test reports so the controller can write them to JUnit XML. Keep xUnit2 filtering and warn when the fixture is used on a worker with that family. Co-authored-by: Claude Opus 5.5 (Claude Code) <[email protected]> Assisted-by: Codex CLI (gpt-6.2-sol)
There is no fixture:: entry for record_xml_attribute in the reference docs, so the :fixture: role failed the docs build (warnings are errors). Co-authored-by: Claude Opus 5.5 (Claude Code) <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8654.
I traced the missing attributes to where
record_xml_attributewrites them. It writes straight toLogXML, which only exists on the controller when xdist is running. The fixture runs on a worker, so those calls used to do nothing there.I now keep the attributes on the test item and send a copy as strings on each test report. The controller reads them from the report before applying the existing XML escaping and xunit family rules. The experimental warning still appears, and workers now also emit the xunit2 compatibility warning when JUnit XML is enabled.
There's one output change even without xdist. If the test fails and its teardown also errors, attributes recorded before teardown now appear on both
<testcase>elements in xunit1. Attributes recorded during teardown appear on the teardown error element. Does that match what you'd want for a test with two testcase elements?LogXMLagain, and passing raw values instead of strings. Both xdist regression cases failed for each mutation when I reran them against the final code.b5b89d99ewith-p no:cacheproviderand got the same failure and error.test_fixture_doctest_skip_has_line_numberfailed because the reported line number wasNone.test_cache_makedirerrored at setup because the cache fixture was unavailable. I also checked that the cache test passes with the provider enabled on both revisions.