@@ -221,8 +221,8 @@ jobs:
221221 fi
222222 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}}")
223223 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} )"
226226 if [[ -z "${{github.event.inputs.test_pull_request}}" ]]; then
227227 echo "::warning ::Running on https://github.com/${{github.repository}}/commits/$GITHUB_SHA"
228228 echo "::set-output name=github_ref::$GITHUB_SHA"
@@ -354,7 +354,7 @@ jobs:
354354 if : ${{ !cancelled() }}
355355 with :
356356 name : log-artifact
357- path : build-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}.log
357+ path : build-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}*
358358 retention-days : ${{ env.artifactRetentionDays }}
359359 - name : Set CLOUDSDK_PYTHON (Windows)
360360 shell : bash
@@ -510,7 +510,7 @@ jobs:
510510 if : ${{ !cancelled() }}
511511 with :
512512 name : log-artifact
513- path : build-results-android-${{ matrix.os }}.log
513+ path : build-results-android-${{ matrix.os }}*
514514 retention-days : ${{ env.artifactRetentionDays }}
515515 - name : Add failure label
516516 # We can mark a failure as soon as any one test fails.
@@ -635,7 +635,7 @@ jobs:
635635 if : ${{ !cancelled() }}
636636 with :
637637 name : log-artifact
638- path : build-results-ios-macos-latest.log
638+ path : build-results-ios-macos-latest*
639639 retention-days : ${{ env.artifactRetentionDays }}
640640 - name : Add failure label
641641 # We can mark a failure as soon as any one test fails.
@@ -692,7 +692,7 @@ jobs:
692692 name : test-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}
693693 needs : [check_trigger, prepare_matrix, build_desktop]
694694 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()
696696 strategy :
697697 fail-fast : false
698698 matrix :
@@ -722,7 +722,7 @@ jobs:
722722 uses : actions/upload-artifact@v2.2.2
723723 with :
724724 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 }}*
726726 retention-days : ${{ env.artifactRetentionDays }}
727727 - name : Add failure label
728728 # We can mark a failure as soon as any one test fails.
@@ -779,7 +779,7 @@ jobs:
779779 name : test-android-${{ matrix.build_os }}-${{ matrix.android_device }}
780780 needs : [check_trigger, prepare_matrix, build_android]
781781 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()
783783 strategy :
784784 fail-fast : false
785785 matrix :
@@ -800,35 +800,34 @@ jobs:
800800 python-version : ${{ env.pythonVersion }}
801801 - name : Install python deps
802802 run : pip install -r scripts/gha/requirements.txt
803- - id : get-device
803+ - id : get-device-type
804804 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 }} )"
807806 - 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'
809808 run : |
810809 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 }}" \
813812 --ci
814813 - name : Install Cloud SDK
815- if : startsWith(matrix.android_device, 'real')
814+ if : steps.get-device-type.outputs.device_type == 'real'
816815 uses : google-github-actions/setup-gcloud@master
817816 - 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'
819818 run : |
820819 python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
821820 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 }}" \
824823 --code_platform cpp \
825824 --key_file scripts/gha-encrypted/gcs_key_file.json
826825 - name : Upload Android test results artifact
827826 if : ${{ !cancelled() }}
828827 uses : actions/upload-artifact@v2.2.2
829828 with :
830829 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 }}*
832831 retention-days : ${{ env.artifactRetentionDays }}
833832 - name : Add failure label
834833 # We can mark a failure as soon as any one test fails.
@@ -876,7 +875,7 @@ jobs:
876875 if : ${{ !cancelled() }}
877876 shell : bash
878877 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"
880879 if [[ "${{ job.status }}" != "success" ]]; then
881880 exit 1
882881 fi
@@ -885,7 +884,7 @@ jobs:
885884 name : test-ios-macos-latest-${{ matrix.ios_device }}
886885 needs : [check_trigger, prepare_matrix, build_ios]
887886 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()
889888 strategy :
890889 fail-fast : false
891890 matrix :
@@ -905,35 +904,34 @@ jobs:
905904 python-version : ${{ env.pythonVersion }}
906905 - name : Install python deps
907906 run : pip install -r scripts/gha/requirements.txt
908- - id : get-device
907+ - id : get-device-type
909908 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 }} )"
912910 - 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'
914912 run : |
915913 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 }}" \
918916 --ci
919917 - name : Install Cloud SDK
920- if : startsWith(matrix.ios_device, 'real')
918+ if : steps.get-device-type.outputs.device_type == 'real'
921919 uses : google-github-actions/setup-gcloud@master
922920 - 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'
924922 run : |
925923 python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
926924 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 }}" \
929927 --code_platform cpp \
930928 --key_file scripts/gha-encrypted/gcs_key_file.json
931929 - name : Upload Android test results artifact
932930 if : ${{ !cancelled() }}
933931 uses : actions/upload-artifact@v2.2.2
934932 with :
935933 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 }}*
937935 retention-days : ${{ env.artifactRetentionDays }}
938936 - name : Add failure label
939937 # We can mark a failure as soon as any one test fails.
@@ -981,7 +979,7 @@ jobs:
981979 if : ${{ !cancelled() }}
982980 shell : bash
983981 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"
985983 if [[ "${{ job.status }}" != "success" ]]; then
986984 exit 1
987985 fi
@@ -1061,7 +1059,7 @@ jobs:
10611059 ### ❌ Integration test FAILED
10621060 Requested by @${{github.actor}} on commit ${{needs.prepare_matrix.outputs.github_ref}}
10631061 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}})**
10651063 ${{ env.SUMMARY_TABLE }}
10661064 GITHUB_TOKEN : ${{ github.token }}
10671065 COMMENT_IDENTIFIER : ${{ env.statusCommentIdentifier }}
0 commit comments