Skip to content

[MINOR BC] [4.x] Make DeleteTenantStorage not depend on the suffix_storage_path config - #1479

Draft
lukinovec wants to merge 4 commits into
scope-cache-fixfrom
suffix-storage-path
Draft

[MINOR BC] [4.x] Make DeleteTenantStorage not depend on the suffix_storage_path config#1479
lukinovec wants to merge 4 commits into
scope-cache-fixfrom
suffix-storage-path

Conversation

@lukinovec

Copy link
Copy Markdown
Contributor

Title, description and code changes WIP

Note that this PR's branch is based on #1473 (scope-cache-fix).

The job should delete the tenant storage regardless of the suffix_storage_path config. Now, the job depends on that config, so currently, this test fails.

Also remove the "FS bootstrapper disabled" assertions. The job clearly depends on the bootstrapper being enabled, so I don't think these assertions matter in the end.
…ss of suffix_storage_path

The job depended on storage_path(), which is only suffixed when
suffix_storage_path is enabled, so with it disabled the tenant's files were left
behind. It now uses the bootstrapper's own suffix logic via a new
getBoundTenantStoragePath() method..
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 7b64d6b1-e666-45d2-9417-6e977d8da526

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.74%. Comparing base (ae61e8b) to head (fe97695).

Additional details and impacted files
@@                  Coverage Diff                  @@
##             scope-cache-fix    #1479      +/-   ##
=====================================================
- Coverage              86.75%   86.74%   -0.02%     
+ Complexity              1228     1227       -1     
=====================================================
  Files                    186      186              
  Lines                   3601     3598       -3     
=====================================================
- Hits                    3124     3121       -3     
  Misses                   477      477              

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

The symlinks should point to the tenant's disk root regardless of the
suffix_storage_path config and of which root_override placeholders are used.
Currently, the storage_path() helper is used for generating the symlink path,
so the two new datasets fail.
…age_path()

possibleTenantSymlinks() resolved the root_override template on its own, using
storage_path() for %storage_path% and leaving %original_storage_path% and
%tenant% unreplaced. Let the FS bootstrapper resolve the placeholders tenant instead, so the symlinks point where the disks actually write.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant