[BUG] Ordinary host build includes state with excluded dependencies #7

Closed
opened 2026-10-01 22:12:14 +02:00 by erikinkinen · 0 comments
Owner

Summary

The RAM provider includes its filesystem state module in an ordinary host build,
but excludes the entry, record, tree and storage modules that it imports. This
makes the host configuration structurally inconsistent.

Reproduction

At revision 5e0bddcf63822fc575865488ab08097c9d048f0d, inspect src/main.rs:
mod instances is unconditional, while its required modules are guarded by
any(test, all(target_arch = "x86_64", target_os = "none")). Inspect the imports
at the beginning of src/instances.rs. An ordinary host cargo build has neither
configuration predicate and therefore excludes those imported modules. The
command is supplied for later reproduction; it has not been executed here.

Expected and actual behavior

Expected: the ordinary host stub excludes native/test filesystem state together
with its dependent modules; host unit tests and the native target include them.
Actual source: the state module remains included when its imports are excluded.
No compiler output, exit status, runtime failure or CI result is claimed.

Environment and identity

  • Component: ramfsd 5e0bddcf63822fc575865488ab08097c9d048f0d, feature/posix-compat.
  • Configuration: ordinary host build without cfg(test) or target_os=none.
  • Image, firmware and runtime authority: not applicable to module inclusion.
  • Toolchain and last known working revision: not established by execution.

Evidence and prior checks

Source inspection directly shows the inconsistent module predicates. Existing
host tests set cfg(test) and therefore do not expose this ordinary-host case.
Testing, builds, validation checks and CI observation are currently deferred by
request. Preserve those constraints and do not substitute inferred compiler output
for actual reproduction evidence.

Tracking

RAM audit,
RAM review,
Phase 6 tracker.
Align the state/name module predicates with their native/test dependencies while
preserving the ordinary host stub and native/test behavior.

Source repair and disposition

Fixed in ramfsd 74edc843.
State and name modules now use the same native/test predicates as their imported
storage dependencies. The ordinary host stub remains independent. Close as
source-complete under the explicit testing/CI waiver; builds, unit tests and CI
observation remain unperformed, and no executed reproduction/pass is claimed.

## Summary The RAM provider includes its filesystem state module in an ordinary host build, but excludes the entry, record, tree and storage modules that it imports. This makes the host configuration structurally inconsistent. ## Reproduction At revision `5e0bddcf63822fc575865488ab08097c9d048f0d`, inspect `src/main.rs`: `mod instances` is unconditional, while its required modules are guarded by `any(test, all(target_arch = "x86_64", target_os = "none"))`. Inspect the imports at the beginning of `src/instances.rs`. An ordinary host `cargo build` has neither configuration predicate and therefore excludes those imported modules. The command is supplied for later reproduction; it has not been executed here. ## Expected and actual behavior Expected: the ordinary host stub excludes native/test filesystem state together with its dependent modules; host unit tests and the native target include them. Actual source: the state module remains included when its imports are excluded. No compiler output, exit status, runtime failure or CI result is claimed. ## Environment and identity - Component: ramfsd `5e0bddcf63822fc575865488ab08097c9d048f0d`, feature/posix-compat. - Configuration: ordinary host build without `cfg(test)` or target_os=none. - Image, firmware and runtime authority: not applicable to module inclusion. - Toolchain and last known working revision: not established by execution. ## Evidence and prior checks Source inspection directly shows the inconsistent module predicates. Existing host tests set `cfg(test)` and therefore do not expose this ordinary-host case. Testing, builds, validation checks and CI observation are currently deferred by request. Preserve those constraints and do not substitute inferred compiler output for actual reproduction evidence. ## Tracking [RAM audit](https://git.erikinkinen.fi/erix/ramfsd/issues/1), [RAM review](https://git.erikinkinen.fi/erix/ramfsd/pulls/2), [Phase 6 tracker](https://git.erikinkinen.fi/erix/integration/issues/65). Align the state/name module predicates with their native/test dependencies while preserving the ordinary host stub and native/test behavior. ### Source repair and disposition Fixed in [ramfsd `74edc843`](https://git.erikinkinen.fi/erix/ramfsd/commit/74edc8433fa074935057a293d755a95dc111add9). State and name modules now use the same native/test predicates as their imported storage dependencies. The ordinary host stub remains independent. Close as source-complete under the explicit testing/CI waiver; builds, unit tests and CI observation remain unperformed, and no executed reproduction/pass is claimed.
erikinkinen 2026-10-01 22:12:14 +02:00
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:35:11 +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/ramfsd#7
No description provided.