build-test-release / release (push) Successful in 7m24s
Round 15 #7. The "flash the light" action failed on old (< 2023.07) Antminer firmware -- the LuCI web-UI generation, e.g. the Z15/Z15J. set_fault_light returned Ok(false) on live hardware while appearing to "succeed". Root cause (confirmed on a live Z15): that firmware's blink.cgi ignores the JSON body {"blink":"true"} the backend sent (answering 200 with an empty text/html body, so the JSON parse fails and the error is swallowed into Ok(false)). Its own blink.html POSTs a form field action=startBlink/stopBlink and reads state back via action=onPageLoaded -> {"isBlinking":bool}; the action handler also often answers 401/500 even on success, so HTTP status is not a reliable signal. Fix (v2020 backend): add a form-encoded POST helper; blink() now fires action=startBlink/stopBlink, ignores the unreliable status, and reads the real state back via onPageLoaded; set_fault_light reports success only when the observed isBlinking matches the request. The LightFlashing read is routed to the same path (get_blink_status.cgi is 404 here) and remapped to {"blink":bool}. Also switch reboot() from POST to GET to match the same firmware's reboot.html (the Restart action was affected); not live-fired, to avoid rebooting production miners. Captured as asic-rs patch 0010. Also teach ci/compute-version.sh that vendor/* and thirdparty/asic-rs/* are backend changes, so vendored fixes trigger a release. Verified live: Z15/Z15J now return Ok(true) with the light genuinely toggling; VNish (4 control boards) and WhatsMiner (H6OS/H616) unchanged; antminer tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6