Skip to content

device-health-oracle: add interface_counters activation criterion - #3535

Merged
nikw9944 merged 4 commits into
mainfrom
nikw9944/doublezero-2671
Apr 16, 2026
Merged

device-health-oracle: add interface_counters activation criterion#3535
nikw9944 merged 4 commits into
mainfrom
nikw9944/doublezero-2671

Conversation

@nikw9944

@nikw9944 nikw9944 commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Related: RFC 12 — Network Provisioning

Testing Verification

  • All device-health-oracle unit tests pass (34 tests), including 8 new tests covering the InterfaceCountersCriterion and InterfaceCountersCoverage methods
  • Tests cover: pass/fail scenarios, ClickHouse errors, missing burn-in context, zero-length burn-in, provisioning vs. drained start time selection, correct table/column names in queries, database name quoting

@nikw9944 nikw9944 changed the title device-health-oracle: add interface_counters activation criterion device-health-oracle: add metrics activation criterion Apr 15, 2026
@nikw9944
nikw9944 force-pushed the nikw9944/doublezero-2671 branch from a3325d1 to 6d475fa Compare April 15, 2026 19:19
@nikw9944
nikw9944 marked this pull request as ready for review April 15, 2026 19:25
@nikw9944
nikw9944 requested a review from martinsander00 April 15, 2026 19:25
@nikw9944 nikw9944 changed the title device-health-oracle: add metrics activation criterion device-health-oracle: add interface_counters activation criterion Apr 15, 2026
Comment thread controlplane/device-health-oracle/cmd/device-health-oracle/main.go Outdated
Comment thread controlplane/device-health-oracle/internal/worker/clickhouse.go Outdated
)

Add InterfaceCountersCriterion that verifies pending devices have at least
1 record per minute in the ClickHouse fact_dz_device_interface_counters
table throughout the burn-in period. This ensures devices are reporting
interface telemetry data before they can advance to ReadyForLinks.
@nikw9944
nikw9944 force-pushed the nikw9944/doublezero-2671 branch from 45699fa to 938575a Compare April 16, 2026 14:50
@nikw9944
nikw9944 enabled auto-merge (squash) April 16, 2026 14:50
@nikw9944
nikw9944 merged commit bdb1398 into main Apr 16, 2026
42 of 81 checks passed
@nikw9944
nikw9944 deleted the nikw9944/doublezero-2671 branch April 16, 2026 18:18
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.

device-health-oracle: Add activation criterion: a pending device has <burn-in slots> of data in the ClickHouse fact_dz_device_interface_counters table

2 participants