File cache testsuit refactor#1274
Conversation
|
@yaozile123: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Skipping CI for Draft Pull Request. |
Summary of ChangesHello, 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 focuses on refactoring the GCSFuse file cache e2e test suites to improve maintainability and reduce complexity. It introduces dynamic test command generation, enhances flag management, and synchronizes module dependencies. Additionally, it addresses ZB integration and improves GCSFuse version handling. Highlights
Using Gemini Code AssistThe 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
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 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
|
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
83e7442 to
7ebbed8
Compare
|
/gemini review |
7ebbed8 to
c211f5c
Compare
There was a problem hiding this comment.
Code Review
This pull request refactors the GCS-FUSE CSI driver's sidecar mounter configuration and enhances the e2e testing framework. The DisallowedFlags map has been moved to the sidecar_mounter package and updated to map flags to their config file representations. The e2e test suite now dynamically generates tests from GCSFuse's test_config.yaml, introducing new helper functions for test command generation and resource configuration. A review comment highlighted a potential issue where the cache directory naming in dynamic tests could lead to collisions if not made unique per test package and name.
test/e2e/testsuites/gcsfuse_integration_file_cache_parallel_downloads.go
Show resolved
Hide resolved
|
@yaozile123 As mentioned over chat please update PR description with how you tested on Managed driver as well. If it doesn't have any issues on managed driver, I am ok with merging once the other comments are addressed. |
c211f5c to
b35b84c
Compare
9150529 to
5727174
Compare
5727174 to
1c384fd
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: amacaskill, Sneha-at, yaozile123 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR includes the following changes:
disallowedFlagsMappinginutils.goto reduce the complexity to maintain two disallowed flag maps.sidecar_mounter.goto refactoreddisallowedFlagsinto an exportableDisallowedFlags, and rango mod tidyandgo mod vendorafterwards to sync up the module dependencies.DisallowedFlagsfrommap[string]booltomap[string]string. The values now represent the mapping to their corresponding config file format representation (e.g.,"log-file": "logging:file-path").go mod tidyandgo mod vendorundertest/folder to sync up the module dependencies.rapid_appendstest package by mounting two separate volumes on the test pod, each configured with different mount options as required by the tests.Ran the e2e test on non-managed driver, GKE version 1.35.0-gke.3047002, GCSFuse version v3.7.3-gke.0
It was failed on the istio so I did a retry:
It seems like that testcase is flaky.
Ran the e2e test on managed driver, GKE version 1.35.2-gke.1842000, GCSFuse version v3.7.3-gke.0
On zonal bucket with manged driver
Which issue(s) this PR fixes:
Fixes # b/483388410
Fixes # b/483387747
Special notes for your reviewer:
gcsfuse_integration_file_cache.go. I will clean them up once GCSFuse fixes the upstream issues.vendor/directory, it's just auto-generated fromgo mod vendor.Does this PR introduce a user-facing change?: