You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI never runs sozu-command-lib's 170 tests: no workflow names the package and there is no cargo test --workspace #1539
Measured against origin/main at aaf2a6aa04f485bef45b800ab5aeddfec510beaa.
command/src/ carries 170 #[test] functions across 13 files. None of them runs in CI.
.github/workflows/ci.yml tests exactly four packages — -p sozu-lib, -p sozu, -p sozu-e2e, -p sozu-sim — and simulation-sweep.yml adds two more -p sozu-sim
invocations. There is no cargo test --workspace anywhere, and sozu-command-lib is named
in no workflow except a license line in release.yml.
They pass. Running cargo test -p sozu-command-lib locally gives 171 passed, 0 failed. So this
is not a quarantine anyone chose — the package was simply never added, and nothing reports its
absence. A test that never runs is indistinguishable from a test that always passes.
This repository has already been bitten by this twice, and fixed it package by package
ci.yml's own comments record both:
The sozu binary crate carries the master-side command-server unit tests
(command/requests.rs, command/server.rs): the rollback, response accounting and channel
backpressure guarantees of sozu#1301/#1313/#1314 live there and were never exercised by CI.
They stay #[ignore]d so a contributor's cargo test stays fast, and this step is what runs
them; before it existed they never ran anywhere.
Each fix added the one package it was about. sozu-command-lib was not in scope either time, so
it survived both.
What is unguarded
command/ holds the configuration parser and validator, the protobuf request/response types, the
channel implementation, the logging macros and the state that sozu-lib and sozu both build on.
A regression in config validation or in Channel back-pressure reaches CI only if some other
package's test happens to exercise it through its own surface.
Fix
Add a Test sozu-command-lib step. Two things worth deciding rather than assuming:
Where. The four-cell crypto matrix runs its steps once per provider. sozu-command-lib has
no crypto-provider feature, so putting it there would run the same 171 tests four times for one
result. A single job is the cheaper placement, unless something in command/ does vary by
matrix flag — check before choosing.
--locked and the feature flags. Match whatever the neighbouring steps use, so a
dependency drift fails here the same way it fails there.
Adding the step is expected to be green on the current tree; if it is not, that failure is the
point of the issue and must be reported rather than skipped.
How this surfaced
Found while implementing #1270: two config-validation tests were written in command/, and the
question "will these actually run?" turned out to have the answer "no, and neither do the other
169".
Activity
ci(test): run sozu-command-lib's tests, which no workflow named (sozu…
feat(server): add a per-(cluster, source-subnet) connection limit (#1538