Repository navigation
junit: record the invocation context as report properties - #1244
Merged
kostyanf14 merged 1 commit intoNov 24, 2026
Merged
Conversation
The junit report records what ran (test cases, counts, status) but not what the invocation was asked to run, so per-case invocations that share a suite directory cannot be told apart by report consumers without inferring it from the executed test names. Record the invocation context as properties: - category: the --category value (suite invocations) - testcase: the --testcase selection (per-case invocations; each distinct selection identifies one invocation structurally) - fmf_node: TMT_TEST_NAME when auto_hck runs as a tmt test child, which carries the originating test path; absent for manual invocations - tmt_job_id: TMT_JOB_ID when the environment provides it - testing_farm_request_id: TESTING_FARM_REQUEST_ID, exported by testing-farm to the test environment, so reports can be correlated with their request without parsing the whiteboard Nil values are omitted, so the properties only appear when they apply. Validated by rendering the report through the real JUnit class for the invocation shapes (per-case under tmt, manual suite, suite under tmt, with and without the optional environment variables) and asserting the resulting properties. Co-Authored-By: Claude Code <noreply@anthropic.com>
jamepark4
force-pushed
the
junit-record-invocation-properties
branch
from
November 20, 2026 17:16
7bc54d7 to
ac0b445
Compare
kostyanf14
approved these changes
Nov 20, 2026
Contributor
|
ok to test |
kostyanf14
approved these changes
Nov 24, 2026
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.
The junit report records what ran (test cases, counts, status) but not what the invocation was asked to run, so per-case invocations that share a suite directory cannot be told apart by report consumers without inferring it from the executed test names.
Record the invocation context as properties:
Nil values are omitted, so the properties only appear when they apply.
Validated by rendering the report through the real JUnit class for the three shapes (per-case under tmt, manual suite, suite under tmt) and asserting the resulting properties.
Summary by CodeRabbit