[BUG] Resolve the nested conditional-resize test module explicitly #7

Closed
opened 2026-09-29 16:57:12 +02:00 by erikinkinen · 0 comments
Owner

Summary

The conditional-resize unit-test module has an implicit nested module path which resolves outside its actual directory. Rustfmt cannot traverse Vfsd's module tree, and the same source declaration prevents the new test module from being loaded through its intended path.

Reproduction

Apply rustfmt --edition 2024 src/main.rs in Vfsd with the conditional-resize test module present. The failure was observed once during source formatting. The checked-in src/exact_invocation/tests.rs declares mod conditional_resize;, while the child file is src/exact_invocation/tests/conditional_resize.rs. The parent test module itself is loaded through an explicit path in src/exact_invocation.rs.

Expected and actual behavior

Expected: module traversal finds the conditional-resize controls. Actual: rustfmt reports failed to resolve mod conditional_resize and seeks src/exact_invocation/conditional_resize.rs, which does not exist. Declare the child path explicitly relative to the containing source directory.

Environment and identity

  • Affected Vfsd source: 660d0fa1b3.
  • Integration source selection: 47fb79a7e963553902321f5db0e6341eb83cc253.
  • Rust edition: 2024; no image or VM is involved.
  • No authority changes are required for the fix.
  • No known earlier working revision of this new test module is claimed.

Evidence and prior checks

Implemented in signed Vfsd source 080f48dd: the nested child declaration now explicitly selects tests/conditional_resize.rs. Applying rustfmt now traverses that source tree. Existing controls are retained. This is formatting/source-resolution evidence only; test, compiler and CI execution remain deferred. Closed under the implementation acceptance waiver.

This is a source-path observation from applying formatting, not a test or compiler run. Tests, builds, lint checks and CI observation are deferred by user instruction. The regression controls already exist; preserve them and make their module path explicit. Closure records source implementation independently of deferred execution.

Tracking

Owning review: #3. Related native feature: #6. Phase completion: erix/integration#65.

## Summary The conditional-resize unit-test module has an implicit nested module path which resolves outside its actual directory. Rustfmt cannot traverse Vfsd's module tree, and the same source declaration prevents the new test module from being loaded through its intended path. ## Reproduction Apply `rustfmt --edition 2024 src/main.rs` in Vfsd with the conditional-resize test module present. The failure was observed once during source formatting. The checked-in `src/exact_invocation/tests.rs` declares `mod conditional_resize;`, while the child file is `src/exact_invocation/tests/conditional_resize.rs`. The parent test module itself is loaded through an explicit path in `src/exact_invocation.rs`. ## Expected and actual behavior Expected: module traversal finds the conditional-resize controls. Actual: rustfmt reports `failed to resolve mod conditional_resize` and seeks `src/exact_invocation/conditional_resize.rs`, which does not exist. Declare the child path explicitly relative to the containing source directory. ## Environment and identity - Affected Vfsd source: 660d0fa1b3d30b2e712692d03cd78878adf03bf7. - Integration source selection: 47fb79a7e963553902321f5db0e6341eb83cc253. - Rust edition: 2024; no image or VM is involved. - No authority changes are required for the fix. - No known earlier working revision of this new test module is claimed. ## Evidence and prior checks Implemented in [signed Vfsd source `080f48dd`](https://git.erikinkinen.fi/erix/vfsd/commit/080f48dd71b957ac19c1fad1dd4a8bb819fb80c6): the nested child declaration now explicitly selects `tests/conditional_resize.rs`. Applying rustfmt now traverses that source tree. Existing controls are retained. This is formatting/source-resolution evidence only; test, compiler and CI execution remain deferred. Closed under the implementation acceptance waiver. This is a source-path observation from applying formatting, not a test or compiler run. Tests, builds, lint checks and CI observation are deferred by user instruction. The regression controls already exist; preserve them and make their module path explicit. Closure records source implementation independently of deferred execution. ## Tracking Owning review: https://git.erikinkinen.fi/erix/vfsd/pulls/3. Related native feature: https://git.erikinkinen.fi/erix/vfsd/issues/6. Phase completion: https://git.erikinkinen.fi/erix/integration/issues/65.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:35:16 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/vfsd#7
No description provided.