forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mobile/ci: Deflake Android tests (envoyproxy#30161)
Signed-off-by: Fredy Wijaya <[email protected]>
- Loading branch information
Showing
14 changed files
with
337 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,76 +21,37 @@ jobs: | |
permissions: | ||
contents: read | ||
|
||
kotlintestsmac: | ||
javatestslinux: | ||
if: ${{ needs.env.outputs.mobile_android_tests == 'true' }} | ||
needs: env | ||
permissions: | ||
contents: read | ||
packages: read | ||
# revert to //test/kotlin/... once fixed | ||
# https://github.com/envoyproxy/envoy-mobile/issues/1932 | ||
name: kotlin_tests_mac | ||
runs-on: macos-12 | ||
name: java_tests_linux | ||
runs-on: ${{ needs.env.outputs.agent_ubuntu }} | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Pre-cleanup | ||
# Using the defaults in | ||
# https://github.com/envoyproxy/toolshed/blob/main/gh-actions/diskspace/action.yml. | ||
uses: envoyproxy/toolshed/gh-actions/[email protected] | ||
- uses: actions/checkout@v4 | ||
- name: 'Java setup' | ||
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | ||
with: | ||
java-version: '8' | ||
java-package: jdk | ||
architecture: x64 | ||
distribution: zulu | ||
- name: 'Install dependencies' | ||
run: | | ||
cd mobile | ||
./ci/mac_ci_setup.sh | ||
- name: 'Run Kotlin library tests' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cd mobile | ||
./bazelw test \ | ||
--build_tests_only \ | ||
--config=mobile-remote-ci-macos \ | ||
--define=signal_trace=disabled \ | ||
//test/kotlin/io/... | ||
javatestsmac: | ||
if: ${{ needs.env.outputs.mobile_android_tests == 'true' }} | ||
needs: env | ||
permissions: | ||
contents: read | ||
packages: read | ||
name: java_tests_mac | ||
runs-on: macos-12 | ||
timeout-minutes: 120 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Java setup' | ||
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | ||
with: | ||
java-version: '8' | ||
java-package: jdk | ||
architecture: x64 | ||
distribution: zulu | ||
- name: 'Install dependencies' | ||
run: | | ||
cd mobile | ||
./ci/mac_ci_setup.sh | ||
- name: 'Run Java library tests' | ||
- name: Add safe directory | ||
run: git config --global --add safe.directory /__w/envoy/envoy | ||
- name: 'Run Kotlin library integration tests' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CC: /opt/llvm/bin/clang | ||
CXX: /opt/llvm/bin/clang++ | ||
run: | | ||
cd mobile | ||
./bazelw test \ | ||
--build_tests_only \ | ||
--config test-android \ | ||
--define envoy_mobile_listener=enabled \ | ||
--config=mobile-remote-ci-macos \ | ||
--define=signal_trace=disabled \ | ||
--define=system-helper=android \ | ||
//test/java/... | ||
docker run --volume="${PWD}:/source" --workdir="/source/mobile" \ | ||
-e GITHUB_TOKEN -e CC -e CXX ${{ needs.env.outputs.build_image_ubuntu_mobile }} \ | ||
./bazelw test \ | ||
--build_tests_only \ | ||
--config=test-android \ | ||
--config=mobile-remote-ci \ | ||
--define=signal_trace=disabled \ | ||
//test/java/... | ||
kotlintestslinux: | ||
if: ${{ needs.env.outputs.mobile_android_tests == 'true' }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.