(self)
| 26 | """Tests for Goodput monitoring and recording.""" |
| 27 | |
| 28 | def setUp(self): |
| 29 | super().setUp() |
| 30 | self.config = pyconfig.initialize( |
| 31 | [None, os.path.join(MAXTEXT_PKG_DIR, "configs", "base.yml")], |
| 32 | base_output_directory="gs://runner-maxtext-logs", |
| 33 | run_name="runner_test", |
| 34 | enable_checkpointing=False, |
| 35 | monitor_goodput=True, |
| 36 | enable_goodput_recording=True, |
| 37 | monitor_step_time_deviation=True, |
| 38 | ) |
| 39 | |
| 40 | @mock.patch("ml_goodput_measurement.goodput.GoodputRecorder.record_job_end_time") |
| 41 | @mock.patch("ml_goodput_measurement.goodput.GoodputRecorder.record_job_start_time") |
nothing calls this directly
no test coverage detected