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

Let Starlark tests inherit env variables #15217

Merged
merged 3 commits into from
May 12, 2022

Commits on May 12, 2022

  1. Let Starlark tests inherit env variables

    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 committed May 12, 2022
    Configuration menu
    Copy the full SHA
    86e6b90 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8cdc93a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    52d6ba4 View commit details
    Browse the repository at this point in the history