fix(nvca): keep termination queue error in status check#363
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthrough
ChangesQueue error status
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 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
f770bd3 to
63900f2
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/compute-plane-services/nvca/pkg/queue/mock/mock.go (1)
41-44: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd individual Godoc comments for both exported fields.
Document each exported field with a comment beginning with its name, especially
FailReceiveErr, which currently has no dedicated comment.As per coding guidelines, exported Go symbols in
src/compute-plane-services/nvca/**/*.gorequire Godoc comments.Proposed documentation update
- // If set, ReceiveMessage returns FailReceiveErr for FailReceiveQueueURL. + // FailReceiveQueueURL is the queue URL for which ReceiveMessage should fail. FailReceiveQueueURL string + // FailReceiveErr is returned by ReceiveMessage for FailReceiveQueueURL. FailReceiveErr error🤖 Prompt for 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. In `@src/compute-plane-services/nvca/pkg/queue/mock/mock.go` around lines 41 - 44, Add separate Godoc comments for the exported fields FailReceiveQueueURL and FailReceiveErr in the mock configuration, with each comment beginning with its corresponding field name and describing its purpose.Source: Coding guidelines
🤖 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.
Nitpick comments:
In `@src/compute-plane-services/nvca/pkg/queue/mock/mock.go`:
- Around line 41-44: Add separate Godoc comments for the exported fields
FailReceiveQueueURL and FailReceiveErr in the mock configuration, with each
comment beginning with its corresponding field name and describing its purpose.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: c57bd701-d383-4951-bd8a-577f1dd3eb52
📒 Files selected for processing (3)
src/compute-plane-services/nvca/pkg/nvca/queue_manager.gosrc/compute-plane-services/nvca/pkg/nvca/queue_manager_test.gosrc/compute-plane-services/nvca/pkg/queue/mock/mock.go
🚧 Files skipped from review as they are similar to previous changes (2)
- src/compute-plane-services/nvca/pkg/nvca/queue_manager_test.go
- src/compute-plane-services/nvca/pkg/nvca/queue_manager.go
|
@Max-NV @nvjmcnamee could you take a look when you get a chance? Thanks! |
63900f2 to
d108d3d
Compare
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/queue/mock/mock.go`:
- Around line 41-44: Add Godoc comments for both exported fields
FailReceiveQueueURL and FailReceiveErr in the mock queue configuration, ensuring
each comment clearly begins with its corresponding field name and documents its
purpose.
🪄 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: 5591fbf4-0f05-444f-a7ee-96ebaad7e092
📒 Files selected for processing (3)
src/compute-plane-services/nvca/pkg/nvca/queue_manager.gosrc/compute-plane-services/nvca/pkg/nvca/queue_manager_test.gosrc/compute-plane-services/nvca/pkg/queue/mock/mock.go
🚧 Files skipped from review as they are similar to previous changes (2)
- src/compute-plane-services/nvca/pkg/nvca/queue_manager.go
- src/compute-plane-services/nvca/pkg/nvca/queue_manager_test.go
d108d3d to
ae81725
Compare
2073e37 to
2c686bc
Compare
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>
9eaf866 to
596c6ce
Compare
A termination queue pull error was being dropped before the status check.
Kept the termination queue error instead of letting the creation queue call overwrite it. Added a regression test for this case.
Closes #362
Summary by CodeRabbit
Summary by CodeRabbit
Bug Fixes
Tests
Chores