Skip to content

fix: correct factory test fault_none sticky, adc_sane, and heap floor checks#70

Merged
div0rce merged 1 commit into
mainfrom
fix/factory-test-checks
May 26, 2026
Merged

fix: correct factory test fault_none sticky, adc_sane, and heap floor checks#70
div0rce merged 1 commit into
mainfrom
fix/factory-test-checks

Conversation

@div0rce

@div0rce div0rce commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • fault_none was not sticky after a FAULT_EVENT line — a subsequent fault=NONE sample reset it to True. Added fault_event_seen flag that latches on first FAULT_EVENT and gates all future fault_none updates.
  • adc_sane was never set False after an out-of-range ADC reading — a subsequent in-range reading would restore it. Added adc_out_of_range_seen flag to make the failure sticky.
  • heap_above_floor was evaluated against the most recent heap_min value rather than the running minimum across the test window. Now tracks min_heap_seen correctly and recomputes the check on every RUNTIME_HEALTH line.

Test plan

  • python tools/factory_test/run_factory_test.py --help exits 0
  • All CI jobs green

🤖 Generated with Claude Code

… checks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@div0rce div0rce merged commit 7215f81 into main May 26, 2026
7 checks passed
@div0rce div0rce deleted the fix/factory-test-checks branch May 26, 2026 01:25
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.

1 participant