You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "databird07 (via GitHub)" <gi...@apache.org> on 2026/10/16 04:10:10 UTC

[PR] test(utilities): use pairwise parameter matrices in TestHoodieDeltaStreamer and SchemaEvolutionQuick [hudi]

databird07 opened a new pull request, #20359:
URL: https://github.com/apache/hudi/pull/20359

   ### Describe the issue this Pull Request addresses
   
   `TestHoodieDeltaStreamer` (~1860s) and `TestHoodieDeltaStreamerSchemaEvolutionQuick` (~410s) are the most expensive classes in hudi-utilities CI. Most of their cost is full-factorial parameter matrices whose rows repeat behaviour that other rows already cover.
   
   ### Summary and Changelog
   
   - `testLogicalTypesWithJsonSource`: 16 -> 8 rows, using an even-parity half fraction, so every pair of factor values still runs together.
   - `testCOWLogicalRepair` / `testMORLogicalRepair`: drop the v6/v8 "reconcile with verdict" rows. The reconcile path doesn't branch on table version and still runs on the current version.
   - `testUpsertsCOWContinuousMode`: drop SPARK x v8. v8 still runs with AVRO records, and all combinations still run on the current version.
   - SchemaEvolutionQuick: remove an exact duplicate MOR row, halve `testReorderingColumn` the same way, and remove one row that differs only in `rowWriterEnable`, which has no effect in these upsert-only tests.
   - No test bodies, waits or polling intervals change. Table versions 6, 8, 9 and 10 and both COW and MOR are still exercised.
   
   ### Impact
   
   Test-only. DeltaStreamer 198 -> 185 invocations (full class 1437s -> 1284s). SchemaEvolutionQuick 52 -> 39 invocations, median 268s -> 213s over 20 runs. JaCoCo shows no lost lines at class level. Measured locally on JDK 17 with 4 pinned CPUs and JaCoCo on; full numbers are in the commit message.
   
   ### Risk Level
   
   low. Only parameter rows are removed. The one tradeoff (no Spark-record StreamSync write to a v8 table) is called out in the commit message.
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable
   


-- 
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 the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(utilities): use pairwise parameter matrices in TestHoodieDeltaStreamer and SchemaEvolutionQuick [hudi]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #20359:
URL: https://github.com/apache/hudi/pull/20359#issuecomment-6208534100

   ## [Codecov](https://app.codecov.io/gh/apache/hudi/pull/20359?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 80.63%. Comparing base ([`e9da226`](https://app.codecov.io/gh/apache/hudi/commit/e9da226db3a90747cc51d13fec56ebd1704c1699?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`5d82c03`](https://app.codecov.io/gh/apache/hudi/commit/5d82c035e33f0c29979ac01ab45ae68dd130091d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 18 commits behind head on master.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #20359      +/-   ##
   ============================================
   - Coverage     80.70%   80.63%   -0.07%     
   - Complexity    35124    35218      +94     
   ============================================
     Files          2553     2553              
     Lines        143524   144052     +528     
     Branches      17474    17569      +95     
   ============================================
   + Hits         115830   116159     +329     
   - Misses        19746    19910     +164     
   - Partials       7948     7983      +35     
   ```
   
   | [Components](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [hudi-common](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.90% <ø> (-0.25%)` | :arrow_down: |
   | [hudi-client](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.95% <ø> (+<0.01%)` | :arrow_up: |
   | [hudi-flink](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `86.06% <ø> (ø)` | |
   | [hudi-spark-datasource](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `74.18% <ø> (ø)` | |
   | [hudi-utilities](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `78.17% <ø> (ø)` | |
   | [hudi-cli](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.80% <ø> (ø)` | |
   | [hudi-hadoop](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.91% <ø> (-0.25%)` | :arrow_down: |
   | [hudi-sync](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `76.58% <ø> (ø)` | |
   | [hudi-io](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.88% <ø> (+0.35%)` | :arrow_up: |
   | [hudi-timeline-service](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.41% <ø> (ø)` | |
   | [hudi-cloud](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.00% <ø> (ø)` | |
   | [hudi-kafka-connect](https://app.codecov.io/gh/apache/hudi/pull/20359/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `54.48% <ø> (ø)` | |
   
   | [Flag](https://app.codecov.io/gh/apache/hudi/pull/20359/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [hadoop-mr-java-client](https://app.codecov.io/gh/apache/hudi/pull/20359/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `43.95% <ø> (+0.01%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   [see 10 files with indirect coverage changes](https://app.codecov.io/gh/apache/hudi/pull/20359/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   </details>
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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 the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(utilities): use pairwise parameter matrices in TestHoodieDeltaStreamer and SchemaEvolutionQuick [hudi]

Posted by "hudi-agent (via GitHub)" <gi...@apache.org>.
hudi-agent commented on code in PR #20359:
URL: https://github.com/apache/hudi/pull/20359#discussion_r4290876372


##########
hudi-utilities/src/test/java/org/apache/hudi/utilities/deltastreamer/TestHoodieDeltaStreamerSchemaEvolutionQuick.java:
##########
@@ -103,7 +102,11 @@ protected static Stream<Arguments> testReorderedColumn() {
       for (Boolean nullForDeletedCols : new Boolean[] {false, true}) {
         for (Boolean useKafkaSource : new Boolean[] {false, true}) {
           for (String tableType : new String[] {"COPY_ON_WRITE", "MERGE_ON_READ"}) {
-            b.add(Arguments.of(tableType, rowWriterEnable, useKafkaSource, nullForDeletedCols));
+            // Half fraction: every pair of factor values still appears together in at least one row.
+            boolean evenParity = !(rowWriterEnable ^ nullForDeletedCols ^ useKafkaSource ^ tableType.equals("MERGE_ON_READ"));

Review Comment:
   🤖 nit: could you simplify the XOR chain, e.g. by counting the true flags and checking `% 2 == 0`, or by listing the 8 rows explicitly like `logicalTypesWithJsonSourceArgs`?
   
   <sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag quality.</i></sub>



-- 
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 the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(utilities): use pairwise parameter matrices in TestHoodieDeltaStreamer and SchemaEvolutionQuick [hudi]

Posted by "databird07 (via GitHub)" <gi...@apache.org>.
databird07 commented on PR #20359:
URL: https://github.com/apache/hudi/pull/20359#issuecomment-6208215565

   Combined into #20364 so the total impact can be reviewed in one place; this commit is included there unchanged. Closing.


-- 
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 the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(utilities): use pairwise parameter matrices in TestHoodieDeltaStreamer and SchemaEvolutionQuick [hudi]

Posted by "databird07 (via GitHub)" <gi...@apache.org>.
databird07 closed pull request #20359: test(utilities): use pairwise parameter matrices in TestHoodieDeltaStreamer and SchemaEvolutionQuick
URL: https://github.com/apache/hudi/pull/20359


-- 
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 the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org