Skip to content

Don't manipulate time in oximeter database usage tests#10405

Open
bnaecker wants to merge 1 commit intomainfrom
ben/fix-db-usage-flake
Open

Don't manipulate time in oximeter database usage tests#10405
bnaecker wants to merge 1 commit intomainfrom
ben/fix-db-usage-flake

Conversation

@bnaecker
Copy link
Copy Markdown
Collaborator

@bnaecker bnaecker commented May 7, 2026

  • The database usage tests paused and advanced time to ensure we trigger another query against the DB to compute usage. This interacts poorly with a timeout in the connection type for talking to ClickHouse. Tokio's test-utils allow pausing time, but when there is literally no other work to do, the runtime "auto-advances" time to the next pending timer. That happens to be our connection timeout, and so the tests fail. Instead, just lower the polling interval for this one test and live with it taking a few seconds.
  • Fix test failed in CI: omicron-clickhouse-admin::context::tests::test_database_usage #10398

- The database usage tests paused and advanced time to ensure we trigger
  another query against the DB to compute usage. This interacts poorly
  with a timeout in the connection type for talking to ClickHouse.
  Tokio's test-utils allow pausing time, but when there is literally no
  other work to do, the runtime "auto-advances" time to the next pending
  timer. That happens to be our connection timeout, and so the tests
  fail. Instead, just lower the polling interval for this one test and
  live with it taking a few seconds.
- Fix #10398
@bnaecker bnaecker requested a review from hawkw May 7, 2026 18:24
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.

test failed in CI: omicron-clickhouse-admin::context::tests::test_database_usage

1 participant