mirror of
https://github.com/daeuniverse/honk.git
synced 2026-12-06 16:01:20 +00:00
* fix(vless): align default UDP selection with Xray * feat(vless): separate UDP encoding and multiplex ownership * fix(shadowsocks): preserve UDP buffers and replay state * refactor(outbound): simplify ownership and harden transport boundaries * fix(dns): preserve terminal refusals through outer fallbacks * fix(config): preserve safe VLESS rejection diagnostics * docs(vless): clarify breaking migration and carrier limits * fix(dns): preserve terminal refusals across datagram attempts * fix(outbound): make warm retention transitions idempotent * refactor(config): preserve typed VLESS parse failures * refactor(vless): share speculative UDP preparation * refactor(core): separate reused and fresh source preparation * refactor(config): derive the borrowed flat node output * refactor(subscription): split admission tests by ownership * fix(relay): flush buffered writes before waiting for input * fix(session): preserve active warm carriers during linear reaping * fix(health): retry unresolved UDP probe target initialization * fix(config): report ignored VLESS flat fields * fix(session): wake waiters when pool capacity changes * fix(vless): preserve shared source cancellation causes * fix(config): validate structured VLESS mux before normalization * fix(session): retain initiating dial outcomes * fix(udp): serialize source retirement with send state * fix(session): fence dial startup and publication capacity * fix(udp): preserve source outcomes during flow cleanup * fix(session): wake capacity waiters on warm release * fix(session): wake waiters after maintenance drains * fix(reality): reject incomplete settings before transport selection * test(outbound): gate public loopback interop weekly * test(vless): characterize downstream-only Vision on the wire * refactor(outbound): extract inline test modules without renaming * fix(outbound): omit VLESS runtime resources without rprx * refactor(outbound): organize protocol and runtime ownership * docs(outbound): record mechanical blame exclusions * test(rprx): cover handler availability in both build modes * fix(relay): restore frame-sized reads with idle flushing * fix(session): wake capacity waiters when carriers terminate * test(ci): run isolated feature-off regressions * fix(groups): resolve nested final paths across health domains * fix(vless): allow UDP443 by default * fix(core): preserve pending UDP attachments and feature budgets * fix(probes): preserve refusal and capability boundaries * fix(session): classify capacity races and simplify UDP reset * fix(config): preserve explicit TLS security and identity
50 lines
1.7 KiB
Bash
Executable File
50 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
# outbound-ci — full test gate for honk-outbound after any change.
|
|
#
|
|
# Runs, in order and with early exit on failure:
|
|
# 1. fmt check
|
|
# 2. clippy (all targets, warnings denied, rprx off and on separately)
|
|
# 3. honk-config tests (node/share-link fields change together)
|
|
# 4. honk-outbound test suites (rprx off and on separately)
|
|
#
|
|
# Optional live-server e2e (skipped by default):
|
|
# HONK_HY2_SERVER=host:port HONK_HY2_PASSWORD=... [HONK_HY2_MPORT=.. HONK_HY2_MHOP=..]
|
|
# HONK_HY2_SOAK_TARGET=host:port HONK_HY2_SOAK_UDP_TARGET=host:port
|
|
# → runs the hysteria2 real-server e2e + hop soak tests.
|
|
#
|
|
# Usage: ci/outbound-ci.sh [--with-e2e-env]
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
step() { printf '\n==> %s\n' "$1"; }
|
|
|
|
step "cargo fmt --check"
|
|
cargo fmt -p honk-outbound -- --check
|
|
|
|
step "cargo clippy --all-targets --no-default-features -D warnings"
|
|
cargo clippy -p honk-outbound --all-targets --no-default-features -- -D warnings
|
|
|
|
step "cargo clippy --all-targets --no-default-features --features rprx -D warnings"
|
|
cargo clippy -p honk-outbound --all-targets --no-default-features --features rprx -- -D warnings
|
|
|
|
step "cargo test -p honk-config"
|
|
cargo test -p honk-config
|
|
|
|
step "cargo test -p honk-outbound --no-default-features"
|
|
cargo test -p honk-outbound --no-default-features
|
|
|
|
step "cargo test -p honk-outbound --no-default-features --features rprx"
|
|
cargo test -p honk-outbound --no-default-features --features rprx
|
|
|
|
if [ "${1:-}" = "--with-e2e-env" ]; then
|
|
if [ -n "${HONK_HY2_SERVER:-}" ]; then
|
|
step "hysteria2 real-server e2e ($HONK_HY2_SERVER)"
|
|
cargo test -p honk-outbound --lib e2e_real_server_ -- --nocapture
|
|
else
|
|
echo "HONK_HY2_SERVER unset; skipping live e2e"
|
|
fi
|
|
fi
|
|
|
|
printf '\noutbound-ci: ALL GREEN\n'
|