@@ -199,6 +199,17 @@ jobs:
199199 is_scheduled_run : ${{ github.event_name == 'schedule' }}
200200 maxtext_sha : ${{ needs.build_and_upload_maxtext_package.outputs.maxtext_sha }}
201201
202+ maxtext_cpu_torch_reference_tests :
203+ name : cpu-torch-reference tests
204+ needs : [build_and_upload_maxtext_package]
205+ if : needs.analyze_code_changes.outputs.run_tests == 'true'
206+ uses : ./.github/workflows/run_tests_coordinator.yml
207+ with :
208+ flavor : cpu-torch-reference
209+ base_image : maxtext-unit-test-tpu:py312
210+ is_scheduled_run : ${{ github.event_name == 'schedule' }}
211+ maxtext_sha : ${{ needs.build_and_upload_maxtext_package.outputs.maxtext_sha }}
212+
202213 tpu7x-tests :
203214 name : TPU7X tests
204215 needs : [build_and_upload_maxtext_package, gate_test_run]
@@ -284,7 +295,7 @@ jobs:
284295
285296 all_tests_passed :
286297 name : All Required Tests Passed
287- needs : [build_and_upload_maxtext_package, gate_test_run, tpu-tests, tpu7x-tests, gpu-tests, cpu-tests, maxtext_tpu_pathways_unit_tests, maxtext_tpu_pathways_integration_tests, code_quality_check, docs_build_check]
298+ needs : [build_and_upload_maxtext_package, gate_test_run, tpu-tests, tpu7x-tests, gpu-tests, cpu-tests, maxtext_cpu_torch_reference_tests, maxtext_tpu_pathways_unit_tests, maxtext_tpu_pathways_integration_tests, code_quality_check, docs_build_check]
288299 if : always()
289300 runs-on : ubuntu-latest
290301 steps :
@@ -297,6 +308,7 @@ jobs:
297308 echo "Gate result: ${NEEDS_GATE_TEST_RUN_RESULT}"
298309 echo "TPU Tests (Matrix) result: ${NEEDS_TPU_TESTS_RESULT}"
299310 echo "TPU7X Tests (Matrix) result: ${NEEDS_TPU7X_TESTS_RESULT}"
311+ echo "CPU torch reference tests result: ${NEEDS_MAXTEXT_CPU_TORCH_REFERENCE_TESTS_RESULT}"
300312 echo "GPU Tests (Matrix) result: ${NEEDS_GPU_TESTS_RESULT}"
301313 echo "CPU Tests (Matrix) result: ${NEEDS_CPU_TESTS_RESULT}"
302314 echo "Pathways Unit result: ${NEEDS_MAXTEXT_TPU_PATHWAYS_UNIT_TESTS_RESULT}"
@@ -317,6 +329,7 @@ jobs:
317329 NEEDS_CPU_TESTS_RESULT : ${{ needs.cpu-tests.result }}
318330 NEEDS_TPU_TESTS_RESULT : ${{ needs.tpu-tests.result }}
319331 NEEDS_TPU7X_TESTS_RESULT : ${{ needs.tpu7x-tests.result }}
332+ NEEDS_MAXTEXT_CPU_TORCH_REFERENCE_TESTS_RESULT : ${{ needs.maxtext_cpu_torch_reference_tests.result }}
320333 NEEDS_GPU_TESTS_RESULT : ${{ needs.gpu-tests.result }}
321334 NEEDS_MAXTEXT_TPU_PATHWAYS_UNIT_TESTS_RESULT : ${{ needs.maxtext_tpu_pathways_unit_tests.result }}
322335 NEEDS_MAXTEXT_TPU_PATHWAYS_INTEGRATION_TESTS_RESULT : ${{ needs.maxtext_tpu_pathways_integration_tests.result }}
@@ -352,7 +365,7 @@ jobs:
352365
353366 notify_failure :
354367 name : Notify failed build # creates an issue or modifies last open existing issue for failed build
355- needs : [gate_test_run, tpu-tests, tpu7x-tests, gpu-tests, cpu-tests, maxtext_jupyter_notebooks, maxtext_tpu_pathways_unit_tests, maxtext_tpu_pathways_integration_tests, code_quality_check, docs_build_check]
368+ needs : [gate_test_run, tpu-tests, tpu7x-tests, gpu-tests, cpu-tests, maxtext_jupyter_notebooks, maxtext_cpu_torch_reference_tests, maxtext_tpu_pathways_unit_tests, maxtext_tpu_pathways_integration_tests, code_quality_check, docs_build_check]
356369 if : ${{ always() }}
357370 runs-on : ubuntu-latest
358371 permissions :
@@ -366,7 +379,7 @@ jobs:
366379
367380 investigate_failure :
368381 name : Investigate failed build # investigates failure of scheduled run and comments on tracking issue
369- needs : [gate_test_run, tpu-tests, tpu7x-tests, gpu-tests, cpu-tests, maxtext_jupyter_notebooks, maxtext_tpu_pathways_unit_tests, maxtext_tpu_pathways_integration_tests, code_quality_check, docs_build_check, notify_failure]
382+ needs : [gate_test_run, tpu-tests, tpu7x-tests, gpu-tests, cpu-tests, maxtext_jupyter_notebooks, maxtext_cpu_torch_reference_tests, maxtext_tpu_pathways_unit_tests, maxtext_tpu_pathways_integration_tests, code_quality_check, docs_build_check, notify_failure]
370383 if : ${{ always() && contains(needs.*.result, 'failure') && github.event_name == 'schedule' }}
371384 uses : ./.github/workflows/gemini_investigate.yml
372385 permissions :
0 commit comments