Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/bazelbuild/bazel.git. Pull mirroring updated .
  1. Oct 18, 2024
  2. Oct 17, 2024
  3. Oct 16, 2024
    • lberki's avatar
      Add a string-to-label-dict attribute type. (#23998) · b7a22e7a
      lberki authored
      This really just exposes the existing LABEL_DICT_UNARY type that already
      exists in Java.
      
      Other than writing some boring conversion logic, all pieces fell
      together pretty pleasantly.
      
      Work towards #7989. That one calls for a string-to-label-list-dict type,
      but I'm planning to resolve that as WAI, since string-to-label-dict is
      close enough.
      
      RELNOTES: None.
      PiperOrigin-RevId: 686415025
      Change-Id: Ib07ada7ab2ede95220ed1cc2d3569996fc4afb88
      b7a22e7a
  4. Oct 15, 2024
  5. Oct 11, 2024
  6. Oct 10, 2024
  7. Oct 09, 2024
  8. Oct 08, 2024
    • Fabian Meumertzheim's avatar
      [7.4.0] Fix NPE in execlog when runfiles middleman are not top-level (#23888) · a6ad182c
      Fabian Meumertzheim authored
      The cherry-pick of the compact execlog runfiles changes assumed that
      runfiles only appear in the top-level tool nested set, but this isn't
      true for genrules. Instead, as in Bazel 8, it can be assumed that all
      middleman are also contained in inputs, which makes it possible to
      remove the extra middleman parameter and pass all runfiles tree
      information down to transitive log calls.
      
      Fixes #23884
      a6ad182c
  9. Oct 05, 2024
  10. Oct 04, 2024
  11. Oct 03, 2024
  12. Oct 02, 2024
  13. Oct 01, 2024
    • bazel.build machine account's avatar
      [7.4.0] Allow decompression of nupkg (#23818) · 61f49cc2
      bazel.build machine account authored
      In some (legacy) projects, nuget is used to handle C++ packages.
      Nuget packages are working fine with WORKSPACE `http_archive` directives
      when explicitly specifying `type = "zip"`.
      
      However, when migrating to bzlmod, we ran into issues when the url in
      source.json is a nupkg file.
      This PR resolves that issue and allows consumption of nupkg archives as
      Bazel modules.
      
      Closes #23645.
      
      PiperOrigin-RevId: 680636414
      Change-Id: Ia7fd3fc738a2dd68b1063dba0dc847c5b0668401
      
      Commit
      https://github.com/bazelbuild/bazel/commit/b38703665f1324b04ce12d4a84443077510f8ee4
      
      
      
      Co-authored-by: default avatarDennis van den Berg <dennispvandenberg@gmail.com>
      61f49cc2
    • Tiago Quelhas's avatar
      [7.4.0] Automated rollback of commit 8ef7b705. (#23794) · 350a195f
      Tiago Quelhas authored
      *** Reason for rollback ***
      
      The experiment with using sqlite didn't pan out. We might find other
      uses for it in the future, but we can always resurrect it from version
      control; no need to saddle Bazel with the additional dependency until
      then.
      
      *** Original change description ***
      
      Implement a JNI wrapper around SQLite.
      
      This will be used by the implementation of garbage collection for the
      disk cache, as discussed in
      https://github.com/bazelbuild/bazel/issues/5139 and the linked design
      doc. I judge this to be preferred over
      https://github.com/xerial/sqlite-jdbc for the following reasons:
      
      1. It's a much smaller dependency.
      2. The JDBC API is too generic and becomes awkward to use when dealing
      with the peculiarities of SQLite.
      3. We can (more easily) compile it from source for all host platforms,
      including the BSDs.
      
      ***
      
      PiperOrigin-RevId: 679600756
      Change-Id: Ic3748fa30404a31504426c523c9b9a60ec451863
      350a195f
    • Fabian Meumertzheim's avatar
      [7.4.0] Compact execution log improvements (#23713) · 53b04fe7
      Fabian Meumertzheim authored
      Cherry-picks the following changes:
      
      * Optimize representation of runfiles in compact execution log (#23321)
      * Keep runfiles tree IDs in memory for multiple test attempts (#23703)
      * Fix naming inconsistency in `spawn.proto` (#23706)
      * Mark tool runfiles as such in expanded execution log (#23702)
      
      The cherry-picks required introducing a `Map<Artifact, RunfilesTree>`
      shim to `RunfilesSupplier` that matches the Bazel 8 way of obtaining a
      `RunfilesTree` from a runfiles middleman via `InputMetadataProvider`.
      
      Closes #23683 
      Closes #23710
      Closes #23711
      Closes #23734
      53b04fe7
    • Tiago Quelhas's avatar
      [7.4.0] Log exceptions from tasks in IdleTaskManager. (#23804) · 7cff8b4d
      Tiago Quelhas authored
      Otherwise they are lost, making debugging very difficult.
      
      PiperOrigin-RevId: 679540076
      Change-Id: I4000ad55745578b0cd8d5c2cc9766e5c7f18059d
      7cff8b4d
  14. Sep 30, 2024
    • Tiago Quelhas's avatar
      [7.4.0] Add the ability to register idle tasks. (#23795) · 3520fed0
      Tiago Quelhas authored
      Modules may now register idle tasks via
      CommandEnvironment.addIdleTask(). When the server becomes idle,
      IdleTaskManager (previously called IdleServerTasks) runs registered
      tasks in series, followed by a final task which triggers a GC and
      shrinks interner pools. Pending tasks will be interrupted if the server
      becomes busy again, but IdleTaskManager waits for them to terminate
      orderly before letting a new command run.
      
      Cherry-pick note: in the 7.x tree, the default idle task only runs a GC;
      it doesn't shrink interner pools like in 8.x. Therefore, I've omitted
      the latter from this cherry-pick.
      
      PiperOrigin-RevId: 678167274
      Change-Id: Iae17d4dd304b24b401a6c45986d4c0d861902113
      3520fed0
  15. Sep 28, 2024
  16. Sep 27, 2024
  17. Sep 26, 2024