Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ce3a16e
create mobile test flag & matrix
sunmou99 Apr 22, 2021
4996a3e
add FTL test
sunmou99 Apr 23, 2021
cbf1674
divide build matrix into 3
sunmou99 Apr 29, 2021
8d0f568
update dependency
sunmou99 Apr 29, 2021
4a803bc
update platform variables
sunmou99 Apr 29, 2021
852713d
set artifact retention to 1 day
sunmou99 Apr 29, 2021
f789626
remove unsed conditional logic
sunmou99 Apr 29, 2021
8edc6da
fail-fast: false
sunmou99 Apr 29, 2021
c9d4540
remove unsed conditional logic
sunmou99 Apr 29, 2021
150fe97
update job needs
sunmou99 Apr 29, 2021
9f686bc
update job dependency
sunmou99 Apr 30, 2021
a9be8f0
update artifact names
sunmou99 Apr 30, 2021
6161725
fix bug when build for different platform
sunmou99 Apr 30, 2021
bef8f5f
add test desktop matrix
sunmou99 Apr 30, 2021
0e53981
update job names
sunmou99 Apr 30, 2021
652aa54
upload desktop artifact
sunmou99 May 1, 2021
a425fe5
fix syntax
sunmou99 May 1, 2021
784576f
create desktop artifact
sunmou99 May 1, 2021
6473499
google-services.json for desktop test
sunmou99 May 1, 2021
900f06d
update test devices
sunmou99 May 4, 2021
ffb371e
add build & test resutl artifacts
sunmou99 May 4, 2021
256f1fd
desktop summary log
sunmou99 May 4, 2021
c95de30
summarize test results
sunmou99 May 4, 2021
3ac529d
change flag separator
sunmou99 May 4, 2021
4e4a03d
change log name
sunmou99 May 4, 2021
ab80724
test new log summary
sunmou99 May 5, 2021
8795884
fix typo
sunmou99 May 5, 2021
bec5ad6
Merge branch 'main' into feature/mobile-test-martix
sunmou99 May 5, 2021
e0b19af
resolve merge conflict
sunmou99 May 5, 2021
656bd06
print summary log
sunmou99 May 5, 2021
4c3ba9b
fix print summary log
sunmou99 May 5, 2021
8098109
add failure label steps into build matrices
sunmou99 May 5, 2021
bf5a140
print matrix for test
sunmou99 May 5, 2021
67ad720
print matrix for test
sunmou99 May 5, 2021
1c40bce
print matrix for test
sunmou99 May 5, 2021
c1443d9
print matrix for test
sunmou99 May 5, 2021
e3f9e72
fix typo
sunmou99 May 5, 2021
9537880
fix typo
sunmou99 May 5, 2021
43fe85b
remove print matrix
sunmou99 May 5, 2021
1de36a5
add print matrix
sunmou99 May 5, 2021
3a454e0
remove print matrix
sunmou99 May 5, 2021
c4b7625
upload artifact even if failed
sunmou99 May 5, 2021
fe03cbb
update step cancel logic
sunmou99 May 5, 2021
ef3df14
update match log regex
sunmou99 May 6, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test desktop matrix
  • Loading branch information
sunmou99 committed Apr 30, 2021
commit bef8f5fc09ff37fbed9f4ccb51159e8fcaf11548
58 changes: 45 additions & 13 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,49 @@ jobs:
path: testapps-ios-macos-latest.zip
retention-days: 1

test_desktop:
name: desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}-test
needs: [prepare_matrix, build_desktop]
runs-on: ${{ matrix.os }}
if: contains(needs.prepare_matrix.outputs.matrix_platform, 'Desktop') && needs.prepare_matrix.outputs.apis != '' && !cancelled()
strategy:
fail-fast: false
matrix:
os: ${{ fromJson(needs.prepare_matrix.outputs.matrix_os) }}
ssl_variant: ${{ fromJson(needs.prepare_matrix.outputs.matrix_ssl) }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install python deps
run: |
pip install -r scripts/gha/requirements.txt
- name: download artifact
uses: actions/download-artifact@v2.0.8
with:
path: testapps
name: testapps-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}.zip
- name: unzip artifact
run: |
unzip testapps/testapps-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}.zip
- name: Run desktop integration tests
if: matrix.target_platform == 'Desktop' && !cancelled()
run: |
python scripts/gha/desktop_tester.py --testapp_dir testapps-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}
- name: Set CLOUDSDK_PYTHON (Windows)
shell: bash
if: startsWith(matrix.os, 'windows') && !cancelled()
run: echo "CLOUDSDK_PYTHON=${{env.pythonLocation}}\python.exe" >> $GITHUB_ENV
- name: Install Cloud SDK
if: ${{ !cancelled() }}
uses: google-github-actions/setup-gcloud@master
- name: Upload Desktop Artifacts to GCS
if: matrix.target_platform == 'Desktop' && !cancelled()
run: |
python scripts/gha/gcs_uploader.py --testapp_dir ta --key_file scripts/gha-encrypted/gcs_key_file.json

test_android:
name: android-${{ matrix.build_os }}-${{ matrix.android_device }}
needs: [prepare_matrix, build_android]
Expand All @@ -480,25 +523,14 @@ jobs:
- name: Install python deps
run: |
pip install -r scripts/gha/requirements.txt
- name: Install python deps
run: |
python scripts/gha/install_prereqs_desktop.py
- name: download artifact
uses: actions/download-artifact@v2.0.8
with:
path: testapps
name: testapps-android-${{ matrix.build_os }}.zip
- name: unzip artifact
run: |
unzip testapps/testapps-android-${{ matrix.build_os }}.zip
- id: get-device
run: |
device=$(echo "${{ matrix.android_device }}" | cut -d ":" -f2)
echo "::set-output name=device::$device"
- name: Run Android integration tests on Emulator locally
if: startsWith(matrix.android_device, 'virtual')
run: |
python scripts/gha/test_simulator.py --testapp_dir testapps-android-${{ matrix.build_os }} --android_device "${{steps.get-device.outputs.device}}" --ci --artifact
python scripts/gha/test_simulator.py --testapp_dir testapps-android-${{ matrix.build_os }} --android_device "${{steps.get-device.outputs.device}}" --ci
- name: Install Cloud SDK
if: startsWith(matrix.android_device, 'real')
uses: google-github-actions/setup-gcloud@master
Expand Down Expand Up @@ -541,7 +573,7 @@ jobs:
- name: Run iOS integration tests on Simulator locally
if: startsWith(matrix.ios_device, 'virtual')
run: |
python scripts/gha/test_simulator.py --testapp_dir testapps-ios-macos-latest --ios_device "${{steps.get-device.outputs.device}}" --ci --artifact
python scripts/gha/test_simulator.py --testapp_dir testapps-ios-macos-latest --ios_device "${{steps.get-device.outputs.device}}" --ci
- name: Install Cloud SDK
if: startsWith(matrix.ios_device, 'real')
uses: google-github-actions/setup-gcloud@master
Expand Down
2 changes: 1 addition & 1 deletion scripts/gha/build_testapps.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _zip_integration_tests(testapps, output_dir, artifact_name):
for file_dir, directories, file_names in os.walk(output_dir):
for directory in directories:
if directory.endswith(ios_simualtor_testapp_extension):
testapp_paths.append(os.path.join(file_dir, file_name))
testapp_paths.append(os.path.join(file_dir, directory))
for file_name in file_names:
if ((file_name == desktop_testapp_name and "ios_build" not in file_dir)
or file_name.endswith(android_testapp_extension)
Expand Down