Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Apr 12, 2022

Adds an inherited_environment field to testing.TestEnvironment to allow
Starlark rules to implement the equivalent of the native rules'
env_inherit attribute.

Work towards #7364. To fully resolve that issue, it remains to handle
executable non-test rules.

RELNOTES: Starlark test rules can use the new inherited_environment
parameter of testing.TestEnvironment to specify environment variables
whose values should be inherited from the shell environment.

Closes #14849.

PiperOrigin-RevId: 439277689

Cherry-pick contains parts of:

Delete non-interning, non-singleton @AutoCodec.

PiperOrigin-RevId: 411683398

Cherry-pick makes the following additional changes:

  • Replace use of ImmutableMap.buildKeepingLast with .copyOf

Closes #15240.

@fmeum fmeum requested a review from ckolli5 as a code owner April 12, 2022 06:46
@fmeum
Copy link
Collaborator Author

fmeum commented Apr 12, 2022

It looks like this patch doesn't apply cleanly to the 5.x branch without also cherry-picking some of the AutoCodec refactorings. I do not know what the policy regarding this is.

@ckolli5
Copy link

ckolli5 commented Apr 19, 2022

Hello @fmeum, Can you please check the buildkite presubmit failures. Thanks!

@ckolli5 ckolli5 added the awaiting-user-response Awaiting a response from the author label Apr 19, 2022
@fmeum
Copy link
Collaborator Author

fmeum commented Apr 19, 2022

@comius Would it be safe to cherry-pick only some of the @AutoCodec changes for Bazel 5.2.0?

@fmeum fmeum force-pushed the release-5.2.0-7364 branch 4 times, most recently from 1b50943 to 69fcfa6 Compare April 20, 2022 09:25
@fmeum
Copy link
Collaborator Author

fmeum commented Apr 20, 2022

@ckolli5 Tests are passing with minor changes applied to the cherry-picked commit.

@ckolli5 ckolli5 added awaiting-review PR is awaiting review from an assigned reviewer team-Build-Language and removed awaiting-user-response Awaiting a response from the author awaiting-review PR is awaiting review from an assigned reviewer labels Apr 26, 2022
@ckolli5 ckolli5 requested a review from brandjon April 27, 2022 05:15
@brandjon brandjon requested review from comius and removed request for brandjon May 2, 2022 19:02
@ckolli5
Copy link

ckolli5 commented May 12, 2022

@fmeum The release branch has been updated. Could you please update your branch with latest changes to release-5.2.0 branch? Thanks!

Adds an inherited_environment field to testing.TestEnvironment to allow
Starlark rules to implement the equivalent of the native rules'
`env_inherit` attribute.

Work towards bazelbuild#7364. To fully resolve that issue, it remains to handle
executable non-test rules.

RELNOTES: Starlark test rules can use the new inherited_environment
parameter of testing.TestEnvironment to specify environment variables
whose values should be inherited from the shell environment.

Closes bazelbuild#14849.

PiperOrigin-RevId: 439277689

Cherry-pick contains parts of:

Delete non-interning, non-singleton @AutoCodec.

PiperOrigin-RevId: 411683398

Cherry-pick makes the following additional changes:

- Replace use of ImmutableMap.buildKeepingLast with .copyOf
@fmeum fmeum force-pushed the release-5.2.0-7364 branch from 69fcfa6 to 86e6b90 Compare May 12, 2022 05:53
@fmeum
Copy link
Collaborator Author

fmeum commented May 12, 2022

@ckolli5 Done, tests pass.

@ckolli5 ckolli5 merged commit 6e54699 into bazelbuild:release-5.2.0 May 12, 2022
@ShreeM01 ShreeM01 removed the awaiting-review PR is awaiting review from an assigned reviewer label Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants