Skip to content

test(morpc): stabilize independent control backend test - #26189

Merged
XuPeng-SH merged 2 commits into
mainfrom
fix/26184-morpc-ci-flake
Jul 26, 2026
Merged

XuPeng-SH merged 2 commits into
mainfrom
fix/26184-morpc-ci-flake

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

Fixes #26184.

This keeps the integration coverage for the independent control-backend path while removing its reliance on a real 4ms socket timeout.

  • isolate the test with a per-test Unix socket;
  • establish the real stalled data request, then deterministically drive the existing timeout/probe branch;
  • retain assertions for independent control transport, draining, idle-GC protection, replacement generation, and the original request completion.

No production code path or configuration changes.

Validation:

  • targeted test: count=20 (0.336s)
  • targeted race test: race, count=10
  • pkg/common/morpc full package test
  • go build ./pkg/common/morpc/...
  • go vet ./pkg/common/morpc/...

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH
XuPeng-SH merged commit fef2b64 into main Jul 26, 2026
5 of 7 checks passed
@XuPeng-SH
XuPeng-SH deleted the fix/26184-morpc-ci-flake branch July 26, 2026 11:19
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…#26189)

Fixes matrixorigin#26184.

This keeps the integration coverage for the independent control-backend
path while removing its reliance on a real 4ms socket timeout.

- isolate the test with a per-test Unix socket;
- establish the real stalled data request, then deterministically drive
the existing timeout/probe branch;
- retain assertions for independent control transport, draining, idle-GC
protection, replacement generation, and the original request completion.

No production code path or configuration changes.

Validation:
- targeted test: count=20 (0.336s)
- targeted race test: race, count=10
- pkg/common/morpc full package test
- go build ./pkg/common/morpc/...
- go vet ./pkg/common/morpc/...
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…#26189)

Fixes matrixorigin#26184.

This keeps the integration coverage for the independent control-backend
path while removing its reliance on a real 4ms socket timeout.

- isolate the test with a per-test Unix socket;
- establish the real stalled data request, then deterministically drive
the existing timeout/probe branch;
- retain assertions for independent control transport, draining, idle-GC
protection, replacement generation, and the original request completion.

No production code path or configuration changes.

Validation:
- targeted test: count=20 (0.336s)
- targeted race test: race, count=10
- pkg/common/morpc full package test
- go build ./pkg/common/morpc/...
- go vet ./pkg/common/morpc/...
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…#26189)

Fixes matrixorigin#26184.

This keeps the integration coverage for the independent control-backend
path while removing its reliance on a real 4ms socket timeout.

- isolate the test with a per-test Unix socket;
- establish the real stalled data request, then deterministically drive
the existing timeout/probe branch;
- retain assertions for independent control transport, draining, idle-GC
protection, replacement generation, and the original request completion.

No production code path or configuration changes.

Validation:
- targeted test: count=20 (0.336s)
- targeted race test: race, count=10
- pkg/common/morpc full package test
- go build ./pkg/common/morpc/...
- go vet ./pkg/common/morpc/...

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: TestIndependentControlBackendPreservesSlowDataRequest is timing-sensitive in CI

2 participants