@@ -221,8 +221,8 @@ jobs:
221
221
fi
222
222
mobile_test_on=$( python scripts/gha/print_matrix_configuration.py -c -w integration_tests -k mobile_test_on -o "${{github.event.inputs.mobile_test_on}}")
223
223
echo "::set-output name=mobile_test_on::${mobile_test_on}"
224
- echo "::set-output name=android_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${EXPANDED_MATRIX_PARAM} -k android_device -d ${mobile_test_on} )"
225
- echo "::set-output name=ios_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${EXPANDED_MATRIX_PARAM} -k ios_device -d ${mobile_test_on} )"
224
+ echo "::set-output name=android_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${EXPANDED_MATRIX_PARAM} -k android_device -t ${mobile_test_on} )"
225
+ echo "::set-output name=ios_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${EXPANDED_MATRIX_PARAM} -k ios_device -t ${mobile_test_on} )"
226
226
if [[ -z "${{github.event.inputs.test_pull_request}}" ]]; then
227
227
echo "::warning ::Running on https://github.com/${{github.repository}}/commits/$GITHUB_SHA"
228
228
echo "::set-output name=github_ref::$GITHUB_SHA"
@@ -354,7 +354,7 @@ jobs:
354
354
if : ${{ !cancelled() }}
355
355
with :
356
356
name : log-artifact
357
- path : build-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}.log
357
+ path : build-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}*
358
358
retention-days : ${{ env.artifactRetentionDays }}
359
359
- name : Set CLOUDSDK_PYTHON (Windows)
360
360
shell : bash
@@ -510,7 +510,7 @@ jobs:
510
510
if : ${{ !cancelled() }}
511
511
with :
512
512
name : log-artifact
513
- path : build-results-android-${{ matrix.os }}.log
513
+ path : build-results-android-${{ matrix.os }}*
514
514
retention-days : ${{ env.artifactRetentionDays }}
515
515
- name : Add failure label
516
516
# We can mark a failure as soon as any one test fails.
@@ -635,7 +635,7 @@ jobs:
635
635
if : ${{ !cancelled() }}
636
636
with :
637
637
name : log-artifact
638
- path : build-results-ios-macos-latest.log
638
+ path : build-results-ios-macos-latest*
639
639
retention-days : ${{ env.artifactRetentionDays }}
640
640
- name : Add failure label
641
641
# We can mark a failure as soon as any one test fails.
@@ -692,7 +692,7 @@ jobs:
692
692
name : test-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}
693
693
needs : [check_trigger, prepare_matrix, build_desktop]
694
694
runs-on : ${{ matrix.os }}
695
- if : contains(needs.prepare_matrix.outputs.matrix_platform, 'Desktop') && needs.prepare_matrix.outputs.apis != '' && !cancelled() && !failure()
695
+ if : contains(needs.prepare_matrix.outputs.matrix_platform, 'Desktop') && needs.prepare_matrix.outputs.apis != '' && !cancelled()
696
696
strategy :
697
697
fail-fast : false
698
698
matrix :
@@ -722,7 +722,7 @@ jobs:
722
722
723
723
with :
724
724
name : log-artifact
725
- path : testapps/test-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}.log
725
+ path : testapps/test-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}*
726
726
retention-days : ${{ env.artifactRetentionDays }}
727
727
- name : Add failure label
728
728
# We can mark a failure as soon as any one test fails.
@@ -779,7 +779,7 @@ jobs:
779
779
name : test-android-${{ matrix.build_os }}-${{ matrix.android_device }}
780
780
needs : [check_trigger, prepare_matrix, build_android]
781
781
runs-on : macos-latest
782
- if : contains(needs.prepare_matrix.outputs.matrix_platform, 'Android') && needs.prepare_matrix.outputs.apis != '' && !cancelled() && !failure()
782
+ if : contains(needs.prepare_matrix.outputs.matrix_platform, 'Android') && needs.prepare_matrix.outputs.apis != '' && !cancelled()
783
783
strategy :
784
784
fail-fast : false
785
785
matrix :
@@ -800,35 +800,34 @@ jobs:
800
800
python-version : ${{ env.pythonVersion }}
801
801
- name : Install python deps
802
802
run : pip install -r scripts/gha/requirements.txt
803
- - id : get-device
803
+ - id : get-device-type
804
804
run : |
805
- device=$(echo "${{ matrix.android_device }}" | cut -d ":" -f2)
806
- echo "::set-output name=device::$device"
805
+ echo "::set-output name=device_type::$( python scripts/gha/print_matrix_configuration.py -d -k ${{ matrix.android_device }} )"
807
806
- name : Run Android integration tests on Emulator locally
808
- if : startsWith(matrix.android_device, 'virtual')
807
+ if : steps.get-device-type.outputs.device_type == 'virtual'
809
808
run : |
810
809
python scripts/gha/test_simulator.py --testapp_dir testapps \
811
- --android_device "${{steps.get-device.outputs.device }}" \
812
- --logfile_name "android-${{ matrix.build_os }}-${{steps.get-device.outputs.device }}" \
810
+ --android_device "${{ matrix.android_device }}" \
811
+ --logfile_name "android-${{ matrix.build_os }}-${{ matrix.android_device }}" \
813
812
--ci
814
813
- name : Install Cloud SDK
815
- if : startsWith(matrix.android_device, 'real')
814
+ if : steps.get-device-type.outputs.device_type == 'real'
816
815
uses : google-github-actions/setup-gcloud@master
817
816
- name : Run Android integration tests on Real Device via FTL
818
- if : startsWith(matrix.android_device, 'real')
817
+ if : steps.get-device-type.outputs.device_type == 'real'
819
818
run : |
820
819
python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
821
820
python scripts/gha/test_lab.py --testapp_dir testapps \
822
- --android_device "${{steps.get-device.outputs.device }}" \
823
- --logfile_name "android-${{ matrix.build_os }}-${{steps.get-device.outputs.device }}" \
821
+ --android_device "${{ matrix.android_device }}" \
822
+ --logfile_name "android-${{ matrix.build_os }}-${{ matrix.android_device }}" \
824
823
--code_platform cpp \
825
824
--key_file scripts/gha-encrypted/gcs_key_file.json
826
825
- name : Upload Android test results artifact
827
826
if : ${{ !cancelled() }}
828
827
829
828
with :
830
829
name : log-artifact
831
- path : testapps/test-results-android-${{ matrix.build_os }}-${{steps.get-device.outputs.device}}.log
830
+ path : testapps/test-results-android-${{ matrix.build_os }}-${{ matrix.android_device }}*
832
831
retention-days : ${{ env.artifactRetentionDays }}
833
832
- name : Add failure label
834
833
# We can mark a failure as soon as any one test fails.
@@ -876,7 +875,7 @@ jobs:
876
875
if : ${{ !cancelled() }}
877
876
shell : bash
878
877
run : |
879
- cat "testapps/test-results-android-${{ matrix.build_os }}-${{steps.get-device.outputs.device }}.log"
878
+ cat "testapps/test-results-android-${{ matrix.build_os }}-${{ matrix.android_device }}.log"
880
879
if [[ "${{ job.status }}" != "success" ]]; then
881
880
exit 1
882
881
fi
@@ -885,7 +884,7 @@ jobs:
885
884
name : test-ios-macos-latest-${{ matrix.ios_device }}
886
885
needs : [check_trigger, prepare_matrix, build_ios]
887
886
runs-on : macos-latest
888
- if : contains(needs.prepare_matrix.outputs.matrix_platform, 'iOS') && needs.prepare_matrix.outputs.apis != '' && !cancelled() && !failure()
887
+ if : contains(needs.prepare_matrix.outputs.matrix_platform, 'iOS') && needs.prepare_matrix.outputs.apis != '' && !cancelled()
889
888
strategy :
890
889
fail-fast : false
891
890
matrix :
@@ -905,35 +904,34 @@ jobs:
905
904
python-version : ${{ env.pythonVersion }}
906
905
- name : Install python deps
907
906
run : pip install -r scripts/gha/requirements.txt
908
- - id : get-device
907
+ - id : get-device-type
909
908
run : |
910
- device=$(echo "${{ matrix.ios_device }}" | cut -d ":" -f2)
911
- echo "::set-output name=device::$device"
909
+ echo "::set-output name=device_type::$( python scripts/gha/print_matrix_configuration.py -d -k ${{ matrix.ios_device }} )"
912
910
- name : Run iOS integration tests on Simulator locally
913
- if : startsWith(matrix.ios_device, 'virtual')
911
+ if : steps.get-device-type.outputs.device_type == 'virtual'
914
912
run : |
915
913
python scripts/gha/test_simulator.py --testapp_dir testapps \
916
- --ios_device "${{steps.get-device.outputs.device }}" \
917
- --logfile_name "ios-macos-latest-${{steps.get-device.outputs.device }}" \
914
+ --ios_device "${{ matrix.ios_device }}" \
915
+ --logfile_name "ios-macos-latest-${{ matrix.ios_device }}" \
918
916
--ci
919
917
- name : Install Cloud SDK
920
- if : startsWith(matrix.ios_device, 'real')
918
+ if : steps.get-device-type.outputs.device_type == 'real'
921
919
uses : google-github-actions/setup-gcloud@master
922
920
- name : Run iOS integration tests on Real Device via FTL
923
- if : startsWith(matrix.ios_device, 'real')
921
+ if : steps.get-device-type.outputs.device_type == 'real'
924
922
run : |
925
923
python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
926
924
python scripts/gha/test_lab.py --testapp_dir testapps \
927
- --ios_device "${{steps.get-device.outputs.device }}" \
928
- --logfile_name "ios-macos-latest-${{steps.get-device.outputs.device }}" \
925
+ --ios_device "${{ matrix.ios_device }}" \
926
+ --logfile_name "ios-macos-latest-${{ matrix.ios_device }}" \
929
927
--code_platform cpp \
930
928
--key_file scripts/gha-encrypted/gcs_key_file.json
931
929
- name : Upload Android test results artifact
932
930
if : ${{ !cancelled() }}
933
931
934
932
with :
935
933
name : log-artifact
936
- path : testapps/test-results-ios-macos-latest-${{steps.get-device.outputs.device}}.log
934
+ path : testapps/test-results-ios-macos-latest-${{ matrix.ios_device }}*
937
935
retention-days : ${{ env.artifactRetentionDays }}
938
936
- name : Add failure label
939
937
# We can mark a failure as soon as any one test fails.
@@ -981,7 +979,7 @@ jobs:
981
979
if : ${{ !cancelled() }}
982
980
shell : bash
983
981
run : |
984
- cat "testapps/test-results-ios-macos-latest-${{steps.get-device.outputs.device }}.log"
982
+ cat "testapps/test-results-ios-macos-latest-${{ matrix.ios_device }}.log"
985
983
if [[ "${{ job.status }}" != "success" ]]; then
986
984
exit 1
987
985
fi
@@ -1061,7 +1059,7 @@ jobs:
1061
1059
### ❌ Integration test FAILED
1062
1060
Requested by @${{github.actor}} on commit ${{needs.prepare_matrix.outputs.github_ref}}
1063
1061
Last updated: ${{ steps.get-time.outputs.time }}
1064
- **[View integration test results ](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})**
1062
+ **[Download integration test detailed logs and artifacts ](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})**
1065
1063
${{ env.SUMMARY_TABLE }}
1066
1064
GITHUB_TOKEN : ${{ github.token }}
1067
1065
COMMENT_IDENTIFIER : ${{ env.statusCommentIdentifier }}
0 commit comments