Sync's sign-ins can now leave chosen subscriptions out on one computer
(`signInsExcept`, provider ids; Ethereal499 on X keeps Claude's accounts
off other computers). On that computer:
- its accounts of those subscriptions never go up;
- the server's accounts of them are never merged in, so a removal or a
new account on another computer changes nothing here;
- the server keeps them as they are for the computers that do sync them
(syncOnce splits the remote set with SignIns.Except and puts the held
part back with With after the merge, so the hash doesn't change);
- the preview and Restore count and restore none of them.
An id names both the built-in and its -plugin id. An old config has no
field and syncs everything as before. The setup text doesn't carry the
choice, since it belongs to one computer.
GUI: Settings > Sync > edit > Advanced, under "Sign-ins", a "Not synced"
row with a multi-select openProtoMenu of the subscriptions with an
account. The row shows only while the sign-ins tick is on. The strings
already existed in en, zh, zh-TW, ja and de. CLI: `sign-ins-except=`
on the WebDAV, S3 and GitHub setups ("none" clears it), and status
shows the excluded ids. docs/subsystems/sync-backup.md says it.
Tests:
- TestSignInsExcept (provider) and TestSyncSignInsExcept (davsync, two
computers on a fake DAV).
- sync-signins-except.test.cjs: both engines, 1100 and 420px, all 5
languages.
Broken by hand, each red and then restored:
- the Except in collect;
- the Except on the remote set before the merge;
- the Except in the preview;
- the With after the merge;
- the GUI form's post of signInsExcept.
Run:
- At ac4a4cf84 on mote: `go test -timeout 45m ./...`, 102 packages ok,
exit 0.
- At ac4a4cf84, the whole GUI suite on mote. The first part ran at
concurrency 6 under load 25 to 37, and mote rebooted mid-run (not
this session's doing). The 410 files it never reached ran at
concurrency 4. Reds fell in 125 files, none of them a sync-* file
except s3-sync (see below).
- At the rebased head b781d0bcb on mote:
- go test ./internal/davsync ./internal/provider ./internal/cli
./internal/gui: ok.
- Every sync-*.test.cjs, webdav-settings-refresh and
sync-signins-except: ok.
- gofmt -l: clean.
- On mica: go vet ./..., GOOS=linux go vet -tags nogui ./... and
GOOS=windows go vet ./... ok, plus go build, GOOS=linux go build
-tags nogui and GOOS=windows go build.
Red the same on origin/main 873b1f7d5, run there alone:
- s3-sync webkit en ("picking S3 must not scroll the page"), #3413 and
#2448.
- i18n-keys (", with an image" in plugins/routing), #6877.
Not run: the full Go suite at the rebased head. Another session's full
suite held mote, and mica was full. The 125 GUI files red under load
were not each run alone on main.
Not tried: a real sync between two computers with real accounts.