[BUG] Native members tests cannot compile without IPC block tracing #51

Closed
opened 2026-10-12 19:16:58 +02:00 by erikinkinen · 1 comment
Owner

Summary

Hosted Kernel tests with the native members feature fail to compile when IPC block tracing is disabled. The disabled-feature control imports an enabled predicate that is excluded by its feature gate.

Reproduction

From Kernel 3f9ba9cd357bcd4474e24e1d9cc62e83891b9dab:

RUSTFLAGS='-D warnings' cargo +1.93.0 test --lib --features kernel-owned-members-selftest --quiet

An independent unchanged signed checkout reproduces the collection failure.

Expected and actual behavior

The cap-free predicate should be available to its disabled-feature test and return false. Actual tracing should stay disabled. Instead, rustc reports E0432 at syscall/reporting_tests.rs:2: ipc_block_trace_enabled is configured out by dispatch_trace.rs. Cargo exits 101 before tests execute.

Environment and identity

  • Kernel: 3f9ba9cd357bcd4474e24e1d9cc62e83891b9dab, unchanged signed dependency graph.
  • Hosted x86-64 Rust 1.93.0, native members feature enabled, IPC block trace feature omitted.
  • No image, VM, process endpoint or granted authority is involved.
  • No known working revision established.

Evidence and prior checks

The independent signed checkout and current implementation checkout both expose the same unresolved import. An explicitly trace-enabled graph compiles, but that does not satisfy the disabled-feature control. The repair compiles only the cap-free cfg! predicate for tests or the trace feature. Every production trace cache, selection helper and emitter remains feature-gated. The enabled/disabled predicate control is moved out of the console-gated reporting module and stays active in every hosted feature graph, including default. No dead-code allowance is added.

Tracking

Discovered while adding independent source-byte controls for the native terminal fixture. This is a separate test-collection defect; it does not establish a guest runtime failure.

## Summary Hosted Kernel tests with the native members feature fail to compile when IPC block tracing is disabled. The disabled-feature control imports an enabled predicate that is excluded by its feature gate. ## Reproduction From Kernel `3f9ba9cd357bcd4474e24e1d9cc62e83891b9dab`: ```sh RUSTFLAGS='-D warnings' cargo +1.93.0 test --lib --features kernel-owned-members-selftest --quiet ``` An independent unchanged signed checkout reproduces the collection failure. ## Expected and actual behavior The cap-free predicate should be available to its disabled-feature test and return false. Actual tracing should stay disabled. Instead, rustc reports E0432 at `syscall/reporting_tests.rs:2`: `ipc_block_trace_enabled` is configured out by `dispatch_trace.rs`. Cargo exits 101 before tests execute. ## Environment and identity - Kernel: `3f9ba9cd357bcd4474e24e1d9cc62e83891b9dab`, unchanged signed dependency graph. - Hosted x86-64 Rust 1.93.0, native members feature enabled, IPC block trace feature omitted. - No image, VM, process endpoint or granted authority is involved. - No known working revision established. ## Evidence and prior checks The independent signed checkout and current implementation checkout both expose the same unresolved import. An explicitly trace-enabled graph compiles, but that does not satisfy the disabled-feature control. The repair compiles only the cap-free `cfg!` predicate for tests or the trace feature. Every production trace cache, selection helper and emitter remains feature-gated. The enabled/disabled predicate control is moved out of the console-gated reporting module and stays active in every hosted feature graph, including default. No dead-code allowance is added. ## Tracking Discovered while adding independent source-byte controls for [the native terminal fixture](https://git.erikinkinen.fi/erix/kernel/issues/50). This is a separate test-collection defect; it does not establish a guest runtime failure.
Author
Owner

The fix makes only the cap-free tracing predicate available to hosted tests and moves its selection control next to that predicate. The default, dedicated members and all-feature configurations now compile and pass. Production trace caches and emitters still require the explicit tracing feature.

The [fix](https://git.erikinkinen.fi/erix/kernel/commit/00ec5b12b4fea24b54d6796a3ef954ad2dcac3c7) makes only the cap-free tracing predicate available to hosted tests and moves its selection control next to that predicate. The default, dedicated members and all-feature configurations now compile and pass. Production trace caches and emitters still require the explicit tracing feature.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:30 +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/kernel#51
No description provided.