checkup 0.2.6__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.
Files changed (23) hide show
  1. {checkup-0.2.6 → checkup-0.2.7}/PKG-INFO +1 -1
  2. {checkup-0.2.6 → checkup-0.2.7}/pyproject.toml +1 -1
  3. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/hub.py +24 -5
  4. {checkup-0.2.6 → checkup-0.2.7}/README.md +0 -0
  5. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/__init__.py +0 -0
  6. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/config.py +0 -0
  7. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/errors.py +0 -0
  8. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/executor.py +0 -0
  9. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/graph.py +0 -0
  10. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/materializers/__init__.py +0 -0
  11. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/materializers/base.py +0 -0
  12. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/materializers/console.py +0 -0
  13. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/materializers/csv_file.py +0 -0
  14. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/materializers/database.py +0 -0
  15. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/materializers/html_report.py +0 -0
  16. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/metric.py +0 -0
  17. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/provider.py +0 -0
  18. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/providers/__init__.py +0 -0
  19. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/providers/tags.py +0 -0
  20. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/templates/metrics_report.html +0 -0
  21. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/types.py +0 -0
  22. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/utils.py +0 -0
  23. {checkup-0.2.6 → checkup-0.2.7}/src/checkup/validators.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: checkup
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Add your description here
5
5
  Author: Jan Vanbuel
6
6
  Author-email: Jan Vanbuel <jan.vanbuel@ond.vlaanderen.be>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "checkup"
3
- version = "0.2.6"
3
+ version = "0.2.7"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Jan Vanbuel", email = "jan.vanbuel@ond.vlaanderen.be" }]
@@ -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
- logger.info(
198
- "Measurement complete: %d metrics calculated, %d errors",
199
- len(all_metrics),
200
- len(all_errors),
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