这是indexloc提供的服务,不要输入任何密码
Skip to content

ci(read unfinalized objects): Extends (add md-cache and file-cache configs) and refactors rapid_appends e2e tests #3539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

gargnitingoogle
Copy link
Collaborator

@gargnitingoogle gargnitingoogle commented Jul 17, 2025

Description

  • This is dependent on ci(read unfinalized objects): Add new e2e tests for reads of unfinalized objects while being appended #3473 .
  • This adds more test configurations i.e. metadata-cache on/off, file-cache on/off for the read while appending tests for unfinalized objects in rapid_appends test package (b/433142062).
    • For metadata-cache enable cases, it reads before and after metadata ttl expiry to confirm that the reads should return pre-append and post-append sizes respectively (b/433143404)
  • Refactors the code in rapid_appends test package (b/433143407), primarily targeted at
    • Moving management of secondary mount from setup_test.go to RapidAppendsSuite
    • Splitting RapidAppendsSuite into single-mount and dual-mount suites
    • configuration generation in TestMain to support more configuration

What is planned in next PR(s):

Link to the issue in case of a bug fix.

b/433142062
b/433143407
b/433143404

Testing details

  1. Manual - NA
  2. Unit tests - NA
  3. Integration tests - Ran as part of presubmit: run1, run2, run3 .

Any backward incompatible change? If so, please explain.

@gargnitingoogle gargnitingoogle added the execute-integration-tests-on-zb To run E2E tests on zonal bucket. label Jul 17, 2025
gemini-code-assist[bot]

This comment was marked as outdated.

gemini-code-assist[bot]

This comment was marked as outdated.

@gargnitingoogle gargnitingoogle force-pushed the gargnitin/extend-read-rapid-appends-e2e-tests/v1 branch 3 times, most recently from d6c295a to 64978d8 Compare July 17, 2025 10:01
@gargnitingoogle gargnitingoogle removed the execute-integration-tests-on-zb To run E2E tests on zonal bucket. label Jul 17, 2025
@gargnitingoogle gargnitingoogle changed the base branch from meet2mky/append_files_functional_tests to master July 17, 2025 10:06
@gargnitingoogle gargnitingoogle added the execute-integration-tests-on-zb To run E2E tests on zonal bucket. label Jul 17, 2025
@gargnitingoogle gargnitingoogle force-pushed the gargnitin/extend-read-rapid-appends-e2e-tests/v1 branch from 64978d8 to c9bf214 Compare July 17, 2025 10:09
@gargnitingoogle gargnitingoogle removed the execute-integration-tests-on-zb To run E2E tests on zonal bucket. label Jul 17, 2025
@gargnitingoogle gargnitingoogle changed the base branch from master to meet2mky/append_files_functional_tests July 17, 2025 10:16
@gargnitingoogle gargnitingoogle force-pushed the gargnitin/extend-read-rapid-appends-e2e-tests/v1 branch from c9bf214 to ce5273f Compare July 17, 2025 10:16
@gargnitingoogle gargnitingoogle added the remind-reviewers Auto remind reviewers in attention set for review post 24hrs of inactivity on PR. label Jul 17, 2025
@gargnitingoogle
Copy link
Collaborator Author

/gemini review

@gargnitingoogle gargnitingoogle marked this pull request as ready for review July 17, 2025 10:19
@gargnitingoogle gargnitingoogle requested review from Tulsishah and a team as code owners July 17, 2025 10:19
@gargnitingoogle gargnitingoogle requested review from ashmeenkaur and removed request for a team July 17, 2025 10:19
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

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 extends the e2e tests for rapid appends to cover more scenarios, including different combinations of metadata and file caching. The changes are well-structured, using a scenario-based approach in TestMain to run tests against multiple configurations. This makes the test suite more robust and easier to extend in the future.

@gargnitingoogle gargnitingoogle force-pushed the gargnitin/extend-read-rapid-appends-e2e-tests/v1 branch 4 times, most recently from 0e72f62 to 3d71359 Compare July 17, 2025 11:25
@gargnitingoogle gargnitingoogle changed the base branch from meet2mky/append_files_functional_tests to master July 18, 2025 05:01
@gargnitingoogle gargnitingoogle force-pushed the gargnitin/extend-read-rapid-appends-e2e-tests/v1 branch from 3d71359 to 232b85c Compare July 18, 2025 05:48
@gargnitingoogle gargnitingoogle changed the base branch from master to meet2mky/append_files_functional_tests July 18, 2025 05:49
Copy link

codecov bot commented Jul 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (af30226) to head (21d6b1a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #3539       +/-   ##
==========================================
- Coverage   79.68%       0   -79.69%     
==========================================
  Files         142       0      -142     
  Lines       18971       0    -18971     
==========================================
- Hits        15117       0    -15117     
+ Misses       3342       0     -3342     
+ Partials      512       0      -512     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@gargnitingoogle gargnitingoogle force-pushed the gargnitin/extend-read-rapid-appends-e2e-tests/v1 branch from ed09afe to 0e04cba Compare July 23, 2025 21:17
assert.Truef(t.T(), strings.HasPrefix(t.fileContent, readContent), "With metadata-enabled, read content expected to be a prefix of the written content, but failed. Written content = %q, Read content = %q", t.fileContent, readContent)
assert.Equalf(t.T(), t.fileContent[:sizeBeforeAppend], readContent, "failed to match partial content in metadata-cache dual-mount after %v appends", i+1)

time.Sleep(time.Duration(metadataCacheTTLSecs) * time.Second) // Wait for metadata cache to be updated.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

s/updated/expired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants