mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 16:04:50 +03:00
Merge remote-tracking branch 'origin/main' into codex/pr-7321
# Conflicts: # .github/workflows/ci.yml
This commit is contained in:
@@ -127,13 +127,24 @@ jobs:
|
||||
- name: PostgreSQL client IP sync regressions
|
||||
run: |
|
||||
set -o pipefail
|
||||
go test -p=1 ./internal/web/service ./internal/web/job -run '^TestClientIpSyncPostgres(Scanner)?$' -count=1 -v | tee /tmp/postgres-client-ip-sync.log
|
||||
go test -p=1 ./internal/web/service ./internal/web/job -run '^TestClientIpSyncPostgres(Scanner|Scheduler)?$' -count=1 -v | tee /tmp/postgres-client-ip-sync.log
|
||||
passed=$(grep -c -- '^--- PASS' /tmp/postgres-client-ip-sync.log || true)
|
||||
if [ "$passed" -ne 2 ]; then
|
||||
echo "expected 2 passing PostgreSQL client IP sync tests, got $passed" >&2
|
||||
if [ "$passed" -ne 3 ]; then
|
||||
echo "expected 3 passing PostgreSQL client IP sync tests, got $passed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL IP reporter lock order and lifecycle
|
||||
run: |
|
||||
set -o pipefail
|
||||
go test ./internal/web/service -run '^TestPostgres(NodeIPReporterClientLockOrder|FlatIPReporterLifecycleCommit|PolledAttributionSurvivesConcurrentPrune)$' -count=1 -v | tee /tmp/postgres-ip-reporter-locks.log
|
||||
for test in NodeIPReporterClientLockOrder FlatIPReporterLifecycleCommit PolledAttributionSurvivesConcurrentPrune; do
|
||||
if ! grep -q -- "^--- PASS: TestPostgres${test} " /tmp/postgres-ip-reporter-locks.log; then
|
||||
echo "expected PostgreSQL reporter test TestPostgres${test} to pass" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: PostgreSQL Xray traffic retry
|
||||
run: |
|
||||
set -o pipefail
|
||||
@@ -144,6 +155,39 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL inbound catalog scope and projection
|
||||
run: go test ./internal/web -run '^TestRemoteInboundCatalogScopeAndProjection$' -count=1 -v
|
||||
|
||||
- name: PostgreSQL online attribution regressions
|
||||
run: |
|
||||
set -o pipefail
|
||||
go test -p=1 ./internal/web/job ./internal/web/service -run '^Test(InboundOnlineAvailabilityDistinguishesEmptyFromMissing|SetRemoteTraffic_RemapsActiveInboundTreeAndCentralTags|XrayTrafficRetryDoesNotPublishOnlineStateAcrossCoreReplacement)$' -count=1 -v | tee /tmp/postgres-online-attribution.log
|
||||
passed=$(grep -c -- '^--- PASS: Test' /tmp/postgres-online-attribution.log || true)
|
||||
if [ "$passed" -ne 3 ]; then
|
||||
echo "expected 3 passing PostgreSQL online attribution tests, got $passed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL node client push ordering
|
||||
run: |
|
||||
set -o pipefail
|
||||
go test ./internal/web/service -run '^Test(NodeClientMutationsCommitWhileAnEarlierPushIsBlocked|NodeClientQueueTimeoutDefersCommittedDelta|NodeClientCapacityPreservesPermanentDelete|NodeWideDeleteSkipsReattachmentSentByQueuedReconcile|NodeWideDeleteRetriesAfterQueueExpiry|BulkDeleteStopsPushingToAHungNode|ReconcileDoesNotOvertakeCommittedClientState|TrafficDepletionWaitsForEarlierNodeClientPush|Create(GroupsCompatibleInboundsOnOneRemote|SplitsFlowAndSendsResolvedInbounds|UsesEffectiveAllowedIPsOnRemote|DispatchesReadyLaneBeforeBlockedLane|CancellationStopsFurtherNodeWaves)|GroupedCreate(ReconcilesUnsentRebasedSettings|RecoversIndeterminateDelivery|RepairsDeferredTargets|DispatchesIndependentReadyPayload|OrdersLaterClientMutations|ReconcileBarrierDrainsAfterAcknowledgment|KeepsFifthNodeDurablyPendingWhenBudgetExpires|PreservesProtocolCredentials))$' -count=1 -v | tee /tmp/postgres-node-client-order.log
|
||||
passed=$(grep -c -- '^--- PASS' /tmp/postgres-node-client-order.log || true)
|
||||
if [ "$passed" -ne 21 ]; then
|
||||
echo "expected 21 passing PostgreSQL node client ordering tests, got $passed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL client inbound read regressions
|
||||
run: |
|
||||
set -o pipefail
|
||||
go test ./internal/web/service -run '^Test(ClientCreate(ReadsInboundSettingsOnlyForMutation|ClearsFlowOnIneligibleInbound|PreservesSettingsBasedDefaults)|UpdateInboundClientReadsSettingsOnceBeforeCommit|Slim(Create(UsesLockedFlowForGroupedDelivery|HealthyTargetsProgressWithBlockedPeer|ProjectionPreservesNodeIDAndProtocolSettings)|AttachUsesLockedFlowAndPreservesRawAdd|UpdateRebasesConcurrentSettings))$' -count=1 -v | tee /tmp/postgres-client-inbound-reads.log
|
||||
passed=$(grep -c -- '^--- PASS' /tmp/postgres-client-inbound-reads.log || true)
|
||||
if [ "$passed" -ne 9 ]; then
|
||||
echo "expected 9 passing PostgreSQL client inbound read tests, got $passed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL global-traffic heartbeat regressions
|
||||
run: |
|
||||
set -o pipefail
|
||||
@@ -204,6 +248,16 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL slim inbound cache regressions
|
||||
run: |
|
||||
set -o pipefail
|
||||
go test ./internal/web/service -run '^TestSlimInboundListReusesOnlyTheMatchingSettingsRevision$' -count=1 -v | tee /tmp/postgres-slim-inbound-cache.log
|
||||
passed=$(grep -c -- '^--- PASS: TestSlimInboundListReusesOnlyTheMatchingSettingsRevision ' /tmp/postgres-slim-inbound-cache.log || true)
|
||||
if [ "$passed" -ne 1 ]; then
|
||||
echo "expected the PostgreSQL slim inbound cache regression to pass, got $passed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL node snapshot regressions
|
||||
run: |
|
||||
set -o pipefail
|
||||
@@ -214,6 +268,22 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL node client reconciliation
|
||||
run: |
|
||||
set -o pipefail
|
||||
go test ./internal/web/service -run '^Test(NodeFullReconciliation|NodeMerge(BatchesBaselinesForActiveClients|LetsSubscriptionTouchDuringClientReconciliationPostgres)$)' -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 4 ]; then
|
||||
echo "expected 4 passing node client reconciliation tests, got $passed" >&2
|
||||
exit 1
|
||||
fi
|
||||
for test in TestNodeMergeBatchesBaselinesForActiveClients TestNodeMergeLetsSubscriptionTouchDuringClientReconciliationPostgres; do
|
||||
if ! grep -q -- "^--- PASS: $test " /tmp/postgres-node-client-reconciliation.log; then
|
||||
echo "expected PostgreSQL regression to pass: $test" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: PostgreSQL node counter reset regressions
|
||||
run: |
|
||||
set -o pipefail
|
||||
@@ -224,6 +294,16 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL node merge contention
|
||||
run: |
|
||||
set -o pipefail
|
||||
go test ./internal/web/service -run '^TestNodeMerge(LetsSubscriptionTouchDuringClientReconciliationPostgres|BatchesBaselinesForActiveClients)$' -count=1 -v | tee /tmp/postgres-node-merge-contention.log
|
||||
passed=$(grep -c -- '^--- PASS' /tmp/postgres-node-merge-contention.log || true)
|
||||
if [ "$passed" -ne 2 ]; then
|
||||
echo "expected both PostgreSQL node merge contention tests to pass, got $passed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: PostgreSQL schema and migration tests
|
||||
run: |
|
||||
set -o pipefail
|
||||
|
||||
Reference in New Issue
Block a user