Commit Graph
16 Commits
Author SHA1 Message Date
eric bedc609506 test(e2e): run the reference plugins against upstream servers
A new interop lane puts a real leaf with each plugin in front of the servers
people deploy, built from source at pinned revisions: anytls-go, sing-box
stable and its testing branch, mihomo, and the original shadow-tls. Every
pair runs the stream behaviours, plus the server's padding scheme checked on
the wire, fingerprints, and the connections that must fail: wrong password,
hijacked to the real site, TLS 1.2 site in strict mode.

AnyTLS skips half-close-tail, which its protocol cannot carry. ShadowTLS
marks it a known defect: the host shuts the socket's write side while an
engine is still handshaking.

`make interop` runs the lane, `make e2e` leaves it out, and CI runs it in a
job of its own with the built servers cached. The harness no longer hands
out a port twice in one process, and builds upstream Rust servers with their
own toolchain, outside the workspace.
2026-12-03 19:31:53 +08:00
eric c08f3dd0f9 build: run the plugin suites in CI, and ignore what the plugins build
`make e2e` runs the end-to-end suite with `--strict`, minus the soak lane;
`make soak` is that lane plus the slow cost meters. `make plugin-test` covers
what an end-to-end run cannot reach -- the host's own loader and wrapper
tests, the ABI parity test, and each plugin's unit tests, one language at a
time -- and `make plugin-test-san` builds the C plugin's tests under address
and undefined-behaviour sanitizers, kept separate because not every toolchain
ships the runtimes.

CI grows a plugin job on Linux and macOS that runs the suite and
`make plugin-test`, and checks that `leaf-cli` still builds with plugin
support, since nothing else in the matrix compiles that feature. The same lane
exists for Windows but is started by hand: the suite has been through Windows
green on ARM64, and this runner is x86-64. A sanitizer lane runs the hostile
cases with the runtime exported so a plugin loads against it, and uploads the
artifact directory when a case fails. The soak workflow is the one that is
nightly: it runs the long lane out of hours with a longer timeout scale and
more meter repetitions, so its numbers are worth comparing between nights.

`.gitignore` learns the artifacts the plugin builds leave in the tree.
2026-12-03 19:31:53 +08:00
Chinsyo 8bc305c342 Update github actions checkout to v4, update rust-toolchain for *-apple-darwin to stable 2024-10-19 09:02:06 +08:00
eric 415dab3b66 Updated upload-artifact@v4 and download-artifact@v4 2024-10-05 13:22:21 +08:00
eric 42c9d74676 Use ring as default crypto backend 2024-05-06 19:45:50 +08:00
eric 7a31f50c56 chore: fix cross build 2024-05-02 02:46:18 +08:00
eric e2541dc594 net: return error instead of panic on receiving unexpected target 2024-04-20 21:06:44 +08:00
eric 7b70f71873 ci: remove mips* targets 2024-01-21 01:44:07 +08:00
eric df960e88d9 ci: fix deps installation 2023-06-17 03:08:32 +08:00
eric 4e6117b376 Build Android and iOS/macOS libraries on CI 2023-03-31 06:56:22 +08:00
eric 0195e9a9bc ci: enable tests 2022-04-20 23:02:35 +08:00
eric 5a6c4cec96 chore: strip was stabilized 2022-04-19 02:23:41 +08:00
eric 2cbec8bcd3 refactor 2021-07-02 06:37:07 +08:00
eric 2da69970c9 ci: pass strip flag via env variable 2021-03-06 10:13:57 +08:00
eric 775048f62f ci: fix workflow 2021-02-24 15:10:36 +08:00
eric da3cee9ff5 tests: added a simple integration test 2021-02-24 15:06:44 +08:00