5757 exit 0
5858 fi
5959
60- git fetch origin ${{ github.base_ref } }
61- CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref } }...HEAD)
60+ git fetch origin ${GITHUB_BASE_REF }
61+ CHANGED_FILES=$(git diff --name-only origin/${GITHUB_BASE_REF }...HEAD)
6262
6363 echo "Changed files:"
6464 echo "$CHANGED_FILES"
@@ -273,20 +273,20 @@ jobs:
273273 - name : Check test results
274274 run : |
275275 # If doc-only, all tests should be skipped
276- if [ "${{ needs.doc_only_check.outputs.run_tests } }" == "false" ]; then
276+ if [ "${NEEDS_DOC_ONLY_CHECK_OUTPUTS_RUN_TESTS }" == "false" ]; then
277277 echo "Documentation-only changes detected, tests were skipped"
278278 exit 0
279279 fi
280280
281281 # Otherwise, check that build and all tests passed or were skipped
282- echo "Build result: ${{ needs.build_and_upload_maxtext_package.result } }"
283- echo "CPU tests: ${{ needs.maxtext_cpu_unit_tests.result } }"
284- echo "TPU tests: ${{ needs.maxtext_tpu_unit_tests.result } }"
285- echo "TPU integration: ${{ needs.maxtext_tpu_integration_tests.result } }"
286- echo "TPU pathways: ${{ needs.maxtext_tpu_pathways_unit_tests.result } }"
287- echo "TPU pathways integration: ${{ needs.maxtext_tpu_pathways_integration_tests.result } }"
288- echo "GPU tests: ${{ needs.maxtext_gpu_unit_tests.result } }"
289- echo "GPU integration: ${{ needs.maxtext_gpu_integration_tests.result } }"
282+ echo "Build result: ${NEEDS_BUILD_AND_UPLOAD_MAXTEXT_PACKAGE_RESULT }"
283+ echo "CPU tests: ${NEEDS_MAXTEXT_CPU_UNIT_TESTS_RESULT }"
284+ echo "TPU tests: ${NEEDS_MAXTEXT_TPU_UNIT_TESTS_RESULT }"
285+ echo "TPU integration: ${NEEDS_MAXTEXT_TPU_INTEGRATION_TESTS_RESULT }"
286+ echo "TPU pathways: ${NEEDS_MAXTEXT_TPU_PATHWAYS_UNIT_TESTS_RESULT }"
287+ echo "TPU pathways integration: ${NEEDS_MAXTEXT_TPU_PATHWAYS_INTEGRATION_TESTS_RESULT }"
288+ echo "GPU tests: ${NEEDS_MAXTEXT_GPU_UNIT_TESTS_RESULT }"
289+ echo "GPU integration: ${NEEDS_MAXTEXT_GPU_INTEGRATION_TESTS_RESULT }"
290290
291291 # Fail only if any job failed or was cancelled (skipped is OK)
292292 if [ "${{ contains(needs.*.result, 'failure') }}" == "true" ] || [ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]; then
@@ -295,6 +295,16 @@ jobs:
295295 fi
296296
297297 echo "All required tests passed successfully"
298+ env :
299+ NEEDS_DOC_ONLY_CHECK_OUTPUTS_RUN_TESTS : ${{ needs.doc_only_check.outputs.run_tests }}
300+ NEEDS_BUILD_AND_UPLOAD_MAXTEXT_PACKAGE_RESULT : ${{ needs.build_and_upload_maxtext_package.result }}
301+ NEEDS_MAXTEXT_CPU_UNIT_TESTS_RESULT : ${{ needs.maxtext_cpu_unit_tests.result }}
302+ NEEDS_MAXTEXT_TPU_UNIT_TESTS_RESULT : ${{ needs.maxtext_tpu_unit_tests.result }}
303+ NEEDS_MAXTEXT_TPU_INTEGRATION_TESTS_RESULT : ${{ needs.maxtext_tpu_integration_tests.result }}
304+ NEEDS_MAXTEXT_TPU_PATHWAYS_UNIT_TESTS_RESULT : ${{ needs.maxtext_tpu_pathways_unit_tests.result }}
305+ NEEDS_MAXTEXT_TPU_PATHWAYS_INTEGRATION_TESTS_RESULT : ${{ needs.maxtext_tpu_pathways_integration_tests.result }}
306+ NEEDS_MAXTEXT_GPU_UNIT_TESTS_RESULT : ${{ needs.maxtext_gpu_unit_tests.result }}
307+ NEEDS_MAXTEXT_GPU_INTEGRATION_TESTS_RESULT : ${{ needs.maxtext_gpu_integration_tests.result }}
298308
299309 all_notebooks_passed :
300310 name : All Notebooks Passed
@@ -304,14 +314,14 @@ jobs:
304314 steps :
305315 - name : Check notebooks results
306316 run : |
307- if [ "${{ needs.doc_only_check.outputs.run_notebooks } }" == "false" ]; then
317+ if [ "${NEEDS_DOC_ONLY_CHECK_OUTPUTS_RUN_NOTEBOOKS }" == "false" ]; then
308318 echo "Non-notebook changes detected, runs were skipped"
309319 exit 0
310320 fi
311321
312322 # Otherwise, check that build and notebooks run passed or were skipped
313- echo "Build result: ${{ needs.build_and_upload_maxtext_package.result } }"
314- echo "Jupyter Notebooks result: ${{ needs.maxtext_jupyter_notebooks.result } }"
323+ echo "Build result: ${NEEDS_BUILD_AND_UPLOAD_MAXTEXT_PACKAGE_RESULT }"
324+ echo "Jupyter Notebooks result: ${NEEDS_MAXTEXT_JUPYTER_NOTEBOOKS_RESULT }"
315325
316326 # Fail only if any job failed or was cancelled (skipped is OK)
317327 if [ "${{ contains(needs.*.result, 'failure') }}" == "true" ] || [ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]; then
@@ -320,6 +330,10 @@ jobs:
320330 fi
321331
322332 echo "All required notebooks passed successfully"
333+ env :
334+ NEEDS_DOC_ONLY_CHECK_OUTPUTS_RUN_NOTEBOOKS : ${{ needs.doc_only_check.outputs.run_notebooks }}
335+ NEEDS_BUILD_AND_UPLOAD_MAXTEXT_PACKAGE_RESULT : ${{ needs.build_and_upload_maxtext_package.result }}
336+ NEEDS_MAXTEXT_JUPYTER_NOTEBOOKS_RESULT : ${{ needs.maxtext_jupyter_notebooks.result }}
323337
324338 notify_failure :
325339 name : Notify failed build # creates an issue or modifies last open existing issue for failed build
0 commit comments