Skip to content

Suppress delete branch not existing error#432

Open
steiler wants to merge 1 commit into
mainfrom
deleteBranchErrorSuppress
Open

Suppress delete branch not existing error#432
steiler wants to merge 1 commit into
mainfrom
deleteBranchErrorSuppress

Conversation

@steiler
Copy link
Copy Markdown
Collaborator

@steiler steiler commented May 18, 2026

Overview

Fixes idempotent delete when the target path is already absent from the internal config tree: writeBackSyncTreeDeleteBranch no longer fails on NavigateSdcpbPath “path not found”, so TransactionSet can complete successfully instead of surfacing a hard RPC error that config-server treated as unrecoverable.

Domain: ops.ErrNavigateSdcpbPathNotFound stays in data-server; DeleteBranch treats it as no-op (aligned with existing ApplyToRunning / sync behavior). No extra gRPC mapping or sdc-protos wire helpers.

Relation to config-server#439 / #433: addresses the root cause so string-matching or importing data-server errors in config-server for this case should be unnecessary once this server version is in use.

Copy link
Copy Markdown

@severindellsperger severindellsperger left a comment

Choose a reason for hiding this comment

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

LGTM.

@steiler
Copy link
Copy Markdown
Collaborator Author

steiler commented May 21, 2026

@copilot resolve the merge conflicts in this pull request

Fixes **idempotent delete** when the target path is **already absent** from the internal config tree: `writeBackSyncTree` → `DeleteBranch` no longer fails on `NavigateSdcpbPath` “path not found”, so **TransactionSet** can complete successfully instead of surfacing a hard RPC error that **config-server** treated as unrecoverable.
**Domain:** `ops.ErrNavigateSdcpbPathNotFound` stays in **data-server**; `DeleteBranch` treats it as **no-op** (aligned with existing `ApplyToRunning` / `sync` behavior). **No** extra gRPC mapping or **sdc-protos** wire helpers.
**Relation to [config-server#439](sdcio/config-server#439) / [#433](sdcio/config-server#433 addresses the **root cause** so string-matching or importing **data-server** errors in config-server for this case should be **unnecessary** once this server version is in use.
@steiler steiler force-pushed the deleteBranchErrorSuppress branch from bb63288 to 32cf890 Compare May 22, 2026 13:29
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/tree/ops/deletebranch.go 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants