Skip to content

refactor(integration_tests): generalize WaitForSizeUpdate and rename wait constants to rapid - #5066

Merged
vipnydav merged 5 commits into
masterfrom
generalize-wait-for-size-update
Sep 8, 2026
Merged

vipnydav merged 5 commits into
masterfrom
generalize-wait-for-size-update

Conversation

@vipnydav

@vipnydav vipnydav commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Description

  1. Generalized WaitForSizeUpdate parameter name from isZonal bool to isUnfinalized bool to represent unfinalized objects for both Zonal and Pirlo runs.
  2. Renamed wait duration constants WaitDurationAfterFlushZB $\rightarrow$ WaitDurationAfterFlushRapid and WaitDurationAfterCloseZB $\rightarrow$ WaitDurationAfterCloseRapid in file_operations.go.
  3. In file_operations.go, updated CloseFiles, CloseFile, and CloseFileShouldNotThrowError to pass setup.IsZonalBucketRun() since only Zonal leaves files unfinalized on close (Pirlo finalizes on close by default and does not need to sleep 1s).
  4. In storage_client.go and symlink_suites_test.go, passed wc.Append && !wc.FinalizeOnClose to dynamically wait only when an unfinalized appendable object was actually created.
  5. Updated SyncFile in file_operations.go and reads_after_appends_test.go to pass setup.IsZonalBucketRun() || setup.IsPirloBucketRun() for unfinalized flushes/appends.

Testing details

  1. Manual - Done
  2. Unit tests - NA
  3. Integration tests - Automated

Any backward incompatible change? If so, please explain.

NA

@vipnydav
vipnydav requested a review from meet2mky as a code owner August 31, 2026 03:21
@vipnydav vipnydav added the execute-integration-tests Run only integration tests label Aug 31, 2026
@vipnydav
vipnydav requested a review from a team as a code owner August 31, 2026 03:21
@vipnydav vipnydav added the execute-integration-tests-on-zb To run E2E tests on zonal bucket. label Aug 31, 2026
@github-actions github-actions Bot added the remind-reviewers Auto remind reviewers in attention set for review post 24hrs of inactivity on PR. label Aug 31, 2026

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request refactors the integration tests to support both zonal and pirlo bucket runs by updating the 'WaitForSizeUpdate' function to internally check the bucket type instead of requiring a boolean parameter. Additionally, the wait duration constants have been renamed from 'ZB' to 'Rapid'. The feedback suggests removing a redundant 'time.Duration' type conversion in 'reads_after_appends_test.go' to improve code readability.

Comment thread tools/integration_tests/rapid_operations/reads_after_appends_test.go Outdated
@vipnydav
vipnydav force-pushed the generalize-wait-for-size-update branch from 5f1398e to fbde38f Compare August 31, 2026 03:25
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Hi @meet2mky, your feedback is needed to move this pull request forward. This automated reminder was triggered because there has been no activity for over 24 hours. Please provide your input when you have a moment. Thank you!

1 similar comment
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Hi @meet2mky, your feedback is needed to move this pull request forward. This automated reminder was triggered because there has been no activity for over 24 hours. Please provide your input when you have a moment. Thank you!

Comment thread tools/integration_tests/util/operations/operations.go Outdated
@vipnydav
vipnydav force-pushed the generalize-wait-for-size-update branch from fbde38f to a55ad05 Compare September 2, 2026 20:19
@vipnydav
vipnydav requested a review from anushka567 as a code owner September 2, 2026 20:19
@vipnydav
vipnydav force-pushed the generalize-wait-for-size-update branch from a55ad05 to 7e342ff Compare September 2, 2026 20:31
@vipnydav
vipnydav force-pushed the generalize-wait-for-size-update branch from 7e342ff to 230bcc9 Compare September 2, 2026 20:46
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Hi @meet2mky, @anushka567, @abhishek10004, your feedback is needed to move this pull request forward. This automated reminder was triggered because there has been no activity for over 24 hours. Please provide your input when you have a moment. Thank you!

1 similar comment
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Hi @meet2mky, @anushka567, @abhishek10004, your feedback is needed to move this pull request forward. This automated reminder was triggered because there has been no activity for over 24 hours. Please provide your input when you have a moment. Thank you!

Comment thread tools/integration_tests/util/operations/file_operations.go
Comment thread tools/integration_tests/util/client/storage_client.go Outdated
abhishek10004
abhishek10004 previously approved these changes Sep 7, 2026

@abhishek10004 abhishek10004 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Left a minor comment.

@vipnydav
vipnydav enabled auto-merge (squash) September 8, 2026 04:31

@abhishek10004 abhishek10004 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@vipnydav
vipnydav merged commit d8e6596 into master Sep 8, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

execute-integration-tests Run only integration tests execute-integration-tests-on-zb To run E2E tests on zonal bucket. remind-reviewers Auto remind reviewers in attention set for review post 24hrs of inactivity on PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants