mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-04 16:34:52 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user