Skip to content

feat(log,shell,tests): add dot-progress test runner and forensic JSONL logging (#247) - #248

Merged
marcobuschini merged 1 commit into
mainfrom
247-issue-replace-noisy-shell-test-output-with-dot-progress-failure-details-and-structured-forensic-log-capture
Dec 3, 2026
Merged

marcobuschini merged 1 commit into
mainfrom
247-issue-replace-noisy-shell-test-output-with-dot-progress-failure-details-and-structured-forensic-log-capture

Conversation

@marcobuschini

@marcobuschini marcobuschini commented Dec 3, 2026 •

Copy link
Copy Markdown
Member
  • Decouple console log verbosity from forensic capture in Kernel::Log (512-entry IrqGuard-protected ring buffer with seq, monotonic ts_ns, level, tag, and message; dump_jsonl() and dump_text() formatters)
  • Add write_hex_arg(Hex) overload in Kernel::Log so hex() works with {:x}
  • Convert raw boot, PFA, heap debug, and non-panic trap prints to standard Kernel::Log calls and mute noisy console output during boot and tests
  • Add TestSession dot-progress runner in kernel/shell/tests/test_common.* with failure-only summary/details and -v/--verbose opt-in across shell test suites
  • Add logs/dmesg shell commands (--json, --tail N, --level L, --clear) and read-only /dev/kmsg JSONL device in devfs
  • Fix ELF loader OOM reporting when map_user_page() exhausts PFA frames and align test_loader_pipeline OOM segment address to avoid UART_L2_IDX
  • Add host unit tests in tests/host/log_test.cpp

Verification & Quality Gates

  • make all builds cleanly under aarch64-linux-gnu-g++ (-std=c++20 -Werror)
  • make quality passes format-check, lint-report (clang-tidy), and test-host
  • make test-host passes Snitch unit tests under ASan/UBSan with zero PFA/heap leaks
  • Verified in QEMU (make run) where applicable

Checklist

  • PR title and commits follow Conventional Commits / Commitizen specification
  • Changes adhere to freestanding C++20 rules (no exceptions, RTTI, or banned headers)
  • Changes stay strictly within the scope of the linked issue/sub-issue

…L logging (#247)

- Decouple console log verbosity from forensic capture in Kernel::Log
  (512-entry IrqGuard-protected ring buffer with seq, monotonic ts_ns,
  level, tag, and message; dump_jsonl() and dump_text() formatters)
- Add write_hex_arg(Hex) overload in Kernel::Log so hex() works with {:x}
- Convert raw boot, PFA, heap debug, and non-panic trap prints to standard
  Kernel::Log calls and mute noisy console output during boot and tests
- Add TestSession dot-progress runner in kernel/shell/tests/test_common.*
  with failure-only summary/details and -v/--verbose opt-in across shell
  test suites
- Add logs/dmesg shell commands (--json, --tail N, --level L, --clear) and
  read-only /dev/kmsg JSONL device in devfs
- Fix ELF loader OOM reporting when map_user_page() exhausts PFA frames and
  align test_loader_pipeline OOM segment address to avoid UART_L2_IDX
- Add host unit tests in tests/host/log_test.cpp
@marcobuschini marcobuschini self-assigned this Dec 3, 2026
@marcobuschini
marcobuschini merged commit 12f788d into main Dec 3, 2026
5 checks passed
@marcobuschini
marcobuschini deleted the 247-issue-replace-noisy-shell-test-output-with-dot-progress-failure-details-and-structured-forensic-log-capture branch December 3, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ISSUE] Replace Noisy Shell & Test Output with Dot Progress, Failure Details, and Structured Forensic Log Capture

1 participant