Skip to content

feat(shared-chunk-cache): adding basic e2e test for shared-chunk-cache#4503

Merged
raj-prince merged 4 commits intomasterfrom
shared_cache_e2e
Apr 16, 2026
Merged

feat(shared-chunk-cache): adding basic e2e test for shared-chunk-cache#4503
raj-prince merged 4 commits intomasterfrom
shared_cache_e2e

Conversation

@raj-prince
Copy link
Copy Markdown
Collaborator

@raj-prince raj-prince commented Mar 19, 2026

Description

Adding cache-hit/miss test for shared-chunk-cache using two mounts scenario. To keep the test-execution robust we used modification time to test the cache-hit/cache-miss logic, not via log-parsing.

Link to the issue in case of a bug fix.

b/495298967

Testing details

  1. Manual - Yes.
  2. Unit tests - NA
  3. Integration tests - NA

Any backward incompatible change? If so, please explain.

@raj-prince raj-prince added the execute-integration-tests Run only integration tests label Mar 19, 2026
@raj-prince raj-prince marked this pull request as ready for review March 24, 2026 08:13
@raj-prince raj-prince requested review from a team, Tulsishah and meet2mky as code owners March 24, 2026 08:13
@raj-prince raj-prince requested a review from charith87 March 24, 2026 08:13
@github-actions github-actions Bot added the remind-reviewers Auto remind reviewers in attention set for review post 24hrs of inactivity on PR. label Mar 24, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (8a9f498) to head (2c4e7a2).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #4503       +/-   ##
==========================================
- Coverage   83.64%       0   -83.65%     
==========================================
  Files         164       0      -164     
  Lines       20272       0    -20272     
==========================================
- Hits        16956       0    -16956     
+ Misses       2676       0     -2676     
+ Partials      640       0      -640     
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.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a foundational end-to-end test for the shared-chunk-cache functionality. The test simulates a common use case with multiple mounts to validate that the cache is correctly hit and missed, and that data is served from the cache as expected. This will help ensure the stability and performance of the shared chunk cache feature.

Highlights

  • E2E Test: Introduced a basic end-to-end test for the shared-chunk-cache feature using a two-mount scenario to validate cache hits and misses.
  • Test Logic: Employed modification time checks to ensure the test logic consistently reads from the cache, reducing potential flakiness.
  • Cache Validation: The test suite includes checks to verify that cache files are not re-downloaded on cache hits, confirming the correct behavior of the shared chunk cache.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@raj-prince raj-prince changed the title feat(shared-chunk-cache): adding basic e2e test for shared-chunk-cach… feat(shared-chunk-cache): adding basic e2e test for shared-chunk-cache Mar 24, 2026
Copy link
Copy Markdown
Contributor

@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 introduces end-to-end tests for the shared chunk cache feature, covering cache miss and hit scenarios for both single and multiple mount configurations. The tests are well-structured and provide a good baseline for verifying the feature's functionality. My feedback includes suggestions to enhance test robustness by improving error handling when scanning the cache directory and preventing potential division-by-zero panics during performance metric calculations.

Comment thread tools/integration_tests/shared_chunk_cache/setup_test.go Outdated
Comment thread tools/integration_tests/shared_chunk_cache/setup_test.go Outdated
Comment thread tools/integration_tests/shared_chunk_cache/setup_test.go Outdated
Comment thread tools/integration_tests/shared_chunk_cache/setup_test.go Outdated
@github-actions
Copy link
Copy Markdown

Hi @meet2mky, @Tulsishah, @charith87, 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!

@raj-prince raj-prince removed the request for review from charith87 March 25, 2026 10:04
@github-actions
Copy link
Copy Markdown

Hi @meet2mky, @Tulsishah, 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/shared_chunk_cache/setup_test.go Outdated
Copy link
Copy Markdown
Collaborator

@meet2mky meet2mky left a comment

Choose a reason for hiding this comment

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

Some comments, Does these tests need to be in a separate package and not read_cache. What's the reason for it?

@github-actions
Copy link
Copy Markdown

Hi @Tulsishah, 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!

7 similar comments
@github-actions
Copy link
Copy Markdown

Hi @Tulsishah, 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!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2026

Hi @Tulsishah, 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!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

Hi @Tulsishah, 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!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 3, 2026

Hi @Tulsishah, 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!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

Hi @Tulsishah, 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!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

Hi @Tulsishah, 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!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

Hi @Tulsishah, 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!

@mustvicky mustvicky removed the request for review from Tulsishah April 8, 2026 04:40
@raj-prince
Copy link
Copy Markdown
Collaborator Author

Some comments, Does these tests need to be in a separate package and not read_cache. What's the reason for it?

Read_cache test are single mount test, while this is multi-mount test, hence created a separate package for this.

@meet2mky
Copy link
Copy Markdown
Collaborator

Looks good.

Let's add the information of this package in improved_e2e_test script and in test_config.yaml for GKE in separate PR for continuous testing.

@raj-prince raj-prince merged commit 8b35120 into master Apr 16, 2026
12 checks passed
raj-prince added a commit that referenced this pull request Apr 17, 2026
#4503)

* fixing lint and better formatting

* swapping the file content - incorrectly swapped during rebase

* review comments

* fixing formatting
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 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