Skip to content

chore(tests): retire obsolete TCP integration fixtures - #494

Open
yordis wants to merge 1 commit into
yordis/chore-migrate-core-tests-grpcfrom
yordis/chore-retire-core-tcp-tests
Open

yordis wants to merge 1 commit into
yordis/chore-migrate-core-tests-grpcfrom
yordis/chore-retire-core-tcp-tests

Conversation

@yordis

@yordis yordis commented Sep 12, 2026

Copy link
Copy Markdown
Member
  • Removes integration fixtures that only exercised the retired transport.

@yordis
yordis requested a review from a team as a code owner September 12, 2026 23:22
@cursor

cursor Bot commented Sep 12, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Test-only deletions with no runtime behavior changes; main risk is reduced regression coverage for retired TCP paths unless equivalent tests exist elsewhere.

Overview
Deletes a large batch of test-only fixtures that targeted the retired TCP client transport and related integration scenarios—no production code changes.

Removed coverage includes TCP connection/dispatcher behavior (TcpClientDispatcherTests, TcpConnectionManagerTests), low-level TCP/SSL connection lifecycle tests, certificate chain handshake checks, cluster integration for leader election with unindexed data, and the copying_metadata StreamMetadata copy tests. Some narrower TCP tests (e.g. core_tcp_package, SSL plugin fixtures) remain in the tree.

Reviewed by Cursor Bugbot for commit c0537ba. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 2fc1a091-d7fc-4414-9e7b-ce9689f106bd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: d60a3deb-5238-4344-bf3a-d1e87e64a096

📥 Commits

Reviewing files that changed from the base of the PR and between d9fd258 and 2d332c1.

📒 Files selected for processing (8)
  • src/EventStore.Core.Tests/Integration/when_node_becomes_leader_with_unindexed_data.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/TcpClientDispatcherTests.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionManagerTests.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionSslTests.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionTests.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/when_invalid_data_is_sent_over_tcp.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/with_intermediate_certificates.cs
  • src/EventStore.Core.Tests/copying_metadata.cs
💤 Files with no reviewable changes (8)
  • src/EventStore.Core.Tests/Services/Transport/Tcp/TcpClientDispatcherTests.cs
  • src/EventStore.Core.Tests/copying_metadata.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionSslTests.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/when_invalid_data_is_sent_over_tcp.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/with_intermediate_certificates.cs
  • src/EventStore.Core.Tests/Integration/when_node_becomes_leader_with_unindexed_data.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionTests.cs
  • src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionManagerTests.cs

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The pull request deletes eight test files. The removed tests covered cluster leader changes, TCP transport behavior, certificate handshakes, and StreamMetadata copying.

Changes

Cluster integration test removal

Layer / File(s) Summary
Leader transition coverage removal
src/EventStore.Core.Tests/Integration/when_node_becomes_leader_with_unindexed_data.cs
Removes the cluster test for leader changes, quorum timeouts, recovery, replication, and event revision checks.

TCP test removal

Layer / File(s) Summary
TCP message dispatch coverage removal
src/EventStore.Core.Tests/Services/Transport/Tcp/TcpClientDispatcherTests.cs
Removes tests for V2 client message wrapping and scavenge response handling.
TCP connection and certificate coverage removal
src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionManagerTests.cs, src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionSslTests.cs, src/EventStore.Core.Tests/Services/Transport/Tcp/TcpConnectionTests.cs, src/EventStore.Core.Tests/Services/Transport/Tcp/when_invalid_data_is_sent_over_tcp.cs, src/EventStore.Core.Tests/Services/Transport/Tcp/with_intermediate_certificates.cs
Removes tests for connection queues, closure and disposal, invalid TCP data, and intermediate-certificate handshakes.

Metadata test removal

Layer / File(s) Summary
Metadata copying coverage removal
src/EventStore.Core.Tests/copying_metadata.cs
Removes tests for copying empty and populated metadata and mutating copied metadata.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 99892

No concrete merge-blocking risk remains established for this fixture-removal change.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately identifies the primary change: removal of obsolete TCP integration test fixtures. It is concise and specific, although it does not mention the additional non-TCP test deletions.
Description check ✅ Passed The description directly relates to the changes by stating that obsolete transport integration fixtures were removed.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch yordis/chore-retire-core-tcp-tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit hops through deleted tests
The cluster paths grow quiet
TCP echoes fade away
Metadata leaves no footprints
Eight files rest beneath the moon

Comment @coderabbitai help to get the list of available commands.

@yordis
yordis added this pull request to stack #500 September 12, 2026 23:22
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from bf237a2 to 87a926e Compare September 13, 2026 00:15
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch 2 times, most recently from 76309a0 to 60eb376 Compare September 13, 2026 00:33
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch 2 times, most recently from 104f85f to eb369f6 Compare September 13, 2026 00:58
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 60eb376 to 59514f1 Compare September 13, 2026 00:58
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from eb369f6 to 0339e19 Compare September 13, 2026 01:16
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 59514f1 to 059ca6b Compare September 13, 2026 01:16
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from 0339e19 to a8d6a9b Compare September 13, 2026 01:31
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 059ca6b to 9cc1112 Compare September 13, 2026 01:31
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from a8d6a9b to d770071 Compare September 13, 2026 01:46
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 9cc1112 to 0e1e63e Compare September 13, 2026 01:46
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from d770071 to ed044dd Compare September 13, 2026 02:04
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch 2 times, most recently from 104f2a6 to d45ae37 Compare September 13, 2026 02:29
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from ed044dd to 94936ff Compare September 13, 2026 02:29
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from d45ae37 to 9739ad5 Compare September 13, 2026 02:59
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from 94936ff to 6912f13 Compare September 13, 2026 02:59
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 9739ad5 to d499103 Compare September 13, 2026 03:14
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from 6912f13 to a8f30b3 Compare September 13, 2026 03:14
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from d499103 to d5dc2ee Compare September 13, 2026 03:46
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from 7b55ead to 5fe12cd Compare September 13, 2026 04:23
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from d5dc2ee to 183d819 Compare September 13, 2026 04:23
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from 5fe12cd to a9a13e7 Compare September 13, 2026 06:04
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 183d819 to 2c805a1 Compare September 13, 2026 06:04
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from a9a13e7 to d9fd258 Compare September 13, 2026 18:21
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 2c805a1 to 2d332c1 Compare September 13, 2026 18:21
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from d9fd258 to 559f3ec Compare September 13, 2026 21:00
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 2d332c1 to 9989238 Compare September 13, 2026 21:00
@yordis
yordis removed this pull request from stack #500 September 17, 2026 01:12
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from 559f3ec to dd5fc84 Compare September 17, 2026 01:14
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 9989238 to a173352 Compare September 17, 2026 01:14
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from dd5fc84 to fb17dce Compare September 17, 2026 01:23
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch 2 times, most recently from 0e43b8c to a8f05de Compare September 17, 2026 02:01
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from fb17dce to 1a5aa8b Compare September 17, 2026 02:01
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from a8f05de to a25e23b Compare September 17, 2026 02:37
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch 2 times, most recently from 646e684 to 7f19ddc Compare September 17, 2026 03:26
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from a25e23b to 313e9a7 Compare September 17, 2026 03:26
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from 7f19ddc to be1cbb9 Compare September 17, 2026 04:25
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch 7 times, most recently from 0ed157d to 8a8a64e Compare September 18, 2026 00:49
@yordis
yordis force-pushed the yordis/chore-migrate-core-tests-grpc branch from 7e67dbf to 67fd15e Compare September 18, 2026 00:49
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
@yordis
yordis force-pushed the yordis/chore-retire-core-tcp-tests branch from 8a8a64e to c0537ba Compare September 18, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant