Skip to content

ZO-4557: changes for https://github.com/ZeitOnline/vivi-deployment/pu… #111

ZO-4557: changes for https://github.com/ZeitOnline/vivi-deployment/pu…

ZO-4557: changes for https://github.com/ZeitOnline/vivi-deployment/pu… #111

GitHub Actions / Test Results failed Mar 12, 2024 in 0s

1 fail, 56 skipped, 2 677 pass in 8m 36s

    2 files      2 suites   8m 36s ⏱️
2 734 tests 2 677 ✅ 56 💤 1 ❌
2 763 runs  2 706 ✅ 56 💤 1 ❌

Results for commit 5094ac6.

Annotations

Check warning on line 0 in vivi.core.src.zeit.cms.tests.test_application.Prometheus

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_prometheus_metrics_are_exposed (vivi.core.src.zeit.cms.tests.test_application.Prometheus) failed

deployment/work/source/report.xml [took 0s]
Raw output
AttributeError: '_ExplicitBucketHistogramAggregation' object has no attribute '_bucket_counts'
Traceback (most recent call last):
  File "/home/runner/_work/_tool/Python/3.10.13/x64/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/home/runner/_work/_tool/Python/3.10.13/x64/lib/python3.10/unittest/case.py", line 591, in run
    self._callTestMethod(testMethod)
  File "/home/runner/_work/_tool/Python/3.10.13/x64/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
  File "/home/runner/_work/vivi/vivi/deployment/work/source/vivi/core/src/zeit/cms/tests/test_application.py", line 39, in test_prometheus_metrics_are_exposed
    check()
  File "/home/runner/_work/vivi/vivi/deployment/work/source/vivi/core/src/zeit/cms/tests/test_application.py", line 29, in check
    b.open('http://localhost/metrics')
  File "/home/runner/_work/vivi/vivi/core/src/zeit/cms/testing.py", line 991, in open
    return super().open(url, *args, **kw)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/zope/testbrowser/browser.py", line 252, in open
    self._processRequest(url, make_request)
  File "/home/runner/_work/vivi/vivi/core/src/zeit/cms/testing.py", line 1013, in _processRequest
    self._do_processRequest(url, make_request)
  File "/home/runner/_work/vivi/vivi/core/src/zeit/cms/testing.py", line 1023, in _do_processRequest
    resp = make_request(reqargs)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/zope/testbrowser/browser.py", line 249, in make_request
    return self.testapp.get(url, **args)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/webtest/app.py", line 324, in get
    return self.do_request(req, status=status,
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/zope/testbrowser/browser.py", line 92, in do_request
    response = super().do_request(req, status,
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/webtest/app.py", line 620, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/webob/request.py", line 1309, in send
    status, headers, app_iter, exc_info = self.call_application(
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/webob/request.py", line 1278, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/webtest/lint.py", line 196, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/runner/_work/vivi/vivi/core/src/zeit/cms/application.py", line 176, in __call__
    return super().__call__(environ, start_response)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/opentelemetry/instrumentation/wsgi/__init__.py", line 585, in __call__
    iterable = self.wsgi(environ, start_response)
  File "/home/runner/_work/vivi/vivi/core/src/zeit/cms/application.py", line 158, in __call__
    return self.metrics(environ, start_response)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/prometheus_client/exposition.py", line 128, in prometheus_app
    status, headers, output = _bake_output(registry, accept_header, accept_encoding_header, params, disable_compression)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/prometheus_client/exposition.py", line 104, in _bake_output
    output = encoder(registry)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/prometheus_client/exposition.py", line 253, in generate_latest
    for metric in registry.collect():
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/prometheus_client/registry.py", line 97, in collect
    yield from collector.collect()
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/opentelemetry/exporter/prometheus/__init__.py", line 161, in collect
    self._callback()
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/opentelemetry/sdk/metrics/_internal/export/__init__.py", line 333, in collect
    metrics = self._collect(self, timeout_millis=timeout_millis)
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/opentelemetry/sdk/metrics/_internal/measurement_consumer.py", line 126, in collect
    result = self._reader_storages[metric_reader].collect()
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/opentelemetry/sdk/metrics/_internal/metric_reader_storage.py", line 155, in collect
    data_points = view_instrument_match.collect(
  File "/home/runner/_work/vivi/vivi/deployment/work/app/lib/python3.10/site-packages/opentelemetry/sdk/metrics/_internal/_view_instrument_match.py", line 134, in collect
    data_point = aggregation.collect(
  File "/home/runner/_work/vivi/vivi/core/src/zeit/cms/otel_patch.py", line 24, in collect
    bucket_counts = self._bucket_counts
AttributeError: '_ExplicitBucketHistogramAggregation' object has no attribute '_bucket_counts'