Skip to content

[release-3.0] test(workloads): raise materialized-view wait timeout to 1s to fix flaky cleanup - #1274

Merged
natasharomm merged 1 commit into
release-3.0from
natasha/3-0-workloads-view-wait-timeout
Sep 30, 2026
Merged

natasharomm merged 1 commit into
release-3.0from
natasha/3-0-workloads-view-wait-timeout

Conversation

@natasharomm

Copy link
Copy Markdown
Contributor

Summary

  • Raise timeoutMillisWhenWaitingForView in control-plane/workloads/pkg/services/api_test.go from 200ms to 1000ms.

Why

Pods API tests AfterEach waits for GetWorkloads (backed by a materialized view refreshed every 20ms) to reach 0 workloads. On loaded CI runners a single REFRESH MATERIALIZED VIEW CONCURRENTLY can exceed the 200ms budget, which caused 3 Release-lane failures on release-3.0 on 2026-09-30 (runs 36665130662, 36690474521, 36692953474). None of the triggering commits touched control-plane/workloads.

Eventually returns as soon as the check passes, so green runs are not slowed down.

Slack thread: https://nvidia.slack.com/archives/C0BA5QD0ABH/p1790740557755539

Test plan

  • go vet ./pkg/services/, gofmt
  • go test ./... in control-plane/workloads: not run locally (Docker unavailable); relying on CI

Summary by CodeRabbit

  • Tests
    • Automated checks now allow more time for a view to become available, helping them complete reliably in slower test environments.
    • This update changes test timing only; it does not alter application behavior or add user-facing features.

Cherry-picked from #1272

🤖 Generated with Claude Code

…aky cleanup

The Pods API tests AfterEach waits for GetWorkloads (backed by a
materialized view refreshed every 20ms) to return 0 workloads. A 200ms
ceiling is too tight when a REFRESH MATERIALIZED VIEW CONCURRENTLY runs
slow on a loaded CI runner, causing repeated flakes on release-3.0.
Eventually returns as soon as the check passes, so green runs are
unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Natasha Romm <nromm@nvidia.com>
@natasharomm
natasharomm requested a review from a team as a code owner September 30, 2026 09:35
@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: dsx-ai-factory/run-ai/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 42037849-bf17-4074-a9e4-394bbaf5e96e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

@natasharomm
natasharomm enabled auto-merge (squash) September 30, 2026 09:42
@natasharomm
natasharomm merged commit 3ba9c15 into release-3.0 Sep 30, 2026
15 checks passed
@natasharomm
natasharomm deleted the natasha/3-0-workloads-view-wait-timeout branch September 30, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants