Skip to content

refactor(files_external): centralize dependency checks in backends - #66834

Open
joshtrichards wants to merge 2 commits into
masterfrom
copilot/cleanup-external-storage-dependencies
Open

joshtrichards wants to merge 2 commits into
masterfrom
copilot/cleanup-external-storage-dependencies

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Nov 19, 2026 •

Copy link
Copy Markdown
Member
  • Resolves: #na

Summary

🧹

Centralize external-storage dependency checks in backend classes, removing the legacy bridge to static storage-level checks.

Move the FTP extension check into the FTP backend and delegate SMB_OC checks to SMB, preserving required-dependency availability while aligning dependency diagnostics. Remove the unused LegacyBackend, the now-unneeded dependency-check polyfill, and the always-successful DAV, Swift, and S3 storage checks.

Replace obsolete tests with backend regression coverage. Built-in backend availability rules remain unchanged.

Related:

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

joshtrichards and others added 2 commits November 28, 2026 11:07
Keep dependency checks on backends and remove the obsolete compatibility bridge. Delegate the deprecated SMB backend check to its replacement.

Assisted-by: Copilot:gpt-6.1-terra

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards
joshtrichards force-pushed the copilot/cleanup-external-storage-dependencies branch from b36ea0a to 0544352 Compare November 28, 2026 16:07
@joshtrichards joshtrichards changed the title refactor(files_external): remove legacy dependency checks refactor(files_external): centralize dependency checks in backends Nov 28, 2026
@joshtrichards

Copy link
Copy Markdown
Member Author

Test failure in integration-s3-primary is unrelated; its due to #66962. It puts a binary HMAC in metadata. Looks like it wasn't noticed in that PR because:

  • integration-s3-primary job was skipped
  • DAV integration tests did run, but without Redis.
  • The db brute-force backend catches encoding errors while the Redis backend crashes.

@joshtrichards joshtrichards added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 28, 2026
@joshtrichards
joshtrichards marked this pull request as ready for review November 28, 2026 17:04
@joshtrichards
joshtrichards requested review from a team as code owners November 28, 2026 17:04
@joshtrichards
joshtrichards requested review from Altahrim, GhassenKefi, icewind1991 and pabzm and removed request for a team November 28, 2026 17:04

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants