Closed esantorella closed 18 hours ago
This pull request was exported from Phabricator. Differential Revision: D66301697
Attention: Patch coverage is 96.66667%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 95.43%. Comparing base (
5d1e441
) to head (6d512ca
).
Files with missing lines | Patch % | Lines |
---|---|---|
ax/benchmark/benchmark_metric.py | 94.11% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
This pull request was exported from Phabricator. Differential Revision: D66301697
This pull request has been merged in facebook/Ax@095d7ed2b59716ec10e387b0705a7bd90547d869.
Summary: Context:
BenchmarkMetric.fetch_data
originally had a broad try/except block just because this the usual way to define metrics. The try/except is actually not needed at all; with benchmarking, there are no potentially-flaky RPCs and we completely understand what should happen when fetching data.BenchmarkMapMetric
has no try/except. The following cases are possible when fetching data:MetricFetchE
(error).fetch_data
should succeed.fetch_data
should form with an informative error.This PR:
BenchmarkMetric
andBenchmarkMapMetric
so that both return aMetricFetchE
when there is no metadata and do not have a try/exceptDifferential Revision: D66301697