Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/bazelbuild/bazel.git. Pull mirroring updated .
  1. Jul 02, 2021
    • Bazel Release System's avatar
      Release 5.0.0-pre.20210623.2 (2021-07-02) · 9c301006
      Bazel Release System authored
      Baseline: 8b453331
      
      Cherry picks:
      
         + 223113c9:
           Automated rollback of commit
           ae2a6a2d.
      
      Important changes:
      
        - Adds --experimental_reuse_sandbox_directories flag to reuse
          already-created non-worker sandboxes with cleanup.
        - --experimental_force_gc_after_build is deprecated and will be
          removed soon. Use --bep_publish_used_heap_size_post_build instead
        - Forward coverage-instrumented files from non-tool dependencies by
          default.
      
      This release contains contributions from many people at Google, as well as David Ostrovsky, Johannes Abt, Masoud Koleini, Pras Velagapudi.
    • janakr's avatar
      Automated rollback of commit ae2a6a2d. · 359f59d2
      janakr authored
      *** Reason for rollback ***
      
      Semantics of flags are different, need to unify or keep both flags.
      
      PiperOrigin-RevId: 381873366
      359f59d2
  2. Jun 23, 2021
  3. Jun 22, 2021
  4. Jun 21, 2021
  5. Jun 20, 2021
  6. Jun 19, 2021
    • janakr's avatar
      Centralize action cache behavior on IOExceptions inside... · a612634f
      janakr authored
      Centralize action cache behavior on IOExceptions inside CompactPersistentActionCache. Don't log I/O errors here to remote logging: they are expected from time to time, and these I/O errors are preserved in the failure detail, so we can detect increases in them if there is an issue.
      
      PiperOrigin-RevId: 380257953
      a612634f
    • janakr's avatar
      Make --bep_publish_used_heap_size_post_build work for query and other... · 1c3bc902
      janakr authored
      Make --bep_publish_used_heap_size_post_build work for query and other non-build commands. Since we want BEP to support query anyway, enabling this flag on query allows it to be a drop-in replacement for --experimental_force_gc_after_build.
      
      PiperOrigin-RevId: 380256260
      1c3bc902
    • jhorvitz's avatar
      Migrate `PerBuildSyscallCache` to caffeine. · 23fb04d0
      jhorvitz authored
      The concurrency level setting is replaced with an initial capacity setting. This mimics what `ConcurrentHashMap` does.
      
      PiperOrigin-RevId: 380251312
      23fb04d0
    • jhorvitz's avatar
      Fix flakiness in `DigestUtilsTest`. · ab2d2fb6
      jhorvitz authored
      The flakiness was introduced by https://github.com/bazelbuild/bazel/commit/90c395c62742bb038a686d34da57323db665f113. Caffeine has an [undefined eviction policy](https://www.javadoc.io/doc/com.github.ben-manes.caffeine/caffeine/2.8.5/com/github/benmanes/caffeine/cache/Caffeine.html#maximumSize-long-):
      
      > Note that the cache **may evict an entry before this limit is exceeded or temporarily exceed the threshold while evicting**.
      
      Remove assertions on the cache stats and instead just test that subsequent calls are cached.
      
      PiperOrigin-RevId: 380250597
      ab2d2fb6
    • jhorvitz's avatar
      Include the Starlark stack trace as part of the crash's stack trace for all... · 86b32a64
      jhorvitz authored
      Include the Starlark stack trace as part of the crash's stack trace for all unhandled throwables originating in Starlark evaluation.
      
      In keeping with tradition of not wrapping `Error` in `AbstractParallelEvaluator`, different exception types are used for `RuntimeException` and `Error`.
      
      Additionally embed a context supplier in `StarlarkThread`. This is specifically targeted for the case of a crash during rule analysis, where the call stack itself doesn't include enough information to identify the rule (since the `BUILD` file is evaluated during loading).
      
      PiperOrigin-RevId: 380246681
      86b32a64
    • janakr's avatar
      Use better atomic constructs in test. · a7ac95b0
      janakr authored
      PiperOrigin-RevId: 380229840
      a7ac95b0
    • Googler's avatar
      Flip default for experimental_forward_instrumented_files_info_by_default · 5b216b27
      Googler authored
      This changes the default behavior for coverage from "forward nothing" to "forward InstrumentedFilesInfo from non-tool dependencies". This is still not quite ideal behavior, since typically attributes which provide source files (like srcs) are non-tool dependencies. But it's an improvement because it avoids the need for explicit coverage configuration for the entire chain of dependencies from test to source file.
      
      In cases where an aspect returned InstrumentedFilesInfo previously, the InstrumentedFilesInfo provider for the base rule is ignored, so the behavior will be unchanged.
      
      The bit about coverage_common.instrumented_files_info is merged into the related section under "Advanced Topics" in the rules documentation, since it's no longer required for the whole dependency chain to configure coverage explicitly in order for that to work at all.
      
      RELNOTES: Forward coverage-instrumented files from non-tool dependencies by default.
      PiperOrigin-RevId: 380224680
      5b216b27
  7. Jun 18, 2021