4.7 KiB
🛠️ Reliability fixes — unreleased source
📌 2026-11-28: these four accepted changes are integrated in source. Published binaries remain v2.3.0. This cycle has not released or deployed them, and release-hosted installers do not yet contain the path fix.
🔧 What changed
| Fix | Result |
|---|---|
| 🔄 Sync retry base | A rejected push retains the last locally applied base. The next pull merges the advanced hub head, preserving disjoint peer changes and same-path edits through conflict copies. |
| 🔒 Atomic hub acceptance | meta.AcceptSnapshot takes SQLite's write lock before reading the head. Parent validation, snapshot metadata, chunk refcounts, and head update share one transaction; a stale push is rejected with the winning head. |
| 🧪 Daemon test shutdown | Both live-sync fixtures cancel and join their daemon Run calls before closing the hub/database or returning from the test. Assertions and timeouts are unchanged. |
| 📂 Literal installer destination | The shell installer no longer evaluates --bin-dir / DEVBOX_BIN_DIR. Only a leading ~/ expands to the home directory; spaces, quotes, dollar signs, backticks, and shell metacharacters otherwise stay literal. Quote values in the calling shell. |
Replaying the current snapshot does not double-count chunk references or announce
a head advance. Reverting to an existing snapshot requires the current parent.
DeleteSnapshot rechecks head protection when deleting a candidate, preserving
metadata and refcounts if the candidate became the head in the meantime.
This metadata protection does not establish safe concurrent live blob sweeping.
For the installer behavior, use the script from the source checkout:
sh ./install.sh --bin-dir '~/tools with spaces/bin' --no-service
The same literal-path rule applies to DEVBOX_BIN_DIR; it does not expand $HOME
written inside the value or interpret command substitutions. These changes apply
to install.sh; this cycle makes no PowerShell runtime-verification claim.
🧪 Verification scope
Independent scoped verification and review accepted all four changes. The three product regressions failed against the original v2.3.0 source
(36690ee) and passed with their fixes. A delayed shutdown probe reproduced the
daemon fixtures logging after test completion before their cleanup fix; the same
probe passes afterward, with shutdown logs preceding test completion. Counts below describe those scoped checks, not a full-suite
total.
| Scope | Accepted evidence |
|---|---|
| 🔄 Syncer | Race checks: 23 tests in one package; deterministic advanced-head retry covers disjoint additions, same-path edits, conflict-copy propagation, hooks, and convergence. |
| 🔒 Hub | Race checks: 50 tests across four packages, including subtests; concurrent stale-parent rejection, replay/revert, candidate head protection, pruned-snapshot restoration, and independent database connections. |
| 🧪 Daemon fixtures | go test -race ./internal/daemon -count=3 passed; independent delayed-shutdown probes fail both original fixtures and pass both fixed fixtures. Run joins mount workers; this does not establish that every child goroutine is joined. |
| 📂 Shell installer | Two top-level tests: ten literal-path subcases across flag/env inputs, plus existing optional-plugin cases. |
✅ Combined validation passed on dev3 at source 8e06d83: go vet ./...,
go build ./..., and go test -race -json ./... -count=1 all exited 0. The race
run passed 171 top-level tests and 30 subtests across 19 packages; one additional
package has no tests. Nine release fixtures and two installer tests also passed.
The final docs-only update does not change the tested code.
The first combined run exposed an overlong temporary Unix socket path and the daemon test shutdown bug. Short temporary paths address the environment limit; the fixture cleanup fix passed the final complete rerun. This cycle does not establish production-tailnet behavior, ARM runtime verification, or safe concurrent live blob GC. Earlier dated ARM verification in the project plan remains historical evidence.
🔎 Source and regression references
- 🔄 Retry-base handling and regression.
- 🔒 Hub acceptance, metadata transactions, HTTP race regression, and metadata regressions.
- 🧪 Daemon lifecycle helper and pause fixture.
- 📂 Shell installer and installer tests.
📦 Source fixes today; published release status stays explicit.