-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Let Starlark tests inherit env variables #15217
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
Conversation
|
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. |
|
Hello @fmeum, Can you please check the buildkite presubmit failures. Thanks! |
|
@comius Would it be safe to cherry-pick only some of the @AutoCodec changes for Bazel 5.2.0? |
1b50943 to
69fcfa6
Compare
|
@ckolli5 Tests are passing with minor changes applied to the cherry-picked commit. |
|
@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
|
@ckolli5 Done, tests pass. |
Adds an inherited_environment field to testing.TestEnvironment to allow
Starlark rules to implement the equivalent of the native rules'
env_inheritattribute.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:
Closes #15240.