Skip to content

Change test.xml from BasicActionInput to Artifact so it's metadata can be injected#12590

Closed
coeuvre wants to merge 4 commits intobazelbuild:masterfrom
coeuvre:fix-test-with-minimal
Closed

Change test.xml from BasicActionInput to Artifact so it's metadata can be injected#12590
coeuvre wants to merge 4 commits intobazelbuild:masterfrom
coeuvre:fix-test-with-minimal

Conversation

@coeuvre
Copy link
Copy Markdown
Member

@coeuvre coeuvre commented Dec 1, 2020

This is achieved by adding test.xml to TestRunnerAction's outputs which means test.xml becomes a mandatory output of TestRunnerAction just like test.log.

test.xml should always be generated by either test actions or the separated spawn action enabled by --experimental_split_xml_generation.

Fixes #12554.

@google-cla google-cla Bot added the cla: yes label Dec 1, 2020
@coeuvre coeuvre force-pushed the fix-test-with-minimal branch from 5f198fc to 737b489 Compare December 1, 2020 07:26
@oquenchil oquenchil self-requested a review December 2, 2020 09:13
Copy link
Copy Markdown
Contributor

@oquenchil oquenchil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jin jin assigned oquenchil and coeuvre and unassigned oquenchil Dec 4, 2020
@jin jin added the team-Core Skyframe, bazel query, BEP, options parsing, bazelrc label Dec 4, 2020
@coeuvre coeuvre force-pushed the fix-test-with-minimal branch 2 times, most recently from 19b829b to 40d136a Compare December 29, 2020 10:18
@aiuto
Copy link
Copy Markdown

aiuto commented Feb 22, 2021

Is this ready to go, or a WIP?

@coeuvre
Copy link
Copy Markdown
Member Author

coeuvre commented Feb 23, 2021

Still WIP

coeuvre added 3 commits June 15, 2021 17:22
…n be injected

This is achieved by adding test.xml to TestRunnerAction's outputs which means test.xml becomes a mandatory output of TestRunnerAction just like test.log.

test.xml should always be generated by either test actions or the separated spawn action enabled by --experimental_split_xml_generation.

Fixes bazelbuild#12554.
@coeuvre coeuvre force-pushed the fix-test-with-minimal branch 2 times, most recently from 5b12603 to ae0bb52 Compare June 16, 2021 08:17
@coeuvre coeuvre force-pushed the fix-test-with-minimal branch from ae0bb52 to 5ac9192 Compare June 17, 2021 06:33
@bazel-io bazel-io closed this in 97fb2cf Jun 22, 2021
coeuvre added a commit to coeuvre/bazel that referenced this pull request Jul 15, 2021
…l is generated when build with --remote_download_minimal.

Change test.xml from BasicActionInput to Artifact before executing the spawn so its metadata can be injected.

Use a custom MetadataHandler to allow metadata injections of undeclared outputs.

Fixes bazelbuild#12554.

Closes bazelbuild#12590.

PiperOrigin-RevId: 380741230
coeuvre added a commit to coeuvre/bazel that referenced this pull request Jul 15, 2021
…l is generated when build with --remote_download_minimal.

Change test.xml from BasicActionInput to Artifact before executing the spawn so its metadata can be injected.

Use a custom MetadataHandler to allow metadata injections of undeclared outputs.

Fixes bazelbuild#12554.

Closes bazelbuild#12590.

PiperOrigin-RevId: 380741230
coeuvre added a commit to coeuvre/bazel that referenced this pull request Jul 15, 2021
…l is generated when build with --remote_download_minimal.

Change test.xml from BasicActionInput to Artifact before executing the spawn so its metadata can be injected.

Use a custom MetadataHandler to allow metadata injections of undeclared outputs.

Fixes bazelbuild#12554.

Closes bazelbuild#12590.

PiperOrigin-RevId: 380741230
coeuvre added a commit to coeuvre/bazel that referenced this pull request Jul 15, 2021
…l is generated when build with --remote_download_minimal.

Change test.xml from BasicActionInput to Artifact before executing the spawn so its metadata can be injected.

Use a custom MetadataHandler to allow metadata injections of undeclared outputs.

Fixes bazelbuild#12554.

Closes bazelbuild#12590.

PiperOrigin-RevId: 380741230
coeuvre added a commit to coeuvre/bazel that referenced this pull request Jul 16, 2021
…l is generated when build with --remote_download_minimal.

Change test.xml from BasicActionInput to Artifact before executing the spawn so its metadata can be injected.

Use a custom MetadataHandler to allow metadata injections of undeclared outputs.

Fixes bazelbuild#12554.

Closes bazelbuild#12590.

PiperOrigin-RevId: 380741230
larsrc-google pushed a commit to larsrc-google/bazel that referenced this pull request Jul 28, 2021
…l is generated when build with --remote_download_minimal.

Change test.xml from BasicActionInput to Artifact before executing the spawn so its metadata can be injected.

Use a custom MetadataHandler to allow metadata injections of undeclared outputs.

Fixes bazelbuild#12554.

Closes bazelbuild#12590.

PiperOrigin-RevId: 380741230
larsrc-google pushed a commit to larsrc-google/bazel that referenced this pull request Jul 30, 2021
…l is generated when build with --remote_download_minimal.

Change test.xml from BasicActionInput to Artifact before executing the spawn so its metadata can be injected.

Use a custom MetadataHandler to allow metadata injections of undeclared outputs.

Fixes bazelbuild#12554.

Closes bazelbuild#12590.

PiperOrigin-RevId: 380741230
copybara-service Bot pushed a commit that referenced this pull request Aug 22, 2022
So that spawn outputs can be accessed among Spwans within the same action using the `FileSystem` API.

This allow us to revert the hack we introduced in #12590. Also fixes the issue described by #15711.

Closes #15711.

Closes #16123.

PiperOrigin-RevId: 469133936
Change-Id: Ide5bcfa0fe2c6a3806d333cd61270e411aa78f80
aiuto pushed a commit to aiuto/bazel that referenced this pull request Oct 12, 2022
So that spawn outputs can be accessed among Spwans within the same action using the `FileSystem` API.

This allow us to revert the hack we introduced in bazelbuild#12590. Also fixes the issue described by bazelbuild#15711.

Closes bazelbuild#15711.

Closes bazelbuild#16123.

PiperOrigin-RevId: 469133936
Change-Id: Ide5bcfa0fe2c6a3806d333cd61270e411aa78f80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes team-Core Skyframe, bazel query, BEP, options parsing, bazelrc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regenerate test.xml with generate-xml.sh when testing remotely with --remote_download_minimal

4 participants