checkup 0.2.5__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {checkup-0.2.5 → checkup-0.2.7}/PKG-INFO +1 -1
- {checkup-0.2.5 → checkup-0.2.7}/pyproject.toml +1 -1
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/hub.py +24 -5
- {checkup-0.2.5 → checkup-0.2.7}/README.md +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/__init__.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/config.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/errors.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/executor.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/graph.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/materializers/__init__.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/materializers/base.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/materializers/console.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/materializers/csv_file.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/materializers/database.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/materializers/html_report.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/metric.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/provider.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/providers/__init__.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/providers/tags.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/templates/metrics_report.html +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/types.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/utils.py +0 -0
- {checkup-0.2.5 → checkup-0.2.7}/src/checkup/validators.py +0 -0
|
@@ -194,11 +194,30 @@ class CheckHub:
|
|
|
194
194
|
logger.debug("Provider set failure details:", exc_info=True)
|
|
195
195
|
all_errors.append((ps, e))
|
|
196
196
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
197
|
+
if all_errors:
|
|
198
|
+
failed_contexts = []
|
|
199
|
+
for ps, _ in all_errors:
|
|
200
|
+
tags = {
|
|
201
|
+
k: v
|
|
202
|
+
for p in ps
|
|
203
|
+
if p.is_tag_provider()
|
|
204
|
+
for k, v in p.provide().items()
|
|
205
|
+
}
|
|
206
|
+
failed_contexts.append(
|
|
207
|
+
tags if tags else {"providers": [p.name for p in ps]}
|
|
208
|
+
)
|
|
209
|
+
failed_contexts_str = "\n ".join(str(ctx) for ctx in failed_contexts)
|
|
210
|
+
logger.info(
|
|
211
|
+
"Measurement complete: %d metrics calculated, %d failed contexts:\n %s",
|
|
212
|
+
len(all_metrics),
|
|
213
|
+
len(all_errors),
|
|
214
|
+
failed_contexts_str,
|
|
215
|
+
)
|
|
216
|
+
else:
|
|
217
|
+
logger.info(
|
|
218
|
+
"Measurement complete: %d metrics calculated",
|
|
219
|
+
len(all_metrics),
|
|
220
|
+
)
|
|
202
221
|
return MeasurementResult(
|
|
203
222
|
metrics=all_metrics,
|
|
204
223
|
direct_metric_names=direct_metric_names,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|