Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 4 commits into from

Conversation

coeuvre
Copy link
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.

Copy link
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
Contributor

aiuto commented Feb 22, 2021

Is this ready to go, or a WIP?

@coeuvre
Copy link
Member Author

coeuvre commented Feb 23, 2021

Still WIP

…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
@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