Skip to content

Commit

Permalink
Merge branch 'bazelbuild:master' into print_passed_methods
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonLi0701 authored Aug 2, 2023
2 parents 3dc1e81 + ebd606e commit 69f8772
Show file tree
Hide file tree
Showing 117 changed files with 1,931 additions and 1,420 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ build --incompatible_disallow_empty_glob
# Manually enable cc toolchain resolution before it is flipped. https://github.com/bazelbuild/bazel/issues/7260
build --incompatible_enable_cc_toolchain_resolution

# Fix non-deterministic Java compilation failures (https://github.com/bazelbuild/bazel/issues/3236)
build --incompatible_sandbox_hermetic_tmp

# User-specific .bazelrc
try-import %workspace%/user.bazelrc

Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.3.0
6.3.1
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,33 @@ body:
attributes:
label: >
Description of the bug:
- type: dropdown
id: subteam
attributes:
label: >
Which category does this issue belong to?
description: >
Answering this will help us triage this issue faster and more accurately to the
relevant team(s).
multiple: true
options:
- Android
- C++ Rules
- CLI
- Configurability
- Core
- Documentation
- External Dependency
- Java Rules
- Loading API
- Local Execution
- Performance
- Python Rules
- Remote Execution
- Rules API
- Server-Side Rules
- Starlark Integration
- Starlark Interpreter
- type: textarea
id: repro
attributes:
Expand Down
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,33 @@ body:
attributes:
label: >
Description of the feature request:
- type: dropdown
id: subteam
attributes:
label: >
Which category does this issue belong to?
description: >
Answering this will help us triage this issue faster and more accurately to the
relevant team(s).
multiple: true
options:
- Android
- C++ Rules
- CLI
- Configurability
- Core
- Documentation
- External Dependency
- Java Rules
- Loading API
- Local Execution
- Performance
- Python Rules
- Remote Execution
- Rules API
- Server-Side Rules
- Starlark Integration
- Starlark Interpreter
- type: textarea
id: problem
attributes:
Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
## Release 6.3.1 (2023-07-31)

```
Baseline: 0f231ac8acabcd8aa309da041c98ab90a1552418

Release Notes:

+ Mark isolated extension usages as experimental (#19050)
+ Fix a bug where frozen targets list was mutated while expanding env attribute (#19052)
+ Add documentation for --experimental_isolated_extension_usage (#19071)
+ Advertise CcInfo from cc_import (#19086)
+ Create .bazelversion to address postsubmit issues (#19089)
+ Update java_tools version to 12.6 (#19091)
+ Disable lockfiles by default (#19106)

Acknowledgements:

This release contains contributions from many people at Google, as well as Brentley Jones, Fabian Meumertzheim, oquenchil, Xùdōng Yáng.
```

## Release 7.0.0-pre.20230710.5 (2023-07-28)

```
Baseline: 7845acae9769a72dc507dc2f57c4e032ebf429d3

Cherry picks:

+ d9e2f9181f8fa283e3986ee3b261e610c41cf61b:
Avoid overcounting in ActionLookupValueProgressReceiver.
+ da23370dcdf6ea19545002fb86bd5d3e6519cdf6:
Fix crash for top level aspects on targets with non-idempotent
rule transitions.
+ 4714cd70c83de43ba7ab10c29e63af716216770a:
Reuse the built set of tools in `SpawnAction.Builder`.
+ 0a1d50533078283fab93024681c917303a91c46c:
Correctly handle symlinks when prefetching.
```

Initial release.

## Release 6.3.0 (2023-07-24)

```
Expand Down
89 changes: 68 additions & 21 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# To build Bazel with Bzlmod: `bazel build --enable_bzlmod //src:bazel_nojdk`.

module(
name = "bazel",
version = "7.0.0-pre",
Expand All @@ -20,15 +18,33 @@ bazel_dep(name = "rules_cc", version = "0.0.8")
bazel_dep(name = "rules_java", version = "6.3.0")
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
bazel_dep(name = "rules_jvm_external", version = "5.2")
bazel_dep(name = "rules_python", version = "0.19.0")
bazel_dep(name = "rules_python", version = "0.24.0")
bazel_dep(name = "rules_testing", version = "0.0.4")

# TODO(pcloudy): Add remoteapis and googleapis as Bazel modules in the BCR.
bazel_dep(name = "remoteapis", version = "")
bazel_dep(name = "googleapis", version = "")

single_version_override(
module_name = "rules_jvm_external",
patch_strip = 1,
patches = ["//third_party:rules_jvm_external_5.2.patch"],
)

local_path_override(
module_name = "remoteapis",
path = "./third_party/remoteapis",
)

local_path_override(
module_name = "googleapis",
path = "./third_party/googleapis",
)

# =========================================
# Bazel Java dependencies
# =========================================

maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
# We don't yet specify the maven coordinates in the MODULE.bazel to avoid duplicating information.
Expand All @@ -41,35 +57,66 @@ maven.install(
)
use_repo(maven, "maven")

# TODO(pcloudy): Add remoteapis and googleapis as Bazel modules in the BCR.
bazel_dep(name = "remoteapis", version = "")
bazel_dep(name = "googleapis", version = "")

local_path_override(
module_name = "remoteapis",
path = "./third_party/remoteapis",
)

local_path_override(
module_name = "googleapis",
path = "./third_party/googleapis",
)
# =========================================
# Other Bazel internal dependencies
# - embedded JDKs
# - repos for Debian build
# =========================================

bazel_internal_deps = use_extension("//:extensions.bzl", "bazel_internal_deps")
use_repo(
bazel_internal_deps,
"openjdk_linux_vanilla",
"debian_cc_deps",
"openjdk_linux_aarch64_vanilla",
"openjdk_linux_ppc64le_vanilla",
"openjdk_linux_s390x_vanilla",
"openjdk_macos_x86_64_vanilla",
"openjdk_linux_vanilla",
"openjdk_macos_aarch64_vanilla",
"openjdk_win_vanilla",
"openjdk_macos_x86_64_vanilla",
"openjdk_win_arm64_vanilla",
"openjdk_win_vanilla",
)

# =========================================
# Register platforms & toolchains
# =========================================

register_execution_platforms("//:default_host_platform")

register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain")

# Dev dependencies
register_toolchains("//src/main/res:empty_rc_toolchain")

# =========================================
# Android tools dependencies
# =========================================

maven_android = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven_android.install(
name = "maven_android",
# We don't yet specify the maven coordinates in the MODULE.bazel to avoid duplicating information.
# Always respect the maven_install.json file generated by rules_jvm_external from the WORKSPACE file.
# TODO(pcloudy): We should add maven coordinates here when we enable Bzlmod in the default build for Bazel.
lock_file = "//src/tools/android:maven_android_install.json",
repositories = [
"https://dl.google.com/android/maven2",
"https://repo1.maven.org/maven2",
],
)
use_repo(maven_android, "maven_android")

bazel_android_deps = use_extension("//:extensions.bzl", "bazel_android_deps")
use_repo(
bazel_android_deps,
"android_gmaven_r8",
"desugar_jdk_libs",
)

# =========================================
# Bazel dev dependencies
# =========================================

bazel_dep(name = "googletest", version = "1.12.1", repo_name = "com_google_googletest")

bazel_dep(name = "googletest", version = "1.12.1", repo_name = "com_google_googletest", dev_dependency = True)
bazel_dev_deps = use_extension("//:extensions.bzl", "bazel_dev_deps")
use_repo(bazel_dev_deps, "local_bazel_source_list")
52 changes: 52 additions & 0 deletions WORKSPACE.bzlmod
Original file line number Diff line number Diff line change
@@ -1,2 +1,54 @@
# This file will replace the content of the WORKSPACE file when Bzlmod is enabled
# No WORKSPACE prefix or suffix are added.

bind(
name = "android/sdk",
actual = "@bazel_tools//tools/android:poison_pill_android_sdk",
)

bind(
name = "android/dx_jar_import",
actual = "@bazel_tools//tools/android:no_android_sdk_repository_error",
)

bind(
name = "android/d8_jar_import",
actual = "@bazel_tools//tools/android:no_android_sdk_repository_error",
)

bind(
name = "android/crosstool",
actual = "@bazel_tools//tools/cpp:toolchain",
)

bind(
name = "android_sdk_for_testing",
actual = "@bazel_tools//tools/android:empty",
)

bind(
name = "android_ndk_for_testing",
actual = "@bazel_tools//tools/android:empty",
)

bind(
name = "databinding_annotation_processor",
actual = "@bazel_tools//tools/android:empty",
)

# This value is overridden by android_sdk_repository function to allow targets
# to select on whether or not android_sdk_repository has run.
bind(
name = "has_androidsdk",
actual = "@bazel_tools//tools/android:always_false",
)

# To run the Android integration tests in //src/test/shell/bazel/android:all or
# build the Android sample app in //examples/android/java/bazel:hello_world
#
# 1. Install an Android SDK and NDK from https://developer.android.com
# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
# 3. Uncomment the two lines below
#
# android_sdk_repository(name = "androidsdk")
# android_ndk_repository(name = "androidndk")
21 changes: 21 additions & 0 deletions extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,29 @@
"""

load("//:repositories.bzl", "embedded_jdk_repositories")
load("//:distdir.bzl", "dist_http_archive", "dist_http_jar")
load("//tools/distributions/debian:deps.bzl", "debian_deps")
load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")

### Extra dependencies for building Bazel

def _bazel_internal_deps(_ctx):
embedded_jdk_repositories()
debian_deps()

bazel_internal_deps = module_extension(implementation = _bazel_internal_deps)

### Extra dependencies for testing Bazel

def _bazel_dev_deps(_ctx):
list_source_repository(name = "local_bazel_source_list")

bazel_dev_deps = module_extension(implementation = _bazel_dev_deps)

### Extra dependencies for Bazel Android tools

def _bazel_android_deps(_ctx):
dist_http_jar(name = "android_gmaven_r8")
dist_http_archive(name = "desugar_jdk_libs")

bazel_android_deps = module_extension(implementation = _bazel_android_deps)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 6 additions & 12 deletions site/en/community/partners/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ landing_page:
items_across: 2
items:
# Item 1
- image_path: /community/images/aspect-build-logo.png
- image_path: /community/images/AspectBuildlogohorizontal-black.png
heading: Aspect Build
description: >
Aspect Build is the ultimate build, test, and CI/CD platform designed exclusively for Bazel users. Harness the
power of Aspect Workflows, a seamless, turn-key Bazel CI/CD system, fully compatible with your existing CI
provider. Elevate your development experience with Aspect CLI, a convenient drop-in replacement for the native
Bazel CLI. Unleash the full potential of Bazel for front-end development with Aspect's JavaScript Bazel rules.
Enjoy accelerated build times and reduced compute costs with Aspect Workflows, thanks to fast warming,
auto-scaling CI workers, horizontally scaling remote cache, and auto-scaling remote build executors - delivering
a remarkable 10x performance boost to your Bazel projects. Say goodbye to waiting and hello to rapid iteration!
Introducing Aspect Build - the ultimate build, test, and CI/CD platform designed exclusively for Bazel users. Harness the power of Aspect Workflows, a seamless, turn-key Bazel CI/CD system, fully compatible with your existing CI provider. Elevate your development experience with Aspect CLI, a convenient drop-in replacement for the native Bazel CLI. Unleash the full potential of Bazel for front-end development with Aspect's JavaScript Bazel rules. Enjoy accelerated build times and reduced compute costs with Aspect Workflows, thanks to fast warming, auto-scaling CI workers, horizontally scaling remote cache, and auto-scaling remote build executors - delivering a remarkable 10x performance boost to your Bazel projects. Say goodbye to waiting and hello to rapid iteration!
buttons:
- label: Learn more
path: https://www.aspect.build/
Expand Down Expand Up @@ -73,11 +67,11 @@ landing_page:
path: https://www.engflow.com/product/demo
classname: button
# Item 5
- image_path: /community/images/Gradle.png
heading: Gradle
- image_path: /community/images/gradle-enterprise-gradient-secondary.png
heading: Gradle Inc.
description: >
Gradle Enterprise is a multi-build-system platform for improving developer productivity and happiness.It does this by providing a comprehensive and end-to-end solution for build & test observability,acceleration, and failure analytics, and currently supports the Bazel, Apache Maven, Gradle, and SBT build systems.Specifically, Gradle Enterprise for Bazel supports Build Cache to speed up build and test feedback cycles;Build Scan® that is like an X-ray for your build to make troubleshooting more efficient; and Failure Analytics to improve toolchain reliability.
Gradle Enterprise is a multi-build-system platform for improving developer productivity and happiness. It does this by providing a comprehensive and end-to-end solution for build & test observability, acceleration, and failure analytics, and currently supports the Bazel, Apache Maven, Gradle, and SBT build systems. Specifically, Gradle Enterprise for Bazel supports Build Cache to speed up build and test feedback cycles; Build Scan® that is like an X-ray for your build to make troubleshooting more efficient; and Failure Analytics to improve toolchain reliability.
buttons:
- label: Learn more
path: https://gradle.com/
path: https://gradle.com/gradle-enterprise-solutions/bazel-build-system/
classname: button
Loading

0 comments on commit 69f8772

Please sign in to comment.