Skip to content

Use 20-minute JUnit timeout on non-DirectRunner in DeltaLakeToIcebergCdcIT - #41280

Merged
damccorm merged 1 commit into
masterfrom
fix/delta-lake-to-iceberg-cdc-it-timeout
Nov 24, 2026
Merged

damccorm merged 1 commit into
masterfrom
fix/delta-lake-to-iceberg-cdc-it-timeout

Conversation

@damccorm

@damccorm damccorm commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:

  • The PR is an appropriate fix for the issue (e.g. we're not changing a test to avoid a bug)
  • The PR is a simple fix to the issue (e.g. we're not adding infra when we could just modify a test)
  • The PR is not covering for other problems (e.g. if we're bumping timeouts, it is not because we're covering for a performance problem)

Full details of the methodology of generation and review can be found here - https://docs.google.com/document/d/14lj7ECVov4T4EdwmIzNlWrRGE3lLDMOwX5xUMGzaLoc/edit?usp=sharing

If you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)

Summary

  • Increases the JUnit @Rule Timeout in DeltaLakeToIcebergCdcIT from a hardcoded 10 minutes (10 * 60) to Timeout.seconds(OPTIONS.getRunner().equals(DirectRunner.class) ? 300 : 20 * 60), matching the runner-dependent timeout used in IcebergCatalogBaseIT and IcebergCdcWriteBaseIT.

Root Cause

In the IcebergIO Integration Tests on Dataflow workflow (run 43366381845), DeltaLakeToIcebergCdcIT > changeFeedAppliesToIcebergTableWithChangeTypeColumn failed with org.junit.runners.model.TestTimedOutException: test timed out after 600 seconds at DeltaLakeToIcebergCdcIT.applyChangeFeed(DeltaLakeToIcebergCdcIT.java:340) after the Dataflow Runner v2 job had already completed all operations (Finished operation ... at 05:45:51.531Z) and was in Cleaning up. Stopping worker pool... at 9m51s.

Commit ea3c5dfb210 (#40230) added both IcebergCdcWriteBaseIT (configured with Timeout.seconds(OPTIONS.getRunner().equals(DirectRunner.class) ? 300 : 20 * 60), matching IcebergCatalogBaseIT) and DeltaLakeToIcebergCdcIT (configured with a fixed 10-minute timeout), which leaves insufficient headroom for Dataflow Runner v2 worker startup and job teardown in :sdks:java:io:iceberg:dataflowIntegrationTest.

Recent Occurrences

  • 2 master workflow failures in the last 3 weeks (2026-11-03 – 2026-11-24), accounting for 100% (2/2) of recent IcebergIO Integration Tests on Dataflow failures: 42065822602 and 43366381845.

Verification

  • Verified locally with ./gradlew :sdks:java:io:iceberg:spotlessCheck :sdks:java:io:iceberg:compileTestJava :sdks:java:io:iceberg:checkstyleTest.

Verification

  • Triggered IO_Iceberg_Integration_Tests_Dataflow.yml workflow run on branch: 43379167610

@damccorm damccorm added the test-failure-cleanup Automated test health and flake cleanup PRs label Nov 13, 2026
@damccorm

Copy link
Copy Markdown
Contributor Author

/gemini review

@github-actions github-actions Bot added java io iceberg Iceberg IO connector size/xs XS: <10 lines changed labels Nov 13, 2026

@github-actions github-actions Bot 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.

📋 Review Summary

This PR updates the JUnit @Rule Timeout in DeltaLakeToIcebergCdcIT from a fixed 10 minutes to 5 minutes on DirectRunner and 20 minutes on other runners (such as DataflowRunner). The change is clean, well-justified, and aligns DeltaLakeToIcebergCdcIT with the existing timeout conventions in IcebergCatalogBaseIT and IcebergCdcWriteBaseIT.

🔍 General Feedback

  • The runner-dependent timeout (300 seconds for DirectRunner, 20 * 60 seconds otherwise) provides adequate headroom for Dataflow Runner v2 worker startup and teardown while tightening timeouts for local/DirectRunner execution.
  • No issues found; the change is ready to merge.

💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.

@damccorm damccorm added the ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review label Nov 13, 2026
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.74%. Comparing base (d7d31e9) to head (0e7feff).
⚠️ Report is 195 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #41280      +/-   ##
============================================
- Coverage     59.26%   57.74%   -1.52%     
+ Complexity     4925     2633    -2292     
============================================
  Files          1462     1203     -259     
  Lines        186313   171888   -14425     
  Branches       3669     2182    -1487     
============================================
- Hits         110417    99257   -11160     
+ Misses        72540    69966    -2574     
+ Partials       3356     2665     -691     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@damccorm damccorm added ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review and removed ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review labels Nov 13, 2026
@damccorm
damccorm marked this pull request as ready for review November 24, 2026 16:08
@damccorm

Copy link
Copy Markdown
Contributor Author

R: @ahmedabu98

@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @ahmedabu98 for label iceberg.
Backup reviewer: chamikaramj (if the main reviewer is unresponsive, you can escalate to them by tagging their username)

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@damccorm
damccorm merged commit 3e230c6 into master Nov 24, 2026
27 checks passed
@damccorm
damccorm deleted the fix/delta-lake-to-iceberg-cdc-it-timeout branch November 24, 2026 17:07
@github-actions

Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

iceberg Iceberg IO connector io java Next Action: Reviewers ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review size/xs XS: <10 lines changed test-failure-cleanup Automated test health and flake cleanup PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants