Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-02-03 Thread via GitHub
hgeraldino commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1477107060 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskTest.java: ## @@ -1994,53 +1616,6 @@ private void expectInitializeTask() { P

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-31 Thread via GitHub
gharris1727 commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1473603606 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskTest.java: ## @@ -1994,53 +1616,6 @@ private void expectInitializeTask() {

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-28 Thread via GitHub
hgeraldino commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1913670929 Thanks @gharris1727 for your thorough review. I've addressed most of yours (and @C0urante's) comments. One thing I didn't address was refactoring the `testErrorInRebalance*` tests, th

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-28 Thread via GitHub
hgeraldino commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1468904434 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskMockitoTest.java: ## @@ -0,0 +1,763 @@ +/* + * Licensed to the Apache Software Founda

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-28 Thread via GitHub
hgeraldino commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1468902115 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskMockitoTest.java: ## @@ -0,0 +1,763 @@ +/* + * Licensed to the Apache Software Founda

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-28 Thread via GitHub
hgeraldino commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1468901352 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskMockitoTest.java: ## @@ -0,0 +1,763 @@ +/* + * Licensed to the Apache Software Founda

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-28 Thread via GitHub
hgeraldino commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1468900996 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskMockitoTest.java: ## @@ -0,0 +1,763 @@ +/* + * Licensed to the Apache Software Founda

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-26 Thread via GitHub
hgeraldino commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1468126514 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskMockitoTest.java: ## @@ -0,0 +1,763 @@ +/* + * Licensed to the Apache Software Founda

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-22 Thread via GitHub
C0urante commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1462683025 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskMockitoTest.java: ## @@ -0,0 +1,763 @@ +/* + * Licensed to the Apache Software Foundati

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-22 Thread via GitHub
hgeraldino commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1462636635 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskMockitoTest.java: ## @@ -0,0 +1,763 @@ +/* + * Licensed to the Apache Software Founda

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-22 Thread via GitHub
C0urante commented on code in PR #14663: URL: https://github.com/apache/kafka/pull/14663#discussion_r1462026178 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskMockitoTest.java: ## @@ -0,0 +1,763 @@ +/* + * Licensed to the Apache Software Foundati

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-14 Thread via GitHub
hgeraldino commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1891034358 > > Hi @hgeraldino Thanks for taking on the migration! > > I understand the idea behind your refactor-then-deduplicate strategy, but I think the excessive duplication is making it di

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-11 Thread via GitHub
hgeraldino commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1887674876 > Hi @hgeraldino Thanks for taking on the migration! > > I understand the idea behind your refactor-then-deduplicate strategy, but I think the excessive duplication is making it

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-09 Thread via GitHub
gharris1727 commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1883616431 Hi @hgeraldino Thanks for taking on the migration! I understand the idea behind your refactor-then-deduplicate strategy, but I think the excessive duplication is making it diffi

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-08 Thread via GitHub
mimaison commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1880869214 It would be good to get @gharris1727 / @C0urante to take a look too -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and u

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2024-01-06 Thread via GitHub
hgeraldino commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1879789295 Ok here's the first batch which includes 7 migrated tests. There is a lot of code duplication as I tried to keep all the mocks local to each test, the expectation is that once a

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2023-12-05 Thread via GitHub
ijuma commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1840644028 I think 7-8 tests at a time (4-5 PRs overall) is probably a reasonable balance. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to Gi

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2023-11-11 Thread via GitHub
hgeraldino commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1806906866 One thing I'd like to know is if this approach of multiple bite-sized PRs seems reasonable or not. Future PRs might include refactor of more than one method, but I'll try my be

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2023-11-08 Thread via GitHub
mimaison commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1802170828 It's such a big file that doing it incrementally may make the reviews easier. That said a lot of changes should be mechanical and similar across all tests so we probably don't want to do

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2023-11-07 Thread via GitHub
hgeraldino commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1800971956 One thing I'd like to know is if this approach of multiple bite-sized PRs seems reasonable or not. Future PRs might include refactor of more than one method, but I'll try my be

Re: [PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2023-11-01 Thread via GitHub
divijvaidya commented on PR #14663: URL: https://github.com/apache/kafka/pull/14663#issuecomment-1788790638 @clolov would you like to review this? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to

[PR] KAFKA-14683 Migrate #testStartPaused to Mockito [kafka]

2023-10-29 Thread via GitHub
hgeraldino opened a new pull request, #14663: URL: https://github.com/apache/kafka/pull/14663 Instead of having a single big bang PR to migrate [WorkerSinkTaskTest](https://github.com/apache/kafka/blob/trunk/connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskTest.ja