code wiki / (root) / nx_print_loop_e2e_test.nx

nx_print_loop_e2e_test.nx

buildroot/runtime/nx_print_loop_e2e_test.nx

6017 B164 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic print
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_print_runtime_monitor.nx nx_print_telemetry.nx nx_print_response.nx nx_print_loop_e2e_test.nx

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

main nx_runtime_monitor_new sys_mmap nx_runtime_monitor_set_the nx_runtime_monitor_set_lay sys_mmap ↻ nx_print_telemetry_new sys_mmap ↻ nx_runtime_monitor_pump_te nx_runtime_monitor_step_la nx_runtime_monitor_step nx_runtime_monitor_step_th nx_rt_thermal_axis_check nx_runtime_monitor_step_ru nx_print_build_response_fo nx_print_response_for_issu nx_print_build_pause_reque nx_mr_build_post_request nx_mr_write_cstr nx_mr_write_bytes nx_mr_write_int nx_print_build_cancel_requ nx_mr_build_post_request ↻ contains_substring

structs

none

consts

36const Q14: i64 = 16384

functions

38func contains_substring(hay: *u8, hay_len: i64, needle: *u8) -> i64
called by 1: main
56func main() -> i64