Skip to content

Collect test executionProperties once#29244

Closed
katre wants to merge 2 commits intobazelbuild:masterfrom
katre:test-exec-props-once
Closed

Collect test executionProperties once#29244
katre wants to merge 2 commits intobazelbuild:masterfrom
katre:test-exec-props-once

Conversation

@katre
Copy link
Copy Markdown
Collaborator

@katre katre commented Apr 7, 2026

Store them in the TestTargetProperties.

This prevents repeatedly merging the same maps when the same test is run multiple times (either due to flaky = True or --runs_per_test).

RELNOTES: None.

TestTargetProperties.

This prevents repeatedly merging the same maps when the same test is run
multiple times (either due to `flaky = True` or `--runs_per_test`).

RELNOTES: None.
@katre katre changed the title [WIP] Collect test executionProperties once Collect test executionProperties once Apr 7, 2026
@katre katre marked this pull request as ready for review April 7, 2026 20:40
@katre katre requested a review from a team as a code owner April 7, 2026 20:40
@katre katre requested review from mai93 and removed request for a team April 7, 2026 20:40
@github-actions github-actions Bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Apr 7, 2026
Comment thread src/main/java/com/google/devtools/build/lib/analysis/test/TestActionBuilder.java Outdated

@Override
public ImmutableMap<String, String> getExecutionInfo() {
return mergeMaps(super.getExecutionInfo(), testProperties.getExecutionInfo());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

actionOwner.getExecProperties() resolves to the same?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that's the ultimate source of the data. It's tricky to trace, unfortunately (hence a lot of debugging). Hopefully this is a bit simpler to watch.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Any further comments?

@gregestren gregestren added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Apr 13, 2026
@github-actions github-actions Bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants