Skip to content

Commit

Permalink
Merge branch 'bazelbuild:master' into ianpresentation
Browse files Browse the repository at this point in the history
  • Loading branch information
iancha1992 authored Sep 11, 2024
2 parents fdc058d + e8e1bd3 commit d6af2b3
Show file tree
Hide file tree
Showing 853 changed files with 27,048 additions and 39,209 deletions.
10 changes: 10 additions & 0 deletions .bazelci/build_bazel_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ platforms:
build_flags:
- "-c"
- "opt"
ubuntu2004_arm64:
shell_commands:
# Our Arm64 machine keeps state between builds, so we need to clean it.
- "bazel clean --expunge"
build_targets:
- "//src:bazel"
- "//src:bazel_nojdk"
build_flags:
- "-c"
- "opt"
ubuntu2204:
build_targets:
- "//src:bazel"
Expand Down
7 changes: 2 additions & 5 deletions .bazelci/postsubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ tasks:
- "-//src/test/shell/bazel:bazel_coverage_cc_released_test_gcc"
- "-//src/test/shell/bazel:bazel_coverage_cc_head_test_gcc"
- "-//src/test/shell/bazel:bazel_coverage_sh_test"
# Centos7 uses python 2 by default, so these fail: https://github.com/bazelbuild/bazel/issues/18776
- "-//src/test/shell/bazel/android:android_instrumentation_test_integration_test"
- "-//src/test/shell/bazel/android:android_instrumentation_test_integration_test_with_head_android_tools"
- "-//src/test/shell/bazel/android:aapt_integration_test"
- "-//src/test/shell/bazel/android:aapt_integration_test_with_head_android_tools"
include_json_profile:
- build
- test
Expand Down Expand Up @@ -318,6 +313,7 @@ tasks:
- "--experimental_remote_cache_async"
- "--experimental_remote_merkle_tree_cache"
- "--remote_download_minimal"
- "--experimental_output_paths=strip"
build_targets:
- "//src:bazel"
- "//src:bazel_jdk_minimal"
Expand All @@ -329,6 +325,7 @@ tasks:
- "--experimental_remote_cache_async"
- "--experimental_remote_merkle_tree_cache"
- "--remote_download_minimal"
- "--experimental_output_paths=strip"
test_targets:
- "//scripts/..."
- "//src/java_tools/..."
Expand Down
9 changes: 3 additions & 6 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ tasks:
- "-//src/test/shell/bazel:bazel_coverage_cc_released_test_gcc"
- "-//src/test/shell/bazel:bazel_coverage_cc_head_test_gcc"
- "-//src/test/shell/bazel:bazel_coverage_sh_test"
# Centos7 uses python 2 by default, so these fail: https://github.com/bazelbuild/bazel/issues/18776
- "-//src/test/shell/bazel/android:android_instrumentation_test_integration_test"
- "-//src/test/shell/bazel/android:android_instrumentation_test_integration_test_with_head_android_tools"
- "-//src/test/shell/bazel/android:aapt_integration_test"
- "-//src/test/shell/bazel/android:aapt_integration_test_with_head_android_tools"
include_json_profile:
- build
- test
Expand Down Expand Up @@ -210,7 +205,7 @@ tasks:
- build
- test
macos_arm64:
shards: 5
shards: 10
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE.bzlmod
Expand Down Expand Up @@ -335,6 +330,7 @@ tasks:
- "--experimental_remote_cache_async"
- "--experimental_remote_merkle_tree_cache"
- "--remote_download_minimal"
- "--experimental_output_paths=strip"
build_targets:
- "//src:bazel"
- "//src:bazel_jdk_minimal"
Expand All @@ -346,6 +342,7 @@ tasks:
- "--experimental_remote_cache_async"
- "--experimental_remote_merkle_tree_cache"
- "--remote_download_minimal"
- "--experimental_output_paths=strip"
test_targets:
- "//scripts/..."
- "//src/java_tools/..."
Expand Down
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
common --enable_platform_specific_config
common --incompatible_use_plus_in_repo_names

# Shared configuration flags to build and test Bazel on RBE.
build:remote_shared --remote_instance_name=projects/bazel-untrusted/instances/default_instance
Expand Down Expand Up @@ -34,6 +35,9 @@ common --check_direct_dependencies=error
# Add mirrors for certain download URLs
common --experimental_downloader_config=bazel_downloader.cfg

# Enable WORKSPACE functionality for android dependencies in WORKSPACE.bzlmod
common --enable_workspace

# Enable modern C++ features
build:linux --cxxopt=-std=c++17
build:linux --host_cxxopt=-std=c++17
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.1
7.3.1
12 changes: 6 additions & 6 deletions .github/workflows/cherry-picker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde
with:
egress-policy: audit
- if: github.event.pull_request
name: Run cherrypicker on closed PR
uses: bazelbuild/continuous-integration/actions/cherry_picker@ee5ea988681e086afabfe6677eef2dc1292f6b9d
uses: bazelbuild/continuous-integration/actions/cherry_picker@47d1cea8c6888d505a288065e067a03032d7aaac
with:
triggered-on: closed
pr-number: ${{ github.event.number }}
is-prod: False
- if: github.event.issue
name: Run cherrypicker on closed issue
uses: bazelbuild/continuous-integration/actions/cherry_picker@ee5ea988681e086afabfe6677eef2dc1292f6b9d
uses: bazelbuild/continuous-integration/actions/cherry_picker@47d1cea8c6888d505a288065e067a03032d7aaac
with:
triggered-on: closed
pr-number: ${{ github.event.issue.number }}
Expand All @@ -40,12 +40,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde
with:
egress-policy: audit
- if: startsWith(github.event.issue.body, 'Forked from')
name: Run cherrypicker on comment
uses: bazelbuild/continuous-integration/actions/cherry_picker@ee5ea988681e086afabfe6677eef2dc1292f6b9d
uses: bazelbuild/continuous-integration/actions/cherry_picker@47d1cea8c6888d505a288065e067a03032d7aaac
with:
triggered-on: commented
pr-number: ${{ github.event.issue.body }}
Expand All @@ -54,7 +54,7 @@ jobs:
is-prod: False
- if: startsWith(github.event.issue.body, '### Commit IDs')
name: Run cherrypicker on demand
uses: bazelbuild/continuous-integration/actions/cherry_picker@ee5ea988681e086afabfe6677eef2dc1292f6b9d
uses: bazelbuild/continuous-integration/actions/cherry_picker@47d1cea8c6888d505a288065e067a03032d7aaac
with:
triggered-on: ondemand
milestone-title: ${{ github.event.milestone.title }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
issues: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

- name: Run helper
uses: bazelbuild/continuous-integration/actions/release-helper@ee5ea988681e086afabfe6677eef2dc1292f6b9d # master
uses: bazelbuild/continuous-integration/actions/release-helper@47d1cea8c6888d505a288065e067a03032d7aaac # master
with:
token: ${{ secrets.BAZEL_IO_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/remove-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

Expand All @@ -42,7 +42,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -64,14 +64,14 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
uses: github/codeql-action/upload-sarif@29d86d22a34ea372b1bbf3b2dced2e25ca6b3384 # v3.26.1
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde
with:
egress-policy: audit
- name: Update lockfile(s) on closed PR
uses: bazelbuild/continuous-integration/actions/update-lockfile@122ce87694d0dd505a019321a04f8e64378bddbd
uses: bazelbuild/continuous-integration/actions/update-lockfile@47d1cea8c6888d505a288065e067a03032d7aaac
with:
release-branch: ${{ github.base_ref }}
is-prod: True
Expand Down
6 changes: 2 additions & 4 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,8 @@ pkg_tar(
srcs = ["@maven//:srcs"] + ["MAVEN_CANONICAL_REPO_NAME"],
package_dir = "derived/maven",
remap_paths = {
# We need the repo names according to "builder bazel" (instead of "bazel being built") here.
# Remove the `replace` parts after building with 7.3.0.
"external/" + get_canonical_repo_name("@maven").replace("+", "~") + "/": "",
"../" + get_canonical_repo_name("@maven").replace("+", "~") + "/": "",
"external/" + get_canonical_repo_name("@maven") + "/": "",
"../" + get_canonical_repo_name("@maven") + "/": "",
},
strip_prefix = ".",
visibility = ["//:__subpackages__"],
Expand Down
107 changes: 107 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,110 @@
## Release 8.0.0-pre.20240826.1 (2024-09-06)

```
Baseline: 39481ad142469d3ed16d283694c76091b271d523
```

Important changes:

- Repository rules instantiated in the same module extensions can
now refer to each other by their extension-specified names in
label attributes.

This release contains contributions from many people at Google, as well as Alessandro Patti, Cornelius Riemenschneider, dependabot[bot], Fabian Meumertzheim, George Gensure, Jay Conrod, Keith Smiley, Michael Siegrist, Xdng Yng, xinyu.wang.

## Release 8.0.0-pre.20240821.2 (2024-08-27)

```
Baseline: 04f0ef76938057f143562e9faeb2f47defa30939

Cherry picks:

+ 0000000000000000000000000000000000000000:

```

This release contains contributions from many people at Google, as well as Fabian Meumertzheim.

## Release 8.0.0-pre.20240819.2 (2024-08-22)

```
Baseline: ffdf41acfd4d82bdfd3f855b8f4aa3840d918eba

Cherry picks:

+ 0000000000000000000000000000000000000000:

```

This release contains contributions from many people at Google, as well as dependabot[bot], Fabian Meumertzheim, Jordan Mele, Jordan Mele.

## Release 8.0.0-pre.20240814.2 (2024-08-20)

```
Baseline: 9d86712432fa7c6276ad5620a3185557631f36f1

Cherry picks:

+ 0000000000000000000000000000000000000000:

```

Important changes:

- Deleted native Android mobile-install

This release contains contributions from many people at Google, as well as Fabian Meumertzheim, Javier Maestro.

## Release 7.3.1 (2024-08-19)

```

Release Notes:

```

## Release 8.0.0-pre.20240812.1 (2024-08-15)

```
Baseline: 133eb60925496e3153bcc7903968b4eeb6d16068
```

New features:

- aspects can now return DefaultInfo, which will then be merged
with that of the configured target they are applied to.
Currently, only the files= field is supported.

Important changes:

- BEP will include correct \`TestResult\` and \`TargetSummary\`
events when special test inputs like \`$test_runtime\` fail to
build.
- Improve progress message in case there are no actions in flight,
and display explicitly "no actions running" in that case.
- The new `cc_static_library` rule produces a static library that
bundles given targets and all their transitive dependencies. It
has to be enabled via `--experimental_cc_static_library`.

This release contains contributions from many people at Google, as well as Fabian Meumertzheim, FaBrand, Jiawen (Kevin) Chen, Son Luong Ngoc, Victor Hiairrassary.

## Release 8.0.0-pre.20240807.1 (2024-08-13)

```
Baseline: 300c5867b7d2da1ba32abc20e95662096c2a7a08
```

Important changes:

- Bazel no longer has the android_ndk_repository rule. Use
https://github.com/bazelbuild/rules_android_ndk instead. See
https://github.com/bazelbuild/bazel/issues/23199
- Bazel no longer has the android_local_test rule. Use
https://github.com/bazelbuild/rules_android instead. See
https://github.com/bazelbuild/bazel/issues/23199

This release contains contributions from many people at Google, as well as Fabian Meumertzheim, JKutscha, Xdng Yng.

## Release 7.3.0 (2024-08-12)

```
Expand Down
Loading

0 comments on commit d6af2b3

Please sign in to comment.