-
Notifications
You must be signed in to change notification settings - Fork 458
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
base: master
Are you sure you want to change the base?
Conversation
d6c295a
to
64978d8
Compare
64978d8
to
c9bf214
Compare
c9bf214
to
ce5273f
Compare
/gemini review |
There was a problem hiding this 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.
0e72f62
to
3d71359
Compare
3d71359
to
232b85c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This restricts primary mount to TestMain and secondary mount to RapidAppendsSuite class.
This reverts commit de1b76d.
hasSecondaryMount -> enableSecondaryMount
Split RapidAppendsSuite into single-mount and dual-mount.
ed09afe
to
0e04cba
Compare
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/updated/expired
Description
This is dependent on ci(read unfinalized objects): Add new e2e tests for reads of unfinalized objects while being appended #3473 .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
Any backward incompatible change? If so, please explain.