• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zhmcclient / zhmc-prometheus-exporter / test-1936
38%

Build:
DEFAULT BRANCH: master
Ran 05 Sep 2025 03:07PM UTC
Jobs 10
Files 7
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Sep 2025 03:05PM UTC coverage: 37.817% (+0.08%) from 37.733%
test-1936

push

github

andy-maier
Improved caching with a consolidated new resource cache

Details:

* Replaced the three existing caches:
  - ZHMCUsageCollector.uri2resource dict
  - ZHMCUsageCollector.resources dict
  - ResourceCache class
  with a single consolidated resource cache:
  - ResourceCache class
  This is a new implementation that optimizes the retrieval, storing
  and enablement of auto-update of resource objects to the minimum.

  Only resources for enabled metric groups and only for the target CPCs
  are retrieved. In order to detect whether resource URIs returned by
  the HMC metric service are for target CPCs, all of them are stored
  in the cache as well.

* This required changing several interfaces.

* Improved the handling of object access permissions that are
  missing. Right now, resources of metrics may be inaccessible,
  which causes their metrics not to be exported. However, the
  parent resources of accessible resources of metrics also must
  be accessible.

* Adjusted the testcases in test_all.py to the changed interfaces
  and new resource cache.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>

163 of 591 new or added lines in 2 files covered. (27.58%)

9 existing lines in 1 file now uncovered.

582 of 1539 relevant lines covered (37.82%)

3.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
84
42.33
4.79% zhmc_prometheus_exporter/zhmc_prometheus_exporter.py
344
28.25
5.39% zhmc_prometheus_exporter/_resource_cache.py

Uncovered Existing Lines

Lines Coverage ∆ File
9
42.33
4.79% zhmc_prometheus_exporter/zhmc_prometheus_exporter.py
Jobs
ID Job ID Ran Files Coverage
1 ubuntu-22.04,3.8,minimum - test-1936.1 05 Sep 2025 03:15PM UTC 7
34.72
GitHub Action Run
2 ubuntu-latest,3.13,minimum - test-1936.2 05 Sep 2025 03:15PM UTC 7
37.67
GitHub Action Run
3 ubuntu-latest,3.13,latest - test-1936.3 05 Sep 2025 03:15PM UTC 7
37.67
GitHub Action Run
4 ubuntu-latest,3.12,latest - test-1936.4 05 Sep 2025 03:15PM UTC 7
37.48
GitHub Action Run
5 ubuntu-22.04,3.8,latest - test-1936.5 05 Sep 2025 03:15PM UTC 7
34.72
GitHub Action Run
6 macos-latest,3.11,latest - test-1936.6 05 Sep 2025 03:15PM UTC 7
34.94
GitHub Action Run
7 windows-latest,3.8,minimum - test-1936.7 05 Sep 2025 03:15PM UTC 7
34.46
GitHub Action Run
8 macos-latest,3.8,latest - test-1936.8 05 Sep 2025 03:15PM UTC 7
34.72
GitHub Action Run
9 macos-latest,3.13,minimum - test-1936.9 05 Sep 2025 03:15PM UTC 7
37.67
GitHub Action Run
10 windows-latest,3.13,latest - test-1936.10 05 Sep 2025 03:15PM UTC 7
37.41
GitHub Action Run
Source Files on build test-1936
  • Tree
  • List 7
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fcf4ebf8 on github
  • Prev Build on master (#TEST-1935)
  • Next Build on master (#TEST-1940)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc