Repository navigation
fix(test): remove unused CDC transaction helper - #28548
Closed
gouhongshen wants to merge 0 commit into
Closed
gouhongshen wants to merge 0 commit into
gouhongshen wants to merge 0 commit into
Conversation
1 task done
3 of 7 tasks
Contributor
Author
|
Workflow attempt 2 has completed and failed. The original attempt 1 |
This was referenced Sep 9, 2026
Closed
gouhongshen
force-pushed
the
agent/issue-28546-a18658ba
branch
from
September 9, 2026 23:28
19b1c00 to
7c643f4
Compare
This branch was previously deployed
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.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #28546
What this PR does / why we need it:
Root cause
pkg/tests/issues/issue_27666_test.goretainedexecInternalTxnSQLafter commit7f173b4d524changed its only call site toexecInternalTxnSQLWithAffectedRowsso the CDC race fixture could record affected rows. The wrapper had no callers and the arm64 SCAunusedanalyzer rejected the package.Changes
execInternalTxnSQLwrapper.execInternalTxnSQLWithAffectedRowsas the single implementation and active caller.Issue-to-test proof
TestCDCRaceTxnunit test exercises the active transaction fixture across success, startup failure, statement failure, partial initialization, commit failure, cancellation, repeated joins, and cleanup; the existingTestIssue27666CDCWatermarkWriteSerializesWithDropregression exercises bothdrop_winsandwriter_winstwo-CN orderings and asserts zero residual task and watermark rows.unused.Validation
make cgo NATIVE_BUILD_JOBS=4— pass on macOS arm64; native headers and libraries generated with repository provenance..agents/skills/mo-dev/scripts/mo-cgo-test -list '^(TestCDCRaceTxn|TestCDCWaiterProbe|TestIssue27666CDCWatermarkWriteSerializesWithDrop)$' ./pkg/tests/issues— selected all three tests..agents/skills/mo-dev/scripts/mo-cgo-test -v -count=1 -timeout=120s -run '^(TestCDCRaceTxn|TestCDCWaiterProbe)$' ./pkg/tests/issues— pass..agents/skills/mo-dev/scripts/mo-cgo-test -v -count=1 -timeout=240s -run '^TestIssue27666CDCWatermarkWriteSerializesWithDrop$' ./pkg/tests/issues— pass; both subtests pass.CGO_CFLAGS="-I$PWD/cgo -I$PWD/thirdparties/install/include" CGO_LDFLAGS="-L$PWD/thirdparties/install/lib" golangci-lint run -v --concurrency 1 -c .golangci.yml ./pkg/tests/issues— pass; 0 issues.git diff --check— pass.Residual risks
The local checks ran on macOS arm64; the reported failure is from Ubuntu arm64 CI, so the upstream CI SCA job remains the platform-specific confirmation. The diff removes only an unreferenced test helper and has no runtime or compatibility surface.