dumps OnnxDiscrepancyCheck result on disc so they can be picked up later and gathered for a dashboard#2503
dumps OnnxDiscrepancyCheck result on disc so they can be picked up later and gathered for a dashboard#2503xadupre wants to merge 12 commits into
Conversation
|
@copilot test\cli\test_cli.py:173: in test_workflow_run_command_with_test_override |
Fixed in the latest commit. The test was patching |
|
@copilot test/cli/test_cli.py:177: in test_workflow_run_command_with_test_override |
…n discrepancy_check pass config
Fixed in the latest commit. The test assertion was missing |
|
@copilot test/cli/test_cli.py:244: in test_workflow_run_command_with_test_reuses_test_output_dir |
…_test_reuses_test_output_dir
Fixed in the latest commit — added |
Describe your changes
The pass OnnxDiscrepancyCheck is used to gather metrics on canary models. They need to be dumped to let the user see them in detail, the user can be a dashboard as well.
When
--testis active,add_discrepancy_check_passnow injectsmax_mae: 0.1andreport_output_dir(set to the run config'soutput_dir) into the discrepancy check pass configuration alongsidereference_model_path.Fixed test regressions in
test_workflow_run_command_with_test_overrideandtest_workflow_run_command_with_test_reuses_test_output_dir:mock_run.return_value = Nonesosave_discrepancy_check_resultsexits early at its null-guard check instead of attempting to serialize aMagicMockviajson.dumps.assert_called_once_withexpectation to includemax_maeandreport_output_dirin the expected discrepancy check pass config.Checklist before requesting a review
lintrunner -a(Optional) Issue link