Repository navigation
feat: add configurable linear fan speed interpolation - #6
Conversation
Enable piecewise interpolation between existing temperature anchors by default, rounding duty up without level hysteresis. Preserve the original stepwise downshift hysteresis when disabled, and expose the option in config, diagnostics, Compose, TUI, tests, and operational docs.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@Catalina-df review. if everything ok then merge. |
|
In reply to #6 (comment): Catalina 翻開變更紀錄,逐項核對。 「我會檢查 PR 的最新差異、測試與合併狀態,並依 Catalina 將審查範圍記在一旁。 「PR 目前可合併,CI 測試已通過,最新提交仍是 Catalina 核對測試結果後,繼續翻查控制循環。 「本次重跑通過了 116 項控制器斷言、22 項 TUI 斷言,語法檢查、範例驗證與差異空白檢查也通過;程式慣例審查未發現實質問題。此環境沒有 Docker,Compose 部分先採信 PR 的既有驗證與通過的 CI。 另查到目前 Catalina 將追蹤筆記與這次的 GitHub 指示對照。 「既有追蹤仍記錄『等待建立 PR』,我會依目前已開啟的 PR 更新。您這次也已明確授權『審查無誤就合併』;合併後會觸發儲存庫既有的映像建置流程,本次不會操作任何主機或風扇服務。」 Catalina 核對合併回覆,再查看 GitHub 狀態。 「兩個審查面向均未發現需要修正的問題。 Catalina 合上審查紀錄,將結果呈上。 「審查未發現需要修正的問題,PR #6 已 squash 合併至 合併提交: 本次檢查
本次重新執行的驗證:
此環境未安裝 Docker,因此未重跑 Compose 驗證;該部分依據 PR 既有驗證與通過的 CI。本次測試使用硬體 stub,未操作實際風扇、iDRAC、ESXi、TrueNAS 或部署服務。 Catalina 將合併紀錄收妥。 |
Enable piecewise linear fan-speed interpolation by default, including for existing configurations that omit the new option. For example, between 70°C/45% and 75°C/60%, 72°C now requests 51% instead of the legacy 45% step.
FAN_SPEED_INTERPOLATION=true;falseruns the original stepwise selection and downshift-onlyHYSTERESISunchanged.Validation:
make test: 116 controller assertions and 22 TUI assertions passed, plus Bash syntax checks. Covers default/disabled behavior, anchors, endpoints, bounds, monotonicity, uneven segments and ceiling, invalid boolean, prior levels/hysteresis, actual cycle state updates, command failure, failsafe recovery, diagnostics, and TUI round trips.make validate-example: passed with dry-run configuration.docker compose config --format json: passed using temporary example configuration for both true and false; verified the container environment preserves each value.git diff --check: passed; reviewed the final diff locally.Hardware I/O is stubbed in tests. No live fan, iDRAC, ESXi, TrueNAS, or service access was performed. Independent review of ec8e34e..c048689 found no substantive regressions. It independently passed 115 controller assertions (omitting the filesystem-writing healthcheck), 441 disabled-mode comparisons against the pinned legacy implementation, and 294 interpolation comparisons confirming independence from prior level/hysteresis, plus syntax and whitespace checks. The reviewer could not rerun full make test or TUI round trips because its /tmp was read-only; the complete parent-run results are listed above.