fix(nvca): keep termination queue error in status check#363
Open
mesutoezdil wants to merge 1 commit into
Open
Conversation
📝 WalkthroughWalkthrough
ChangesQueue error status
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/compute-plane-services/nvca/pkg/nvca/queue_manager.go`:
- Around line 452-455: Add regression coverage for SyncQueues covering the case
where termination queue pulling fails while creation pulling succeeds. Assert
that the queue manager remains non-OK after the queue-error merge, using the
existing test helpers and setup patterns for SyncQueues.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: e2440762-205e-441e-a612-803e6c451915
📒 Files selected for processing (1)
src/compute-plane-services/nvca/pkg/nvca/queue_manager.go
The creation queue call reassigned anyQueuePullError with :=, so a termination queue pull error was dropped and status could report OK when it should not. Added a mock queue error hook and a regression test that fails the termination queue pull while the creation queue pull succeeds, asserting status stays not OK. Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
mesutoezdil
force-pushed
the
mesutoezdil/fix/nvca-queue-pull-error-overwrite
branch
from
July 22, 2026 21:34
b5e303a to
c510ab8
Compare
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.
Why
A termination queue pull error was being dropped before the status check.
What changed
Kept the termination queue error instead of letting the creation queue call overwrite it. Added a regression test for this case.
Testing
go build, go vet, go test ./pkg/nvca all pass.
Closes #362
Summary by CodeRabbit
Summary by CodeRabbit
Bug Fixes
Tests