Skip to content

refactor(app): read raw containers for metrics and reuse the shared sleep - #1552

Merged
scttbnsn merged 2 commits into
dev/v1.8from
refactor/v1.8-health-batch
Nov 2, 2026
Merged

scttbnsn merged 2 commits into
dev/v1.8from
refactor/v1.8-health-batch

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Code health for the final 1.8 RC.

  • DR-88: the Prometheus gauge reads getContainersRaw() instead of getContainers(), skipping the clone and env redaction. Labels never include env and flatten doesn't mutate its input, so the metrics are identical. The fleet benchmark wasn't run.
  • DR-17: the Docker trigger's two health-gate polls use the shared abort-aware sleep.

DR-16, DR-18 and DR-19 had already landed. Push gate passed.

🔧 Changed rebuildContainerGaugeFromStore to read containers through getContainersRaw(). Updated the metrics tests to use the raw-container API.

🔧 Changed both health-gate polling waits in waitForContainerHealthy to use the shared sleep helper.

  • The fleet benchmark was not run.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 3ac05d4 and c004f63.

Files selected for processing: 4
  • app/prometheus/container.test.ts
  • app/prometheus/container.ts
  • app/prometheus/exposition.test.ts
  • app/triggers/providers/docker/Docker.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

The container gauge rebuild now reads containers through getContainersRaw, and related tests use that method. Docker health polling now uses the shared sleep helper for both waits.

Change: Refactor

Merge Risk: Minimal · up to c004f

No actionable merge-blocking risk was identified in the reviewed changes.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn merged commit 5b23bcd into dev/v1.8 Nov 2, 2026
33 checks passed
@scttbnsn
scttbnsn deleted the refactor/v1.8-health-batch branch November 2, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant