From a6d009c54214d9b929cb5d79ff7342540e3b58e5 Mon Sep 17 00:00:00 2001 From: Anh Date: Fri, 25 Aug 2023 11:20:36 +0700 Subject: [PATCH 1/4] Upload release APK --- .github/workflows/app-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/app-build.yml b/.github/workflows/app-build.yml index e35fb4336..745e982b3 100644 --- a/.github/workflows/app-build.yml +++ b/.github/workflows/app-build.yml @@ -142,4 +142,6 @@ jobs: aws s3 --endpoint-url=https://s3.us-east-1.lyvecloud.seagate.com \ cp --quiet output/android-apks/test-main.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/ && \ aws s3 --endpoint-url=https://s3.us-east-1.lyvecloud.seagate.com \ - cp --quiet output/android-apks/test-helper.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/ + cp --quiet output/android-apks/test-helper.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/ && \ + aws s3 --endpoint-url=https://s3.us-east-1.lyvecloud.seagate.com \ + cp --quiet flutter/build/app/outputs/flutter-apk/app-release.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/ From 5277959933616c936343a57afcde490fd5da449a Mon Sep 17 00:00:00 2001 From: Anh Date: Sat, 26 Aug 2023 21:43:21 +0700 Subject: [PATCH 2/4] Fix numpy not found issue ModuleNotFoundError: No module named 'numpy' --- .github/workflows/ios-tests.yml | 2 +- flutter/ios/ci_scripts/ci_post_clone.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ios-tests.yml b/.github/workflows/ios-tests.yml index e68249224..34647b85a 100644 --- a/.github/workflows/ios-tests.yml +++ b/.github/workflows/ios-tests.yml @@ -11,7 +11,7 @@ jobs: build: name: Build and test iOS app # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md - runs-on: macos-12 + runs-on: macos-13 timeout-minutes: 120 env: PERF_TEST: true diff --git a/flutter/ios/ci_scripts/ci_post_clone.sh b/flutter/ios/ci_scripts/ci_post_clone.sh index 36ff03064..8c242128e 100755 --- a/flutter/ios/ci_scripts/ci_post_clone.sh +++ b/flutter/ios/ci_scripts/ci_post_clone.sh @@ -66,8 +66,8 @@ echo "$MC_LOG_PREFIX cocoapods version:" && pod --version brew install python@3.11 || brew link --overwrite python@3.11 echo "$MC_LOG_PREFIX python version:" && python3 --version -pip3 install --upgrade pip -pip3 install \ +python3 -m pip install --upgrade pip +python3 -m pip install \ "numpy>=1.23,<2.0" \ "absl-py>=1.3,<2.0" From 86ec873850520891c38a3d7505d3d590b9df6c19 Mon Sep 17 00:00:00 2001 From: Anh Date: Sun, 27 Aug 2023 07:24:32 +0700 Subject: [PATCH 3/4] Fix ios test workflow --- .github/workflows/ios-tests.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios-tests.yml b/.github/workflows/ios-tests.yml index 34647b85a..ac0a66470 100644 --- a/.github/workflows/ios-tests.yml +++ b/.github/workflows/ios-tests.yml @@ -48,6 +48,13 @@ jobs: BAZEL_CACHE_ARG: "--disk_cache=/tmp/bazel_cache" run: | cd flutter/ios/ci_scripts/ && bash ci_post_clone.sh - - name: Run iOS tests + - name: Run iOS unit tests run: | - open -a Simulator && make flutter/test + make flutter/test/unit + - name: Build iOS integration tests + run: | + cd flutter && flutter --no-version-check build ios --config-only integration_test/first_test.dart + - name: Run iOS integration tests + run: | + open -a Simulator + make flutter/test/integration From bfb0bdc46d95e5bfaaee9cb749fedb88d4a7367d Mon Sep 17 00:00:00 2001 From: Anh Date: Sun, 27 Aug 2023 08:18:59 +0700 Subject: [PATCH 4/4] Fix ios test workflow --- .github/workflows/ios-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-tests.yml b/.github/workflows/ios-tests.yml index ac0a66470..2107b34c2 100644 --- a/.github/workflows/ios-tests.yml +++ b/.github/workflows/ios-tests.yml @@ -11,7 +11,7 @@ jobs: build: name: Build and test iOS app # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md - runs-on: macos-13 + runs-on: macos-12 timeout-minutes: 120 env: PERF_TEST: true