fix(tests): update for tempo + cadvisor/nvidia-exporter drift

- test_dashboard.py: tracing backend switched from jaeger to tempo
  in pipeline-performance.json; the test assertion was stale.
- test_compose_mounts.py: exempt cadvisor (privileged: true for
  host metrics) and nvidia-exporter (upstream dcgm-exporter with
  SYS_ADMIN + GPU runtime) from no-new-privileges, matching the
  existing pattern for promtail / zotero / notebooks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kert
2026-05-14 09:08:26 -04:00
parent 8149da543b
commit 8dd3f7570a
2 changed files with 3 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ class TestDashboard:
if "datasource" in panel:
ds_types.add(panel["datasource"]["type"])
assert "prometheus" in ds_types
assert "jaeger" in ds_types
assert "tempo" in ds_types
assert "loki" in ds_types
def test_tags(self):

View File

@@ -136,6 +136,8 @@ class TestSecurityOpts:
"docs", # static site
"promtail", # needs host log access
"cloudflared", # tunnel agent
"cadvisor", # privileged: true for host metrics
"nvidia-exporter", # upstream dcgm-exporter, GPU runtime + SYS_ADMIN
}
compose = _load_compose()
missing = []