Repository navigation
test: stabilize morpc filter and logservice retry cases - #27302
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
aptend
left a comment
There was a problem hiding this comment.
Deep-reviewed exact head 35f3c52. The MORPC test now synchronizes on actual filter execution before cancellation, the logservice retry test deterministically forces EADDRINUSE and verifies a later successful attempt, and the LocalFS regression exercises both buffered Write and streaming NewWriter across distinct filesystems with cleanup ordered correctly. No blocking issues found. The three targeted tests pass locally.
| cfg = getServiceTestConfig() | ||
| return cfg | ||
| } | ||
| if attempts == 2 { |
There was a problem hiding this comment.
This attempts is really twisted.
…#27302) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27264 matrixorigin#27268 matrixorigin#26272 ## What this PR does / why we need it: ## Summary - Stabilize `TestRequestCanBeFilter` by synchronizing on the request filter callback instead of relying on a 100ms timeout. - Make `TestNewServiceRetry` deterministic by reserving the Raft port to trigger `EADDRINUSE`, avoiding two concurrently running LogService instances. - Ensure file descriptor leak checking uses the successfully generated retry configuration. ## Testing - `go build` and `go vet` for `pkg/common/morpc` and `pkg/logservice` - Focused tests under normal mode and `-race -count=100` - Full `pkg/common/morpc` tests in normal and race modes - Full `pkg/logservice` tests - CI-equivalent logservice race suite: `-short -race -tags matrixone_test -p 1 -count=1 -timeout=40m` --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: aptend <[email protected]>
…#27302) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27264 matrixorigin#27268 matrixorigin#26272 ## What this PR does / why we need it: ## Summary - Stabilize `TestRequestCanBeFilter` by synchronizing on the request filter callback instead of relying on a 100ms timeout. - Make `TestNewServiceRetry` deterministic by reserving the Raft port to trigger `EADDRINUSE`, avoiding two concurrently running LogService instances. - Ensure file descriptor leak checking uses the successfully generated retry configuration. ## Testing - `go build` and `go vet` for `pkg/common/morpc` and `pkg/logservice` - Focused tests under normal mode and `-race -count=100` - Full `pkg/common/morpc` tests in normal and race modes - Full `pkg/logservice` tests - CI-equivalent logservice race suite: `-short -race -tags matrixone_test -p 1 -count=1 -timeout=40m` --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: aptend <[email protected]>
…#27302) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27264 matrixorigin#27268 matrixorigin#26272 ## What this PR does / why we need it: ## Summary - Stabilize `TestRequestCanBeFilter` by synchronizing on the request filter callback instead of relying on a 100ms timeout. - Make `TestNewServiceRetry` deterministic by reserving the Raft port to trigger `EADDRINUSE`, avoiding two concurrently running LogService instances. - Ensure file descriptor leak checking uses the successfully generated retry configuration. ## Testing - `go build` and `go vet` for `pkg/common/morpc` and `pkg/logservice` - Focused tests under normal mode and `-race -count=100` - Full `pkg/common/morpc` tests in normal and race modes - Full `pkg/logservice` tests - CI-equivalent logservice race suite: `-short -race -tags matrixone_test -p 1 -count=1 -timeout=40m` --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: aptend <[email protected]>
What type of PR is this?
Which issue(s) this PR fixes:
issue #27264 #27268 #26272
What this PR does / why we need it:
Summary
TestRequestCanBeFilterby synchronizing on the request filter callback instead ofrelying on a 100ms timeout.
TestNewServiceRetrydeterministic by reserving the Raft port to triggerEADDRINUSE,avoiding two concurrently running LogService instances.
Testing
go buildandgo vetforpkg/common/morpcandpkg/logservice-race -count=100pkg/common/morpctests in normal and race modespkg/logservicetests-short -race -tags matrixone_test -p 1 -count=1 -timeout=40m