CI: Fix clippy warnings, env var mismatch in pid1 tests, narrow workflow triggers #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
build.yamlandtest.yamlCI workflows have pre-existing failures:1. Clippy warnings in pid1 integration tests
tests/integration/tests/pid1_behavior.rstriggers clippy lints:zombie_processes:Childprocesses are.kill()ed but never.wait()edcollapsible_if: nestedifblocks that can be combined2. Env var mismatch in pid1 integration tests
The pid1 binary (
crates/zinit_pid1/src/main.rs:300) readsZINIT_OPENRPC_BINto find the server binary, but the integration tests (pid1_behavior.rs:38,99,165) passZINIT_SERVER_BINinstead. This causes pid1 to fall back to hardcoded paths (/sbin/zinit_openrpc) which don't exist in CI.3. Workflow triggers too broad
build.yamlandtest.yamltrigger onpush: branches: ["*"]. Should be narrowed to[development, main]to matchbuild-linux.yaml.Fix
.wait(), flatten nested ifs)ZINIT_SERVER_BINtoZINIT_OPENRPC_BINin pid1_behavior.rs[development, main]Ref #19