Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ build:remote-ci-common --spawn_strategy=remote,sandboxed,local
# sends a keepalive if we don't receive any messages (server updates every 60s).
build:remote-ci-common --grpc_keepalive_time=61s
#############################################################################
# remote-ci-local-java8: Use a local Java 8 (JDK)
# remote-ci-local-java11: Use a local Java 11 (JDK)
#############################################################################
build:remote-ci-local-java8 --java_runtime_version=local_jdk
build:remote-ci-local-java8 --java_language_version=8
build:remote-ci-local-java11 --java_runtime_version=local_jdk
build:remote-ci-local-java11 --java_language_version=11
#############################################################################
# remote-ci-linux: These options are linux-only using GCC by default
#############################################################################
Expand Down
1 change: 0 additions & 1 deletion .bazelversion

This file was deleted.

1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.0.0-pre.20220414.2
49 changes: 26 additions & 23 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
- run: echo "Found envoy.aar from previous run!"
if: steps.check-cache.outputs.cache-hit == 'true'
name: 'Build cache hit'
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
if: steps.check-cache.outputs.cache-hit != 'true'
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Install dependencies'
if: steps.check-cache.outputs.cache-hit != 'true'
run: ./ci/mac_ci_setup.sh --android
Expand All @@ -52,13 +52,11 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
- run: ./ci/mac_ci_setup.sh --android
name: 'Install dependencies'
distribution: 'zulu'
- uses: actions/cache@v2
id: check-cache
with:
Expand All @@ -67,19 +65,24 @@ jobs:
name: 'Download aar'
- run: exit 1
if: steps.check-cache.outputs.cache-hit != 'true'
- name: 'Start simulator'
run: ./ci/mac_start_emulator.sh
# Return to using:
# ./bazelw mobile-install --fat_apk_cpu=x86 --start_app //examples/java/hello_world:hello_envoy
# When https://github.com/envoyproxy/envoy-mobile/issues/853 is fixed.
- name: 'Install android-emulator-runner'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 30
ndk: 21.3.6528147
arch: x86_64
profile: Nexus 6
- name: 'Start java app'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Return to using:
# ./bazelw mobile-install --fat_apk_cpu=x86 --start_app //examples/java/hello_world:hello_envoy
# When https://github.com/envoyproxy/envoy-mobile/issues/853 is fixed.
run: |
./bazelw build \
--config=remote-ci-macos \
--remote_header="Authorization=Bearer $GITHUB_TOKEN" \
--fat_apk_cpu=x86 \
--fat_apk_cpu=x86_64 \
//examples/java/hello_world:hello_envoy
adb install -r --no-incremental bazel-bin/examples/java/hello_world/hello_envoy.apk
adb shell am start -n io.envoyproxy.envoymobile.helloenvoy/.MainActivity
Expand All @@ -94,11 +97,11 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Install dependencies'
run: ./ci/mac_ci_setup.sh
- name: 'Download aar'
Expand Down Expand Up @@ -137,11 +140,11 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Install dependencies'
run: ./ci/mac_ci_setup.sh --android
- name: 'Download aar'
Expand Down Expand Up @@ -180,11 +183,11 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Install dependencies'
run: ./ci/mac_ci_setup.sh
- name: 'Download aar'
Expand Down
30 changes: 12 additions & 18 deletions .github/workflows/android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
fi
- name: 'Java setup'
if: steps.check_context.outputs.run_tests == 'true'
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Install dependencies'
if: steps.check_context.outputs.run_tests == 'true'
run: ./ci/mac_ci_setup.sh
Expand All @@ -45,9 +45,7 @@ jobs:
./bazelw test \
--test_output=all \
--build_tests_only \
--config=remote-ci-macos \
--config=remote-ci-local-java8 \
--remote_header="Authorization=Bearer $GITHUB_TOKEN" \
--config=macos \
//test/kotlin/io/...
javatestsmac:
name: java_tests_mac
Expand All @@ -69,11 +67,11 @@ jobs:
fi
- name: 'Java setup'
if: steps.check_context.outputs.run_tests == 'true'
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Install dependencies'
if: steps.check_context.outputs.run_tests == 'true'
run: ./ci/mac_ci_setup.sh
Expand All @@ -85,9 +83,7 @@ jobs:
./bazelw test \
--test_output=all \
--build_tests_only \
--config=remote-ci-macos \
--config=remote-ci-local-java8 \
--remote_header="Authorization=Bearer $GITHUB_TOKEN" \
--config=macos \
--define=signal_trace=disabled \
//test/java/...
kotlintestslinux:
Expand Down Expand Up @@ -117,11 +113,11 @@ jobs:
fi
- name: 'Java setup'
if: steps.check_context.outputs.run_tests == 'true'
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Run Kotlin library integration tests'
if: steps.check_context.outputs.run_tests == 'true'
env:
Expand All @@ -130,7 +126,5 @@ jobs:
./bazelw test \
--test_output=all \
--build_tests_only \
--config=remote-ci-linux-clang \
--config=remote-ci-local-java8 \
--remote_header="Authorization=Bearer $GITHUB_TOKEN" \
--config=clang \
//test/kotlin/...
6 changes: 3 additions & 3 deletions .github/workflows/asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
echo "Skipping tests."
echo "::set-output name=run_tests::false"
fi
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
if: steps.check-cache.outputs.cache-hit != 'true'
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Run tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- run: ./ci/mac_ci_setup.sh
name: 'Install dependencies'
- name: 'Run Kotlin Lint (Detekt)'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./bazelw build \
--config=remote-ci-macos --remote_header="Authorization=Bearer $GITHUB_TOKEN" \
--config=macos \
//library/kotlin/io/envoyproxy/envoymobile:envoy_lib_lint \
//examples/kotlin/hello_world:hello_envoy_kt_lint
- name: 'Run Kotlin Formatter (ktlint)'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- run: ./ci/mac_ci_setup.sh --android
name: 'Install dependencies'
- name: 'Build envoy.aar distributable'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
echo "Skipping tests."
echo "::set-output name=run_tests::false"
fi
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
if: steps.check-cache.outputs.cache-hit != 'true'
with:
java-version: '8'
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'zulu'
- name: 'Run tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@io_bazel_rules_kotlin//kotlin/internal:toolchains.bzl", "define_kt_toolchain")
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "define_kt_toolchain")

licenses(["notice"]) # Apache 2

Expand Down
6 changes: 3 additions & 3 deletions bazel/envoy_mobile_dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependenci
load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies")
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@rules_detekt//detekt:dependencies.bzl", "rules_detekt_dependencies")
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories")
load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
load("@rules_proto_grpc//protobuf:repositories.bzl", "protobuf_repos")
load("@rules_proto_grpc//java:repositories.bzl", rules_proto_grpc_java_repos = "java_repos")
Expand Down Expand Up @@ -74,8 +74,8 @@ def kotlin_dependencies(extra_maven_dependencies = []):
# Test artifacts
"org.assertj:assertj-core:3.12.0",
"junit:junit:4.12",
"org.mockito:mockito-inline:2.28.2",
"org.mockito:mockito-core:2.28.2",
"org.mockito:mockito-inline:4.5.1",
"org.mockito:mockito-core:4.5.1",
"com.squareup.okhttp3:okhttp:4.9.1",
"com.squareup.okhttp3:mockwebserver:4.9.1",
"io.github.classgraph:classgraph:4.8.121",
Expand Down
17 changes: 8 additions & 9 deletions bazel/envoy_mobile_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def upstream_envoy_overrides():
def swift_repos():
http_archive(
name = "build_bazel_rules_apple",
sha256 = "4161b2283f80f33b93579627c3bd846169b2d58848b0ffb29b5d4db35263156a",
url = "https://github.com/bazelbuild/rules_apple/releases/download/0.34.0/rules_apple.0.34.0.tar.gz",
sha256 = "633a7f4b886ddd54db82f36f9103dd86e51d4d9be1247574be536988ea8c70e3",
strip_prefix = "rules_apple-2e6a8c625e519b18803c30fbd5e960061cc4c4af",
url = "https://github.com/bazelbuild/rules_apple/archive/2e6a8c625e519b18803c30fbd5e960061cc4c4af.tar.gz",
)

http_archive(
Expand All @@ -92,17 +93,15 @@ def kotlin_repos():

http_archive(
name = "io_bazel_rules_kotlin",
sha256 = "dc1c76f91228ddaf4f7ca4190b82d61939e95369f61dea715e8be28792072b1b",
strip_prefix = "rules_kotlin-legacy-1.3.0-rc2",
type = "zip",
urls = ["https://github.com/bazelbuild/rules_kotlin/archive/legacy-1.3.0-rc2.zip"],
sha256 = "12d22a3d9cbcf00f2e2d8f0683ba87d3823cb8c7f6837568dd7e48846e023307",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.5.0/rules_kotlin_release.tgz",
)

http_archive(
name = "rules_detekt",
sha256 = "b1b4c8a3228f880a169ab60a817619bc4cf254443196e7e108ece411cb9c580e",
strip_prefix = "bazel_rules_detekt-0.3.0",
url = "https://github.com/buildfoundation/bazel_rules_detekt/archive/v0.3.0.tar.gz",
sha256 = "44912c74dc2e164227b1102ef36227d0e78fdbd7c7359868ae13424eb4f0d5c2",
strip_prefix = "bazel_rules_detekt-0.6.0",
url = "https://github.com/buildfoundation/bazel_rules_detekt/archive/refs/tags/v0.6.0.tar.gz",
)

# gRPC java for @rules_proto_grpc
Expand Down
4 changes: 2 additions & 2 deletions bazel/envoy_mobile_toolchains.bzl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_register_toolchains")
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
load("@rules_detekt//detekt:toolchains.bzl", "rules_detekt_toolchains")
load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_toolchains")

def envoy_mobile_toolchains():
kt_register_toolchains()
rules_detekt_toolchains(detekt_version = "1.8.0")
rules_detekt_toolchains(detekt_version = "1.20.0")
rules_proto_grpc_toolchains()
6 changes: 1 addition & 5 deletions third_party/rbe_configs/config/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ package(default_visibility = ["//visibility:public"])

toolchain(
name = "cc-toolchain",
exec_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@bazel_tools//tools/cpp:clang",
],
target_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
"@bazel_tools//tools/cpp:clang",
],
toolchain = "//third_party/rbe_configs/cc:cc-compiler-k8",
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
Expand Down