fix(W8-8): firmware source-inventory probe regression (5 tests, surgical) - #185
Merged
Ghenghis merged 1 commit intoMay 10, 2026
Conversation
W7-3 truth-check found 5 parametrized test_firmware_source_inventory_is_reference_only_not_executable failures returning status="blocked" instead of "ready". Root cause: PR #120 (firmware source inventory probes) changed BUILTIN_RUNTIME_PROBES firmware row entries: - kind: "source_inventory" -> "firmware_source_inventory" - path: "" -> hardcoded absolute paths The dispatcher _safe_runtime_probe has no branch for "firmware_source_inventory" kind, so the probe falls through to the default executable-path block and returns "blocked". Even with the kind fixed, the hardcoded path skips the mod.local_path fallback in _source_inventory_probe, which CI (and tmp_path-based unit tests) need. W7-3 hypothesised a PR #150 (broad-except cleanup) interaction; on read, PR #150 only edited _private_runtime_env and is innocent of this regression. PR #150's broad-except cleanup is intact — NOT reverted. Fix: surgically revert kind/path on the 6 firmware rows (firmware_klipper, marlin, prusa_firmware, reprapfirmware, repetier_firmware, smoothieware) to their pre-#120 values. Inline comments mark these as load-bearing for _runner_status mapping. firmware-specific provenance is preserved by tool_key="firmware_source_inventory" and proof_gate_version="firmware-source-inventory-v1". The new probe_firmware_source_inventory() function and FIRMWARE_SOURCE_PATHS registry from PR #120 are unchanged. Tests - 5 previously-failing test_firmware_source_inventory_* tests now PASS - 1 new regression-pin: test_firmware_probe_returns_ready_when_files_exist_and_verifier_index_empty - Adjacent: test_source_runtime_contracts.py (42), test_module_runtime.py (72), test_firmware_farm_probes.py (49) — 166 PASS / 0 regressions Sources - PEP 8 Programming Recommendations (broad-except guidance): https://peps.python.org/pep-0008/#programming-recommendations - PR #150 description (ba4194d): scope is observability-only; explicitly not behavioral. Doc: 03_implementation/docs/handoffs/W8-8_FIRMWARE_PROBE_REGRESSION_2026-05-09.md Hermes evidence chain: PASS Task ID: H3D-CLAUDE-W8-8-FIRMWARE-PROBE Lock owner: claude-w8-8-firmware-probe hermes_run_gate: tests.unit Hermes locks released after merge Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Ghenghis
merged commit May 10, 2026
4b557fe
into
feat/hermes3d-7-complete-gui-repo-wiring
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kind="source_inventory"andpath=""on the 6 BUILTIN_RUNTIME_PROBES firmware rows (firmware_klipper,marlin,prusa_firmware,reprapfirmware,repetier_firmware,smoothieware); these were silently flipped by PR feat(I7): firmware source inventory probes — read-only git describe, source_reference_only contract #120 tofirmware_source_inventory/hardcoded absolute paths, causing_safe_runtime_probeto fall through and returnstatus="blocked"for all 5 parametrized firmware tests._private_runtime_envand is innocent. PR chore(observability): expose 7 silent broad-except fallbacks (Wave Agent 7) #150's broad-except cleanup is intact — not reverted.test_firmware_probe_returns_ready_when_files_exist_and_verifier_index_emptyregression-pin intest_source_runtime_contracts.py. Inline comments on the BUILTIN entries markkind/pathas load-bearing for_runner_statusmapping. PR feat(I7): firmware source inventory probes — read-only git describe, source_reference_only contract #120's newprobe_firmware_source_inventory()function andFIRMWARE_SOURCE_PATHSregistry are unchanged.Test plan
python -m pytest 04_testing/pytest/unit/test_source_runtime_contracts.py -k test_firmware_source_inventory— 5/5 PASS (was 0/5)python -m pytest 04_testing/pytest/unit/test_source_runtime_contracts.py -k firmware_probe_returns_ready— 1/1 PASS (new pin)python -m pytest 04_testing/pytest/unit/test_source_runtime_contracts.py 04_testing/pytest/unit/test_module_runtime.py 04_testing/pytest/unit/test_firmware_farm_probes.py— 166 PASS / 0 regressionsHermes evidence chain: PASS
Task ID: H3D-CLAUDE-W8-8-FIRMWARE-PROBE
hermes_run_gate: tests.unit
Lock owner: claude-w8-8-firmware-probe
Hermes locks released after merge
Doc:
03_implementation/docs/handoffs/W8-8_FIRMWARE_PROBE_REGRESSION_2026-05-09.mdSources
🤖 Generated with Claude Code