Skip to content

Conversation

@PranjalC100
Copy link
Member

Description

This PR includes changes to migrate readdirplus test package to use common config file. This common config will be used by both GCSFuse binary and GCSFuse csi driver tests.

Changes include:

refactoring to use config file by test methods.
changes are made in a backward compatible way so tests can run with both config file and flags. This will be cleaned up in future PRs after the migration is complete.
Migration of readdirplus package so it can use config file.

Link to the issue in case of a bug fix.

b/445951883

Testing details

  1. Manual - Manually tested with config file for both cases when mounted directory is set and not set. Also validated that the tests work without config file.
  2. Unit tests - NA
  3. Integration tests - via KOKORO

Any backward incompatible change? If so, please explain.

@PranjalC100 PranjalC100 requested review from a team and Tulsishah as code owners October 14, 2025 20:02
@PranjalC100 PranjalC100 force-pushed the test-migration-readdirplus branch 4 times, most recently from 3d687a2 to 01e7e13 Compare October 17, 2025 05:25
@PranjalC100 PranjalC100 changed the base branch from read-cache-test-migration to master October 17, 2025 05:28
@PranjalC100 PranjalC100 force-pushed the test-migration-readdirplus branch from 01e7e13 to 017949d Compare October 17, 2025 07:57
@PranjalC100 PranjalC100 added the execute-integration-tests Run only integration tests label Oct 23, 2025
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (3d9975c) to head (017949d).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #3891       +/-   ##
==========================================
- Coverage   82.42%       0   -82.43%     
==========================================
  Files         145       0      -145     
  Lines       22769       0    -22769     
==========================================
- Hits        18768       0    -18768     
+ Misses       3458       0     -3458     
+ Partials      543       0      -543     
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.

testDirPath = setup.SetupTestDirectory(testDirName)
func mountGCSFuseAndSetupTestDir(flags []string, ctx context.Context, storageClient *storage.Client) {
setup.MountGCSFuseWithGivenMountWithConfigFunc(testEnv.cfg, flags, mountFunc)
setup.SetMntDir(testEnv.cfg.GCSFuseMountedDirectory)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be GCSFuse or GKE mounted directory based on how tests are running. Can you check if this is working in both cases?

Copy link
Member Author

Choose a reason for hiding this comment

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

checked both are working!

@PranjalC100 PranjalC100 force-pushed the test-migration-readdirplus branch from bb0a45b to 37bd524 Compare November 5, 2025 12:14
@PranjalC100 PranjalC100 force-pushed the test-migration-readdirplus branch from 37bd524 to 8d34fc5 Compare November 6, 2025 10:33
@PranjalC100 PranjalC100 force-pushed the test-migration-readdirplus branch from 98acaac to 30c0332 Compare November 6, 2025 15:59
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants