mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-25 12:04:44 +03:00
chore(ci): run the real-core tests in CI
The tests gated on XRAY_E2E_BINARY start the core pinned in go.mod as a child process and drive its gRPC API: user add and remove, hot apply, balancer overrides, the REALITY probe and the AmneziaWG relay. No job set the variable, so they skipped in every run and a green CI had never touched the core. `make xray-e2e` builds that core from the module cache and runs every package holding such a test; the new job fails when one of them still skips for want of the binary. The reviewer and analyst context files said these tests never run in CI and now name the job that does.
This commit is contained in:
@@ -282,6 +282,22 @@ jobs:
|
||||
make node-e2e 2>&1 | tee /tmp/node-e2e.log
|
||||
if grep -q -- '--- SKIP' /tmp/node-e2e.log; then echo "node-e2e skipped"; exit 1; fi
|
||||
|
||||
# The core pinned in go.mod as a real child process, driven over its gRPC API.
|
||||
# A skip naming the binary means it was never handed over, so it fails the job.
|
||||
xray-e2e:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-go@v7
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- name: Real core end to end
|
||||
run: |
|
||||
set -o pipefail
|
||||
make xray-e2e 2>&1 | tee /tmp/xray-e2e.log
|
||||
if grep -q -- '_test.go:[0-9]*: .*XRAY_E2E_BINARY' /tmp/xray-e2e.log; then echo "a real-core test skipped"; exit 1; fi
|
||||
|
||||
# Brief native-fuzz smoke on the security-/parser-critical decoders. Each runs the
|
||||
# generated corpus plus 30s of exploration; a crash here is a real input-handling bug.
|
||||
fuzz-smoke:
|
||||
|
||||
Reference in New Issue
Block a user