Update dependencies and enhance VFS staleness testing

- Updated several dependencies in Cargo.lock, including `clap`, `env_logger`, and `rand`, to their latest versions for improved functionality and security.
- Introduced a new API endpoint `/api/validate-tree` for checking tree freshness without applying corrections, enhancing the validation process.
- Added a `TreeFreshnessReport` struct to encapsulate the results of the tree freshness check, providing detailed insights into discrepancies.
- Completed multiple todos in the VFS staleness test plan, ensuring comprehensive coverage for various scenarios and improving the robustness of the testing framework.

These changes enhance the project's dependency management and testing capabilities, ensuring better alignment with the latest implementation standards.
This commit is contained in:
Joe 2026-02-11 18:50:43 -06:00
parent 200c5ca219
commit e2f515d8eb
16 changed files with 538 additions and 39 deletions

View file

@ -4,28 +4,28 @@ overview: Create test fixtures that replicate VFS tree staleness, add a tree-fre
todos:
- id: api-endpoint
content: Add GET /api/validate-tree endpoint that re-snapshots and returns drift counts without correcting the tree
status: pending
status: completed
- id: session-method
content: Extract check_tree_freshness() in ServeSession (no age gate, no apply, returns counts) and set VALIDATE_TREE_ON_CONNECT = false
status: pending
status: completed
- id: test-helper
content: Add assert_tree_fresh() helper and ValidateTreeResponse type to tests/rojo_test/serve_util.rs
status: pending
status: completed
- id: fixture
content: Create rojo-test/serve-tests/stale_tree/ fixture with project file and multiple scripts
status: pending
status: completed
- id: staleness-tests
content: "Write 4 new staleness tests: bulk changes, post-API external edit, rapid delete/recreate, directory restructure"
status: pending
status: completed
- id: append-freshness
content: Append assert_tree_fresh() to all watcher_* and echo_suppression_* tests in two_way_sync.rs
status: pending
status: completed
- id: tighten-echo
content: Tighten echo suppression cursor_delta assertion from < 10 to <= 3
status: pending
status: completed
- id: chaos-fuzzer
content: Write chaos fuzzer test that slams the filesystem with random operations for 10 seconds, then asserts tree freshness
status: pending
status: completed
isProject: false
---