nx_print_loop_e2e_test.nx
buildroot/runtime/nx_print_loop_e2e_test.nx
about
nx_print_loop_e2e_test.nx -- end-to-end substrate loop:
simulated telemetry -> pump -> verdict -> response wire bytes.
Proves the full substrate-level closure:
telemetry_event (simulated; in prod from Moonraker JSON)
|
v
nx_runtime_monitor_pump_telemetry() (input side, shipped)
|
v
issue verdict (NX_RT_ISSUE_*)
|
v
nx_print_build_response_for_issue() (output side, shipped)
|
v
HTTP POST bytes ready for nx_mr_post_ipv4 (network shipped)
Three scenarios per simulated print:
A. Quiet tick (no issue) -> dispatcher returns 0 bytes
B. PAUSE-class issue (BED_TEMP_DROP) -> wire bytes contain
"POST /printer/print/pause"
C. HARD_STOP issue (LAYER_SHIFT) -> wire bytes contain
"POST /printer/print/cancel"
expect_exit: 0
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_print_runtime_monitor.nxnx_print_telemetry.nxnx_print_response.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 36 | const Q14: i64 = 16384 |
functions
| 38 | func contains_substring(hay: *u8, hay_len: i64, needle: *u8) -> i64 called by 1: main |
| 56 | func main() -> i64 |