|
58 | 58 | ### subsequent steps to update the labels as well. |
59 | 59 | runs-on: ubuntu-latest |
60 | 60 | if: | |
61 | | - github.event_name == 'pull_request' || github.event.inputs.test_pull_request != '' |
| 61 | + github.event_name == 'pull_request' || (github.event.inputs.test_pull_request != '' && github.event.inputs.test_pull_request != 'sdk') |
62 | 62 | outputs: |
63 | 63 | should_update_pr: ${{ steps.set_outputs.outputs.should_update_pr }} |
64 | 64 | requested_tests: ${{ steps.set_outputs.outputs.requested_tests }} |
@@ -166,7 +166,7 @@ jobs: |
166 | 166 | if: needs.check_trigger.outputs.requested_tests == 'auto' |
167 | 167 | run: | |
168 | 168 | echo "Autodetecting which tests to run." |
169 | | - if [[ -n "${{github.event.inputs.test_pull_request}}" ]]; then |
| 169 | + if [[ -n "${{github.event.inputs.test_pull_request}}" || "${{github.event.inputs.test_pull_request}}" == "sdk" ]]; then |
170 | 170 | # If running this manually, diff against our common ancestor with main. |
171 | 171 | MERGE_BASE=$(git merge-base HEAD origin/main) |
172 | 172 | echo "::warning ::Auto-diff HEAD..${MERGE_BASE}" |
@@ -203,7 +203,7 @@ jobs: |
203 | 203 | 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} )" |
204 | 204 | 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} )" |
205 | 205 | echo "::set-output name=tvos_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${EXPANDED_MATRIX_PARAM} -k tvos_device -t ${mobile_test_on} )" |
206 | | - if [[ -z "${{github.event.inputs.test_pull_request}}" ]]; then |
| 206 | + if [[ -z "${{github.event.inputs.test_pull_request}}" || "${{github.event.inputs.test_pull_request}}" == "sdk" ]]; then |
207 | 207 | echo "::warning ::Running on https://github.com/${{github.repository}}/commits/$GITHUB_SHA" |
208 | 208 | echo "::set-output name=github_ref::$GITHUB_SHA" |
209 | 209 | elif [[ "${{github.event.inputs.test_pull_request}}" == *:* ]]; then |
@@ -750,7 +750,7 @@ jobs: |
750 | 750 | shell: bash |
751 | 751 | run: | |
752 | 752 | if [ ! -f testapps/test-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}.log.json ]; then |
753 | | - echo "__SUMMARY_MISSING__" > testapps/test-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}.log.json |
| 753 | + mkdir -p testapps && echo "__SUMMARY_MISSING__" > testapps/test-results-desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}.log.json |
754 | 754 | fi |
755 | 755 | - name: Upload Desktop test results artifact |
756 | 756 | if: ${{ !cancelled() }} |
@@ -836,7 +836,7 @@ jobs: |
836 | 836 | shell: bash |
837 | 837 | run: | |
838 | 838 | if [ ! -f "testapps/test-results-android-${{ matrix.build_os }}-${{ matrix.android_device }}.log.json" ]; then |
839 | | - echo "__SUMMARY_MISSING__" > "testapps/test-results-android-${{ matrix.build_os }}-${{ matrix.android_device }}.log.json" |
| 839 | + mkdir -p testapps && echo "__SUMMARY_MISSING__" > "testapps/test-results-android-${{ matrix.build_os }}-${{ matrix.android_device }}.log.json" |
840 | 840 | fi |
841 | 841 | - name: Upload Android test results artifact |
842 | 842 | if: ${{ !cancelled() }} |
@@ -921,7 +921,7 @@ jobs: |
921 | 921 | shell: bash |
922 | 922 | run: | |
923 | 923 | if [ ! -f "testapps/test-results-ios-macos-latest-${{ matrix.ios_device }}.log.json" ]; then |
924 | | - echo "__SUMMARY_MISSING__" > "testapps/test-results-ios-macos-latest-${{ matrix.ios_device }}.log.json" |
| 924 | + mkdir -p testapps && echo "__SUMMARY_MISSING__" > "testapps/test-results-ios-macos-latest-${{ matrix.ios_device }}.log.json" |
925 | 925 | fi |
926 | 926 | - name: Upload iOS test results artifact |
927 | 927 | if: ${{ !cancelled() }} |
@@ -990,7 +990,7 @@ jobs: |
990 | 990 | shell: bash |
991 | 991 | run: | |
992 | 992 | if [ ! -f "testapps/test-results-tvos-macos-latest-${{ matrix.tvos_device }}.log.json" ]; then |
993 | | - echo "__SUMMARY_MISSING__" > "testapps/test-results-tvos-macos-latest-${{ matrix.tvos_device }}.log.json" |
| 993 | + mkdir -p testapps && echo "__SUMMARY_MISSING__" > "testapps/test-results-tvos-macos-latest-${{ matrix.tvos_device }}.log.json" |
994 | 994 | fi |
995 | 995 | - name: Upload tvOS test results artifact |
996 | 996 | if: ${{ !cancelled() }} |
@@ -1062,12 +1062,19 @@ jobs: |
1062 | 1062 | --run_id ${{github.run_id}} \ |
1063 | 1063 | --new_token ${{steps.generate-token.outputs.token}} |
1064 | 1064 | - name: Update Daily Report |
1065 | | - if: ${{ github.event_name == 'schedule' }} |
| 1065 | + if: ${{ github.event_name == 'schedule' || github.event.inputs.test_pull_request == 'sdk'}} |
| 1066 | + shell: bash |
1066 | 1067 | run: | |
| 1068 | + if [[ "${{ github.event.inputs.test_pull_request }}" == "sdk" ]]; then |
| 1069 | + additional_flags=(--build_against sdk) |
| 1070 | + else |
| 1071 | + additional_flags=(--build_against repo) |
| 1072 | + fi |
1067 | 1073 | python scripts/gha/it_workflow.py --stage report \ |
1068 | 1074 | --token ${{github.token}} \ |
1069 | 1075 | --actor ${{github.actor}} \ |
1070 | 1076 | --commit ${{needs.prepare_matrix.outputs.github_ref}} \ |
1071 | | - --run_id ${{github.run_id}} |
| 1077 | + --run_id ${{github.run_id}} \ |
| 1078 | + ${additional_flags[*]} |
1072 | 1079 | - name: Summarize results into GitHub log |
1073 | 1080 | run: python scripts/gha/summarize_test_results.py --dir test_results --github_log |
0 commit comments