acde6ebe6e1124ededb1d786d231ad0bdbe64b49
11
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b203b7fa73 |
round 19: columns, scan speed, per-firmware logs, more scanned fields
build-test-release / release (push) Successful in 17m53s
Table/columns: - Fix the "columns shrink to tiny" bug on language change / add / hide (#3, #24): the rebuild-time capped autosize read column widths before GTK's measurement landed. Columns keep their default widths; autosize is on-demand only. - Right-align every column except IP (#21): new alignment param on the bridge append calls; the SegmentRenderer and the tooltip hit-test honour it. - "Auto-size all columns" header menu item; Ctrl+A selects all rows (#4). - Remove the Boards (dots) column (#7). - Split the slash-joined Fan column into per-fan columns Fan 1-4 (#8). - Efficiency: unit moved into the value and made algorithm-aware (J/TH for SHA256 families, J/kSol for Equihash), fixing the blank/garbage figure on non-SHA256 miners (#9, #23). - Pool account column before Worker by default (#22). Scan: - Fast scan (#18): emit a lightweight identity row the instant a miner is identified, then upsert the full telemetry row when get_data completes. - User-adjustable scan concurrency with a bounded max (#25). - Surface more scanned values as columns (#10): current tuning target, accepted / rejected shares + reject %, and per-hashboard hashrate / voltage / frequency. Logs (#11-16): fetch the miner log through asic-rs's per-backend read_logs() instead of the narrow curl paths, fixing Braiins / LuxOS / Z15 / BixBit / stock Antminer; WhatsMiner keeps the fault-code fallback (no API log). Removed the summary tidbits from the log viewer (#13). Misc: fix per-icon health tooltips (advance math matched to the renderer) (#2); paused miners show blue hashboard icons, healthy stays green (#19); state-aware Pause/Resume in the right-click menu (#20); export opens a column-picker dialog (#6) and the default filename carries a UTC timestamp (#5); the scan status bar says "Scan Paused" / "Scan Stopped" and no longer overwrites Stop with paused (#17); the bench badge shows the weighted-average microbench delta vs the previous release (#1). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
25a5120257 |
ci: measure coverage in the release job and auto-update the badge
build-test-release / release (push) Successful in 13m59s
Add a best-effort Coverage step to release.yml: it adds the llvm-tools-preview rustup component, fetches cargo-llvm-cov as a prebuilt binary (the vendored .cargo/config blocks `cargo install` from crates.io), runs ci/coverage.sh to merge unit-test and headless self-test line coverage, and feeds the TOTAL line-coverage percent to the badge refresh so badges/coverage.svg tracks the real number on every release. The step is gated on a release and marked continue-on-error, so coverage tooling can never block a release. coverage.sh now runs its instrumented builds --offline by default (the dependency tree is fully vendored), overridable via CARGO_LLVM_COV_FLAGS. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
73f13554fd |
coverage: count the headless self-test, reporting ~46% (was ~35%)
build-test-release / release (push) Successful in 10m37s
The self-test builds the real wxWidgets table and renders every fixture through the real widgets, exercising ~27% of ui.rs (up from ~4%) -- but it runs as a separate binary, so a plain `cargo llvm-cov` (which only runs the #[test]s) never counted it, understating coverage. New ci/coverage.sh runs both the unit tests and the self-test under one instrumentation pass and merges them, excluding the vendored asic-rs / patched wx-rs from the report. Our-source line coverage is now ~46% (model 81%, naming 95%, fixtures 100%, credentials 92%); the remainder is click-driven dialogs and live-miner network I/O, which unit tests can't reach without hardware or heavy mocks. Badge, report, and README dev section updated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
00c9e886d8 |
review wave 7: fifth-round findings (creds, scan race, refill throttle)
build-test-release / release (push) Successful in 6m55s
Fifth (final) review round; this clears its functional findings:
- HIGH config actions / pool writes could run concurrently with a live scan
(start_action / apply_pools guarded flash + restore but not scanning); added
the self.scanning guard, and begin_scan now defers while an action/restore runs,
closing the race symmetrically.
- HIGH blanking a per-firmware credential row saved a live ("","") override that
then broke that firmware's auth fleet-wide; a fully-blank row now clears the
override (use the shipped default).
- HIGH a ChangePassword action never updated the toolkit's own saved credentials,
so after a fleet-wide change it locked itself out; on full success it now updates
the saved global password (and on a partial change logs a reconcile note rather
than guessing).
- HIGH/perf fill_rows re-rated: a scan's streaming rows triggered a whole-table
refill on every fast tick. New rows_dirty latch flushes the refill at most once
per second during a scan (immediately once it ends).
- MED an indeterminate access-probe result no longer blanks a miner's already-known
locked/unlocked state.
- LOW compute-version.sh header doc corrected to match the broadened rule;
release.yml sets WX_RS_WXCONFIG once at job level instead of per step.
Accepted (documented) perf items that remain: per-render health recompute and
per-column cell-string allocation (small, fleet-scale), the linear upsert scan,
and synchronous scan-range parsing (bounded by the range caps).
99 tests + clippy-clean + selftest green. This was review round 5 (the harness's
iteration cap); every confirmed critical/high across all five rounds is fixed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
|
||
|
|
4bf9382b2f |
ci: install clippy component before the gate; classify all GUI src as backend
build-test-release / release (push) Successful in 6m54s
Run 82 failed because the alkane-ci image ships no clippy component
("cargo-clippy is not installed for the toolchain"). Both workflows now
`rustup component add clippy` before the gate.
Also broadened compute-version.sh: any crates/alkane-gui/src/* file is backend
logic (previously only scan.rs/model.rs/main.rs were, so a fix confined to
naming.rs / pool_prefs.rs / restore.rs / access_probe.rs / credentials.rs would
never cut a release). ui.rs/fixtures.rs/bin still match the UI arm first. All 9
compute-version tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
|
||
|
|
121e34304b |
item 12: CI verify/release split, dependency audit, README + badges
build-test-release / release (push) Failing after 26s
CI is now two workflows: verify.yml (pull requests + non-main pushes) runs the clippy gate, build, unit tests, microbenchmarks, the headless self-test, and a best-effort dependency audit; release.yml (main) repeats the clippy gate + audit before its existing build/test/selftest/package/release, then refreshes the committed README badges and pushes any change back (best-effort, and a badges- only push does not bump the version, so it does not loop). Security: cargo audit found a build-time-only advisory (h2 0.3 in the wx-rs build script's reqwest 0.11 subtree, never linked into the runtime binary and never executed on Linux). The vendored/offline tree can't upgrade it without re-vendoring, so it is documented and accepted in .cargo/audit.toml (mirrored in deny.toml with the project's permissive-license policy). Badges: ci/gen-badges.py emits self-contained shields-style SVGs into badges/ (tests, coverage 36%, bench, LOC 12.5k, clippy clean, dependencies, license) -- committed and referenced by relative path so a self-hosted Gitea renders them with no external service. README rewritten around what the toolkit actually does today (discover / monitor / operate / install), with build, CLI, dev, and architecture sections and the dual-license note. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
54eb262368 |
Round 17 B (part 1, CLI): timezone / change-password / factory-reset verbs (G10/G11/G12)
build-test-release / release (push) Successful in 6m5s
Round B wires the already-complete SupportsTimezoneConfig / ChangePassword /
FactoryReset backends to the toolkit. Part 1 adds the committed CLI surface
(GUI dialogs follow in part 2):
- `timezone <ip> [<IANA>]` - read (no arg) or set the timezone (gated on
supports_timezone_config: Braiins/VNish/ePIC).
- `passwd <ip> <newpass>` - change the web/API password (gated).
- `factoryreset <ip>` - factory reset (gated).
Each is capability-gated and the usage banner marks passwd/factoryreset DANGEROUS.
Verified live: timezone set/read/restore end-to-end on Braiins 10.4.1.83
(set America/Edmonton -> read back -> restore Etc/GMT, all Ok). change-password
and factory-reset are implemented + gated but NOT live-run: both are destructive
on the shared corpus (change-password breaks the default auth every other test
relies on; factory-reset can reset a unit to DHCP and lose its IP) -- they need a
dedicated sacrificial/console-attached unit to verify live.
Also: ci/compute-version.sh now treats crates/alkane-gui/src/bin/* as a UI change
so CLI-tool changes trigger a release.
Note: the VNish timezone READ errors ("Unrecognised VNish timezone GMT, expected
GMT+N/-N") is a pre-existing vnish backend parse quirk, separate from this wiring.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
|
||
|
|
66b0912b81 |
asic-rs: fix Antminer locate-LED (and reboot) on legacy web-UI firmware
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 |
||
|
|
44e76f25e4 |
GUI + CI: code-review-harness fixes, expanded tests, version-logic tests
build-test-release / release (push) Successful in 5m47s
Ran the code-review-harness (four parallel reviewers: correctness, reliability, performance, test-coverage) over the GUI crate and fixed every Critical/High finding, plus grew the test + microbenchmark suite that gates the pipeline. Correctness / reliability fixes: - IP column sorted lexically, not numerically. The default view is IP-ascending but Column::Ip fell through to the generic lowercase-string sort key, so 10.255.1.10 sorted before 10.255.1.2 on every launch. Add a numeric IP sort key (u32, exact in f64) and switch view() to decorate-sort-undecorate so a sort key is computed once per row, not twice per comparison. - Scans had no cancellation. Stop/Apply/Play only dropped the receiver, leaving the background thread probing dead hosts (each waits out an asic-rs timeout), and Play could spawn a second concurrent scan + tokio runtime. Add a ScanHandle with an Arc<AtomicBool> cancel flag the loop checks each iteration, a begin_scan() helper that stops the in-flight scan before starting a new one, and Stop now signals cancellation. - Native column drag never rebuilt the control: column_reordered mutated view.order but skipped rebuild_table(), so the store's creation order diverged from display_columns() and cells rendered under the wrong headers on the next scan tick. Rebuild after applying the reorder. - format_si rounding rolled a mantissa up to "1000" without advancing the SI prefix (999.9 W -> "1000 W", a 4-digit result). Round first, then roll over; [99.95,100) drops its decimal. - start_scan used .expect() on thread spawn, which would panic across the wx FFI boundary; it now sends ScanMsg::Failed and returns the handle. Tests / benchmarks (the pipeline's regression gate): - Unit tests 24 -> 41: format_si/format_uptime boundaries, numeric IP sort, upsert-new-IP, Light three-state + pool-slot-out-of-range cells, filter AND/OR, reorder non-permutation guard; scan.rs parse_cidr/prefix_mask, single-host /32, empty/whitespace, short-range single/reversed, parse_targets aggregate cap + error propagation, validate_ranges, targets_to_cidrs non-contiguous, auto-rescan-secs round-trip. - Microbenchmarks 2 -> 9: view default-sort, sort-by-each-column, filtered view, upsert cold-start, parse_line near MAX_ADDRS, parse_targets many ranges, targets_to_cidrs large range. Floors are 5-10x above local numbers. - New ci/test-compute-version.sh: 9 cases for the X.Y.Z logic (first release, pre-bumped X, backend/UI bumps, docs-only no-op, major-wins-over-UI, backend-wins-over-UI, nested ci/ and thirdparty/wx-rs paths). Wired in as a fast-fail CI step. CI: install libssl-dev + pkg-config (openssl-sys); add xauth so the headless self-test actually launches under xvfb (was aborting on "xauth not found"). Deferred (documented in code-review-report.md, guarded by benches): Cow cells, an ip->index map for upsert. Local: 41 tests + 9 benches + 9 shell tests green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
717284d66d |
CI: invoke build-wx via bash; mark shell scripts executable
build-test-release / release (push) Failing after 14m20s
Run 1 of the release pipeline failed at the "Build wxWidgets" step with "scripts/build-wx-linux.sh: Permission denied" - the checked-out scripts carry mode 100644 (no exec bit), so a bare shebang invocation fails. The compute-version step worked only because it was already called as "bash ci/compute-version.sh". - Call the wx build as "bash scripts/build-wx-linux.sh" (interpreter explicit; no dependency on the exec bit). - Set the exec bit in git on all ci/ and scripts/ shell scripts so they also run directly for humans and future steps. - Make the headless UI self-test non-fatal for now (continue-on-error) and install dbus-x11 + fonts-dejavu-core alongside xvfb, so a container display quirk cannot discard an otherwise-good 10-minute build. The gate is re-tightened once it is confirmed green in-container. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
ccf8b6e719 |
CI: build-test-release pipeline on merge to main
build-test-release / release (push) Failing after 1m32s
Gitea Actions workflow (.gitea/workflows/release.yml) triggered on push to
main: build the GUI against the cached vendored wx, run the 22 unit tests and
two microbenchmarks (view pipeline + cell render, with perf-regression floors),
run the headless UI self-test under xvfb, then package the binary and cut a
release when the change warrants one.
Auto-versioning X.Y.Z (ci/compute-version.sh):
X - manual (ci/version-x.txt); a bump resets Y.Z
Y - backend-logic changes (core/discovery/access/flash/artifacts/cli, the
GUI crate's scan/model/main, build + CI config); resets Z
Z - UI changes (GUI view, fixtures, the wx-rs widget bridge)
Backend beats UI when both change; docs-only changes cut no release.
Runner: a dedicated act_runner (label alkane-ci) on bfe-mpc-0640 (the Gitea
host) runs jobs in a Debian-trixie image with Rust + GTK3/pcre2 + node.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
|