16 Commits
Author SHA1 Message Date
eries 6692de5271 bench(core): gate the real-I/O bench harness behind udp-bench 2026-10-20 05:34:56 +11:00
eries 07b892f6ae test(ci): run the shared-source sing-box interop matrix weekly 2026-10-20 05:34:56 +11:00
eries e70ee2698c test(ci): isolate DNS smoke runtime state 2026-10-12 01:57:48 +08:00
Zakk da2936620d build(native-ui): fetch doona at packaging time instead of vendoring it 2026-10-07 22:24:42 +11:00
M0re Co1ors c38871c5ca feat(vless)!: align UDP multiplexing and harden outbound boundaries (#246)
* 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
2026-09-16 16:47:46 +08:00
Zakk 5752c72ce5 ci: run the DNS smoke on the release honk-core in its own lane (#244)
* ci: run the DNS smoke on the release honk-core in its own lane

* ci: report the release binary size and cap the smoke CPU

* ci: floor the slowest-test limit at 30 s
2026-09-14 10:40:45 +08:00
Zakk f16215fe41 ci: run only the affected lanes, check docs links, add the label-triggered full lanes, weekly drift, release smoke and the results comment (#239)
* ci: check docs links on every change and skip the Rust lanes for prose-only pull requests

* ci: add the ebpf compile guard, the eBPF path filter and the label-triggered full lanes

* ci: add the weekly drift workflow

* ci(release): start the x86_64 artefacts once before publishing

* ci: surface hidden data and easy-to-miss signals in one pull-request comment

* docs(design): point control-plane.md at routing.md's current headings
2026-09-13 23:03:48 +08:00
M0re Co1ors 8b2ad586fe refactor(ebpf): prune legacy APIs and restore RX/NDP handling (#172)
* test(hysteria2): read the complete salamander TCP echo

* test(dns): disable NFQUEUE in the mock smoke fixture

* refactor(ebpf): prune legacy APIs and restore RX/NDP handling
2026-09-07 23:56:44 +08:00
M0re Co1ors e183aa25eb perf(reload): retain unchanged runtime generations (#85)
* perf(reload): retain unchanged runtime generations

* bench(reload): gate identical reload regressions
2026-08-28 16:00:06 +08:00
M0re Co1ors 41ec601855 feat(group): add always-on score policy (#43)
* feat(group): add adaptive honk policy

* docs(group): document optional honk policy

* ci(group): test optional honk policy

* feat(group): score real QUIC probe outcomes

* feat(group): make score policy always-on and time-aware

* docs(group): document built-in score policy

* perf(group): avoid decayed score snapshot copies
2026-08-19 09:16:27 +08:00
eries 0b79ac530f test(dns): add compatibility smoke gate 2026-08-09 11:10:30 +08:00
eries 37858d36b1 docs(dns): complete observability benchmarks and rollout 2026-07-30 15:09:19 +08:00
glassyiris 311a92e9b7 ci: add clash-ci gate (clash_api_test + integration_test) 2026-07-29 06:07:21 +08:00
glassyiris 8ff7dde70a feat(dns): route all control-plane name resolution through internal DNS
Audit of every resolver in the tree found six spots still bypassing
honk's DNS stack; all now share it:

- urltest (clash delay): optional UrltestResolver hook, installed by
  honk-core against DnsController::resolve_domain — delay measurements
  follow dns.routing/cache/serve-stale instead of the system resolver
- alive: raw-TCP fallback probe and startup check-URL seed resolution
  use the same ResolveHook instead of lookup_host
- udp_check_dns: domain entries resolve through the internal DNS hook
  (literal entries still win), reload-safe via DnsController
- subscriptions: reqwest gets a reqwest::dns::Resolve backed by the
  bootstrap resolver (bypass-marked), so subscription fetches no
  longer depend on a poisonable system resolver

Verified live on the gateway with a split-DNS config
(223.5.5.5 UDP + dns.alidns.com DoH + dns.alidns.com DoQ + 1.1.1.1
DoH3): baidu/google/bing resolve via their designated upstreams, the
environment-blocked DoH3 upstream fails isolated (other domains
unaffected), and health-check resolution degrades to the system
fallback when the internal path has no answer.

Adds ci/dns-ci.sh + just dns-ci gate (fmt, clippy, config, dns,
control, outbound suites) — ALL GREEN.
2026-07-28 02:10:33 +08:00
glassyiris 30e6fb3587 refactor(outbound): deduplicate, drop unnecessary unsafe, unify style
Audit-driven cleanup (4-way parallel audit):

- ProxyHandler::test_connectivity gets a default implementation;
  eight byte-identical copies across handlers deleted
- util.rs TCP keepalive now uses socket2's safe API (was two raw
  libc::setsockopt blocks) and connect_marked_addr is one code path
  instead of two 90-line branches; marked UDP socket creation unified
  between quic.rs and util.rs
- alive: remove the RecoveryState dead state machine (~100 lines),
  extract probe_backoff, DialerCollection::update_moving_average and
  PerProtocolState::reset_on_success (each was triplicated)
- group: std RwLock -> parking_lot (drops a dozen unwraps, matches
  the rest of the crate)
- quic_boring: HKDF expand-label info builder shared between
  sha256/sha384 variants; anytls md5_hex hand-roll replaced with a
  fmt::Write fold; transport wrote_preface/wrote_headers dead fields
  removed

No behavior change intended; 264 lib tests + clippy clean.
2026-07-28 01:30:38 +08:00
glassyiris 8a9752b20a build: fix cross builds, eBPF BTF embedding, and the release workflow
eBPF BTF: build.rs now verifies the object it embeds actually contains
.BTF (aya refuses BTF-less objects at runtime on the gateway), rebuilds
when missing or BTF-less, and strips RUSTFLAGS/CARGO_ENCODED_RUSTFLAGS
from the child env — an environment RUSTFLAGS overrides
crates/honk-ebpf/.cargo/config.toml's --btf flags and silently produces
BTF-less objects (the 'no BTF parsed for object' incident). A stale
BTF-less copy from an earlier build also sat in the musl OUT_DIR
because build.rs never reran there.

Cross builds (ci/zigcc, ci/zigcxx, ci/zig-bindgen-env): boring-sys
needs a clang-compatible toolchain under cross — CMake injects
clang-style --target flags into its ASM rules that real GCC rejects
and zig rejects in Rust-triple spelling, and bindgen needs zig's target
headers instead of the host's. The wrappers strip/rewrite those flags
(plus rustc's aarch64 errata linker args); musl targets link with
-C link-self-contained=no so zig supplies the CRT (duplicate _start
otherwise). Verified locally: x86_64-musl (static, runs), aarch64-gnu
(glibc 2.28), aarch64-musl (static) — all with BTF-ful embedded objects.

Justfile: build-musl uses the zig wrappers; build-ebpf warns on
RUSTFLAGS and verifies .BTF; test-ci mirrors the CI gate; clean-all
also removes the live table-100 policy routes (2023/iptables lines are
now marked legacy); dropped run/deploy/docker* recipes whose scripts/
Dockerfile don't exist in this tree.

release.yml: test job installs cmake+libclang and skips only the 3
known-failing pre-existing tests; build job verifies eBPF BTF and
cross-builds via the zig wrappers (zig 0.14.1) instead of cross.
2026-07-23 03:28:24 +08:00