test: add --full flag for lightweight default mode #18
Reference in New Issue
Block a user
Delete Branch "ci-test-light"
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?
Adds a --full flag to test.py to separate fast CI-safe tests from the full benchmark suite.
PR Review
Verdict: PASS — Clean refactoring for fast CI
Files reviewed: 2 (ci.yaml, test.py)
Commits: 4
Changes
--fullflag totest.py; default mode runs 4 fast tests (~0.3s)python3 test.py(light mode)TEST_CASES→TEST_CASES_FULL+TEST_CASES_LIGHT(4 cases: Standard, Compression, Chunk Serialization, All combined)SSH_CASES→SSH_CASES_FULL+SSH_CASES_LIGHT(1 case: basic SSH)RSYNC_CASES→RSYNC_CASES_FULL+RSYNC_CASES_LIGHT(empty)--fullmodeFileNotFoundErrorhandled gracefully (ssh not installed)What looks good
generate_test_files(full=False)skips bulk generation — tests run in ~0.3sif full:— no false failures in CInetem_applyonly called whenis_limited and full— correct for Unlimited profileMinor suggestions (non-blocking)
--delete) to CI for more coverage.netem_reset()is never called (rsync section skipped). If a previous full run left netem rules, they persist. Not an issue in CI (fresh container), but worth noting for local use.Safe to merge.