perf(nodes): reuse client link changes during full reconciliation

Preserve stored comments during the existing record merge and mark only detached IDs that remain unlinked after processing all inbounds. Batch orphan updates and roll back the node transaction if a batch fails.
This commit is contained in:
Hamed Sanaei
2026-12-01 22:49:02 +03:30
parent 267379456a
commit e92daa0723
5 changed files with 220 additions and 108 deletions
+10
View File
@@ -204,6 +204,16 @@ jobs:
exit 1
fi
- name: PostgreSQL node client reconciliation
run: |
set -o pipefail
go test ./internal/web/service -run '^TestNodeFullReconciliation' -count=1 -v | tee /tmp/postgres-node-client-reconciliation.log
passed=$(grep -c -- '^--- PASS: TestNodeFullReconciliation' /tmp/postgres-node-client-reconciliation.log || true)
if [ "$passed" -ne 2 ]; then
echo "expected 2 passing node client reconciliation tests, got $passed" >&2
exit 1
fi
- name: PostgreSQL node counter reset regressions
run: |
set -o pipefail