tests/scripts/run_lxc_state_aware_test.sh is 176 lines and exercises a single provision/start/stop/deprovision scenario. tests/scripts/run_wslc_state_aware_tests.ps1 is 1,117 lines across 9 scenario groups. Raised by Soham Das (@SohamDas2021) in review of PR #849.
Not all of the gap is real work:
- The two daemon-oriented WSLC groups (daemon idle teardown and daemon recovery) do not apply. LXC is daemonless, so there is no idle daemon to tear down and nothing to recover.
- Whether the bridged-proxy group applies to LXC is unverified — it needs a decision before it is worth writing.
The remainder is genuine coverage the LXC script does not have: repeated lifecycle cycles, teardown when the container is already gone, concurrent lifecycle calls against one name, and firewall-policy enforcement end to end.
Separately, the script's environment guard is weaker than it looks. It checks for root, for lxc-create on PATH, and for the built binary, then exits 77 (skip). None of those establishes a functional LXC runtime, so the script can proceed on a host where the runtime cannot actually start a container, and a real failure there is not distinguishable from a broken environment.
Filed rather than fixed in PR #849: that PR is already 33 files and +6192/-566, and its unmerged predecessor #633 failed at 87 comments and 42 commits with the same growth shape.
tests/scripts/run_lxc_state_aware_test.shis 176 lines and exercises a single provision/start/stop/deprovision scenario.tests/scripts/run_wslc_state_aware_tests.ps1is 1,117 lines across 9 scenario groups. Raised by Soham Das (@SohamDas2021) in review of PR #849.Not all of the gap is real work:
The remainder is genuine coverage the LXC script does not have: repeated lifecycle cycles, teardown when the container is already gone, concurrent lifecycle calls against one name, and firewall-policy enforcement end to end.
Separately, the script's environment guard is weaker than it looks. It checks for root, for
lxc-createonPATH, and for the built binary, then exits 77 (skip). None of those establishes a functional LXC runtime, so the script can proceed on a host where the runtime cannot actually start a container, and a real failure there is not distinguishable from a broken environment.Filed rather than fixed in PR #849: that PR is already 33 files and +6192/-566, and its unmerged predecessor #633 failed at 87 comments and 42 commits with the same growth shape.