Skip to content

Lock DownloadRemoteArchive refuse-before-mkdir (OSS-281) - #403

Merged
athNdev merged 1 commit into
mainfrom
oss/281-remote-archive-refusal
Nov 10, 2026
Merged

athNdev merged 1 commit into
mainfrom
oss/281-remote-archive-refusal

Conversation

@athNdev

@athNdev athNdev commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • DownloadRemoteArchive already calls refuseLocalPathPipeline before dataRootFor / os.MkdirAll; production order is unchanged.
  • TestFileRPCsRefuseTransportOnlyWithoutProvider and TestZipPipelinesRefuseTransportOnlyEvenWithProvider now call the RPC with a destination that would be created if refuse ran after mkdir. They require CodeUnavailable and no controller-local tree.

Test plan

  • go test ./internal/rpc/services ./internal/nodestorage
  • go vet on those packages
  • CI required checks

Made with Cursor

Transport-only nodes make dataRootFor succeed; tests now call the RPC so a missing refuse or one after os.MkdirAll creates a controller-local tree and fails.

Co-authored-by: Cursor <[email protected]>
@athNdev
athNdev merged commit 1d696cb into main Nov 10, 2026
11 checks passed
@athNdev
athNdev deleted the oss/281-remote-archive-refusal branch November 10, 2026 06:17
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