Skip to content

refactor(inkless): extract Inkless tests from ReplicaManagerTest into standalone file#624

Merged
viktorsomogyi merged 4 commits into
mainfrom
jeqo/split-replica-manager-test
Jun 1, 2026
Merged

refactor(inkless): extract Inkless tests from ReplicaManagerTest into standalone file#624
viktorsomogyi merged 4 commits into
mainfrom
jeqo/split-replica-manager-test

Conversation

@jeqo

@jeqo jeqo commented May 29, 2026

Copy link
Copy Markdown
Contributor
  • 94+2 tests moved, reducing ReplicaManagerTest from ~11k to ~6.1k lines
  • Zero Inkless code left in the original file
  • CI glob Inkless still matches

@jeqo jeqo requested a review from Copilot May 29, 2026 14:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jeqo jeqo changed the base branch from jeqo/fix-replica-manager-test to main May 29, 2026 14:42
@jeqo jeqo changed the base branch from main to jeqo/fix-replica-manager-test May 29, 2026 14:43
@jeqo jeqo force-pushed the jeqo/fix-replica-manager-test branch from 3754fec to 154914c Compare May 29, 2026 15:05
@jeqo jeqo force-pushed the jeqo/split-replica-manager-test branch from 779a45c to b45cbfb Compare May 29, 2026 15:30
@jeqo jeqo requested a review from Copilot May 29, 2026 15:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@jeqo jeqo force-pushed the jeqo/split-replica-manager-test branch from 618b139 to 3830307 Compare May 29, 2026 18:53
Base automatically changed from jeqo/fix-replica-manager-test to main June 1, 2026 05:49
jeqo and others added 3 commits June 1, 2026 10:40
… standalone file

Move the @nested class Inkless (94 tests, ~5000 lines) into
ReplicaManagerInklessTest.scala as a top-level class with its own
setUp/tearDown. This reduces ReplicaManagerTest from ~11k to ~6k lines
and isolates Inkless test maintenance from upstream Kafka test churn.

CI glob *Inkless* matches the new class name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…gerInklessTest

Move testFetchFollowerAllowedForOlderClientsOnHybridDisklessPartition and
testFetchFromFollowerStillRequiresLeaderOnSwitchedPartition into the Inkless
test file with a simplified setupReplicaManagerWithMockedPurgatories helper.

This eliminates all Inkless-specific test code from ReplicaManagerTest.scala,
leaving only import-path differences from upstream Kafka.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add tests for every module with Inkless-modified source files:
- metadata: controller.*, controller.metrics.*, PartitionRegistrationTest, TopicsImageTest
- core: ReplicaManagerTest, KafkaApisTest, PartitionTest, DynamicBrokerConfigTest,
  DynamicConfigChangeTest, ReplicaFetcherThreadTest, BrokerMetadataPublisherTest,
  ControllerApisTest, ControllerConfigurationValidatorTest, DelayedFetchTest
- clients: RequestResponseTest, FlattenedIteratorTest
- storage: BrokerTopicMetricsTest, BrokerTopicStatsTest
- server: RequestConvertToJsonTest

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeqo jeqo force-pushed the jeqo/split-replica-manager-test branch from 3830307 to facfd6a Compare June 1, 2026 07:40
@jeqo jeqo marked this pull request as ready for review June 1, 2026 08:41
@jeqo jeqo requested a review from tvainika June 1, 2026 08:41
@viktorsomogyi viktorsomogyi self-requested a review June 1, 2026 10:17
Comment thread .github/workflows/inkless.yml Outdated
@jeqo jeqo requested a review from viktorsomogyi June 1, 2026 10:37
@viktorsomogyi viktorsomogyi merged commit 44c6f42 into main Jun 1, 2026
5 checks passed
@viktorsomogyi viktorsomogyi deleted the jeqo/split-replica-manager-test branch June 1, 2026 11:52
giuseppelillo pushed a commit that referenced this pull request Jun 4, 2026
… standalone file (#624)

Move the @nested class Inkless (94 tests, ~5000 lines) into
ReplicaManagerInklessTest.scala as a top-level class with its own
setUp/tearDown. This reduces ReplicaManagerTest from ~11k to ~6k lines
and isolates Inkless test maintenance from upstream Kafka test churn.

Move testFetchFollowerAllowedForOlderClientsOnHybridDisklessPartition and
testFetchFromFollowerStillRequiresLeaderOnSwitchedPartition into the Inkless
test file with a simplified setupReplicaManagerWithMockedPurgatories helper.
This eliminates all Inkless-specific test code from ReplicaManagerTest.scala,
leaving only import-path differences from upstream Kafka.

Add tests for every module with Inkless-modified source files:
- metadata: controller.*, controller.metrics.*, PartitionRegistrationTest, TopicsImageTest
- core: ReplicaManagerTest, KafkaApisTest, PartitionTest, DynamicBrokerConfigTest,
  DynamicConfigChangeTest, ReplicaFetcherThreadTest, BrokerMetadataPublisherTest,
  ControllerApisTest, ControllerConfigurationValidatorTest, DelayedFetchTest
- clients: RequestResponseTest, FlattenedIteratorTest
- storage: BrokerTopicMetricsTest, BrokerTopicStatsTest
- server: RequestConvertToJsonTest

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
gqmelo pushed a commit that referenced this pull request Jun 4, 2026
… standalone file (#624)

Move the @nested class Inkless (94 tests, ~5000 lines) into
ReplicaManagerInklessTest.scala as a top-level class with its own
setUp/tearDown. This reduces ReplicaManagerTest from ~11k to ~6k lines
and isolates Inkless test maintenance from upstream Kafka test churn.

Move testFetchFollowerAllowedForOlderClientsOnHybridDisklessPartition and
testFetchFromFollowerStillRequiresLeaderOnSwitchedPartition into the Inkless
test file with a simplified setupReplicaManagerWithMockedPurgatories helper.
This eliminates all Inkless-specific test code from ReplicaManagerTest.scala,
leaving only import-path differences from upstream Kafka.

Add tests for every module with Inkless-modified source files:
- metadata: controller.*, controller.metrics.*, PartitionRegistrationTest, TopicsImageTest
- core: ReplicaManagerTest, KafkaApisTest, PartitionTest, DynamicBrokerConfigTest,
  DynamicConfigChangeTest, ReplicaFetcherThreadTest, BrokerMetadataPublisherTest,
  ControllerApisTest, ControllerConfigurationValidatorTest, DelayedFetchTest
- clients: RequestResponseTest, FlattenedIteratorTest
- storage: BrokerTopicMetricsTest, BrokerTopicStatsTest
- server: RequestConvertToJsonTest

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

3 participants