Repository navigation
[release-3.0] test(workloads): raise materialized-view wait timeout to 1s to fix flaky cleanup - #1274
Merged
Conversation
…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>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: dsx-ai-factory/run-ai/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Contributor
natasharomm
enabled auto-merge (squash)
September 30, 2026 09:42
noiyemini
approved these changes
Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
timeoutMillisWhenWaitingForViewincontrol-plane/workloads/pkg/services/api_test.gofrom 200ms to 1000ms.Why
Pods API testsAfterEachwaits forGetWorkloads(backed by a materialized view refreshed every 20ms) to reach 0 workloads. On loaded CI runners a singleREFRESH MATERIALIZED VIEW CONCURRENTLYcan exceed the 200ms budget, which caused 3 Release-lane failures onrelease-3.0on 2026-09-30 (runs 36665130662, 36690474521, 36692953474). None of the triggering commits touchedcontrol-plane/workloads.Eventuallyreturns 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/,gofmtgo test ./...incontrol-plane/workloads: not run locally (Docker unavailable); relying on CISummary by CodeRabbit
Cherry-picked from #1272
🤖 Generated with Claude Code