Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ jobs:
persist-credentials: false # zizmor: artipacked
- name: "assert: test suite (make test-suite)"
id: assert_test_suite
env:
RIGFORGE_SUITE_PROFILE: "1"
run: make test-suite
- name: "assert: categorize outcome"
id: assert_categorize
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ help: ## List the available targets

test: lint test-suite ## Lint + the dependency-free suite (runs on macOS or Linux, no Docker)

test-suite: ## rigforge test suite: unit + black-box, every CPU/OS profile simulated
bash tests/run.sh
test-suite: ## rigforge test suite: unit + black-box, every CPU/OS profile simulated (RIGFORGE_SUITE_PROFILE=1 prints per-section seconds to stderr)
$(if $(RIGFORGE_SUITE_PROFILE),python3 tests/suite-profile.py -- )bash tests/run.sh
bash tests/test-doctor-json.sh
bash tests/test-contract-credentials.sh
bash tests/test-access-token-readiness.sh
Expand Down Expand Up @@ -49,6 +49,9 @@ test-suite: ## rigforge test suite: unit + black-box, every CPU/OS profile simul
bash tests/test-env-override-gate.sh
python3 tests/test-server-deadline.py
bash tests/test-build-deb.sh
bash tests/test-suite-inventory.sh
bash tests/test-suite-inventory-generate.sh
bash tests/test-suite-profile.sh

test-e2e: ## Full end-to-end run in disposable Linux containers (needs Docker)
bash tests/e2e/linux.sh
Expand Down
286 changes: 286 additions & 0 deletions docs/dev/suite-inventory.tsv

Large diffs are not rendered by default.

241 changes: 241 additions & 0 deletions docs/dev/suite-profile-baseline.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
# Per-section median and p90 seconds over 3 runs of tests/run.sh (see suite-profile.md). Columns: median, p90, section.
# whole-suite run.sh seconds per run: 656.9, 577.5, 585.9; median 585.9, p90 656.9
264.3 265.6 black-box: appliance mode (pithead#797 R1)
54.5 60.6 black box: the msr-apply pre-start step still runs to the end as root
33.7 43.7 unit: e2e-real watchdog cleanup restores prior service state (#462)
9.9 10.2 unit: doctor's sister-feed check follows control's api implication (#507)
7.7 9.5 pool schema fields (#527)
6.9 8.8 unit: sister API config keys (#99)
6.5 7.6 unit: _control_commit — validate, backup, merge, atomic (#236)
6.4 9.4 unit: ensure_config_exists interactive first-run
6.0 6.1 black-box: tune variance-aware acceptance gate (#63)
5.9 7.8 unit: staged rebuild swaps in and prunes old build archives (#4, #612)
5.0 8.0 config ownership and setup service transitions (#529)
5.0 6.2 unit: _control_commit — masked pool secrets survive a pools edit (#415)
4.9 6.0 (preamble)
4.8 6.0 contract guard: wire-shape fixtures (#351)
4.6 5.5 unit: root-guard refuses root-run units on a tree a non-root user can write (#783)
4.5 5.1 black-box: tune (iterative hill-climb, multi-knob) (#54)
4.4 5.2 unit: control_apply orchestration + rollback (#236)
4.4 5.4 unit: daemon pool parsing and validation (#528)
4.2 4.5 black-box: efficiency winner differs from perf winner (#79)
3.8 5.0 black-box: tune wrmsr knob (#66)
3.7 4.5 unit: native pools array + defaults (#21, #42)
3.3 4.1 unit: config field sanitization
3.3 4.5 black-box: tune target follows autotune config + is announced (#tunefix)
3.3 4.0 unit: api-refresh produces the response files (#99/#164)
3.2 4.0 black-box: autotune ranks by target (#95)
3.1 5.4 black-box: the control server (#236)
3.1 3.1 unit: _wait_miner_live (#95)
3.1 3.7 unit: daemon node health and miner summary (#528)
3.0 3.5 unit: config_meta — revision + last-change provenance (#254)
2.5 3.0 unit: parse_config — control keys + fail-closed dual auth (#236)
2.5 2.5 unit: rig_lock — the shared-rig flock (#183)
2.5 3.1 unit: tor_socks5 routes RigForge's own fetches through one SOCKS5 proxy (#668)
2.5 2.8 unit: control_upgrade orchestration — whitelist, anti-rollback, throttle, rollback (#308)
2.3 2.4 unit: api-impact hammer dies with the phase and never holds the rig-lock fd (#653)
2.3 3.1 black-box: tune --live (API-measured) (#54)
2.3 3.0 unit: parse_config rejects a bash-inevaluable value in every numeric key (#412)
2.3 2.8 black-box: setup --dry-run plan + no-mutation guard (#146)
2.2 2.7 unit: onion setup and SOCKS diagnostics (#520)
2.2 3.0 unit: appliance rigs default tor_socks5 to the local Tor client (#696)
1.9 2.3 unit: package marker makes upgrade, link and dependency paths package-aware (#782)
1.8 2.4 black-box: autotune live trial + merge (#46)
1.7 2.0 unit: control_upgrade fails cleanly before checkout and re-runs a pending install (#816)
1.7 2.2 black-box: tune --confirm live A/B (#64)
1.7 2.1 unit: parse_config — watchdog keys (#139)
1.6 1.9 unit: _control_upgrade_do fetch + reachability + checkout (#308, stub git)
1.6 1.9 xmrig overlay: apply validation
1.6 2.0 unit: doctor kernel-lockdown detection (#333)
1.5 1.9 unit: guided BIOS flow (#80)
1.5 1.9 unit: doctor MSR mod verification (#66)
1.3 1.8 black-box: tune min-delta gate (#54)
1.3 1.6 unit: doctor hashrate-capping hardware (#67)
1.2 1.3 black-box: zero-hashrate bench iteration stays quiet (#277)
1.2 1.6 thread placement: generated config and the cap
1.2 1.6 unit: _read_api_hashrate sends a *** when ACCESS_TOKEN is set (#125)
1.2 1.6 unit: _api_config_json — effective writable config, secrets masked (#253)
1.2 1.5 black-box: backup / restore round-trip
1.2 1.4 black-box: apply reconciles the writable control path to config (#236)
1.2 2.7 unit: release e2e gates fail closed (#491)
1.2 1.3 black-box: the persistent api server (#164, the xmrig model)
1.1 1.4 xmrig overlay: tuning pins
1.0 1.3 unit: control_apply FULL path — a deliberately stopped rig is not rolled back (#396)
1.0 1.2 unit: doctor pool connection (#343)
1.0 1.2 thread placement: overlay pin validation
1.0 1.2 black-box: upgrade / help / unknown command (#4)
1.0 1.2 unit: CPU ISA preflight — AES-NI / AVX2 surfaced (#338)
1.0 1.0 black-box: tune samples power under load, not idle (#81)
0.9 1.0 black-box: macOS process control (start/status/stop)
0.9 1.1 unit: parse_config — autotune tri-state (#95)
0.9 1.5 xmrig overlay: generation order and compatibility
0.9 1.1 black-box: support-bundle collects + redacts (#147)
0.9 1.2 black-box: apply reports the miner's pool connection (#343)
0.9 1.2 black-box: tune thermal-throttle rejection (#62)
0.8 1.1 unit: control_apply + REAL _control_do_apply_fast — run-state criterion, not is-active alone (#381 security review)
0.8 1.0 unit: doctor control receiver health (#278)
0.8 1.0 unit: doctor exposure posture advisory (#sec)
0.8 0.9 unit: pool url validation (#8)
0.7 0.9 unit: watchdog health check (#139)
0.7 1.0 black-box: tune grid search (#6)
0.7 0.9 black-box: full deployment run (stubbed, native Linux path)
0.7 0.9 xmrig overlay: parse validation
0.7 0.9 black-box: apply on a deliberately stopped rig regenerates and holds (#396)
0.7 1.0 black-box: setup installs the CLI only when add_to_path is enabled (#cli)
0.7 0.9 unit: DONATION validation (new)
0.7 0.9 unit: doctor miner_user + root-side MSR preset (#140)
0.7 0.9 black-box: install_control units enable/disable (#236)
0.7 0.9 black-box: re-run is idempotent (#5)
0.6 0.8 unit: EPYC NPS detection (#201)
0.6 0.8 black-box: install_api_firewall renders + tears down the nft table (#142)
0.6 0.6 fixture: the lscpu stub stays silent when its reader closes early (#419)
0.6 0.7 black-box: aborted autotune restores the pre-sweep prefetch mode (#347)
0.6 0.8 black-box: apply / bench (#11)
0.6 0.7 black-box: upgrade / help / unknown command (#4), rebuild path
0.6 0.7 black-box: aborted tune --live restores the pre-sweep overrides (#347)
0.6 0.7 unit: parse_config hugepages_reserve_extra_mb + threads (#305)
0.6 0.7 unit: doctor MSR unverifiable — guard-input failures named (#367)
0.6 0.7 black-box: tune restarts the service after a mid-run bench crash (#276)
0.5 0.7 black-box: tune reservation-aware threads (#65)
0.5 0.7 unit: install failure leaves marker, rollback cleans it (#816)
0.5 0.7 unit: daemon sister-feed mode (#528)
0.5 0.7 black-box: command surface (#11)
0.5 0.6 unit: daemon pool rendering and scope boundary (#528)
0.5 0.7 unit: doctor health checks (#45)
0.5 0.6 xmrig overlay: feed and remote boundary
0.5 0.6 black-box: upgrade leaves a stopped miner stopped (#413)
0.5 0.6 unit: doctor BIOS/firmware advisory (#78)
0.5 0.7 unit: restore takes the worker folder back before copying tune files
0.5 0.6 xmrig overlay: logging keys (#530)
0.5 0.6 black-box: uninstall reverts system changes (#12)
0.5 0.6 black-box: tune huge-pages-jit knob (#7)
0.5 0.6 black-box: tune median-of-N noise handling (#54)
0.5 0.6 thread placement: doctor and bundle evidence
0.5 0.6 unit: status hugepages shapes (#341)
0.4 0.6 watchdog: a config that fails validation still gets the thermal stop
0.4 0.5 black-box: tune 1gb-pages knob when reserved (#54)
0.4 0.5 unit: rig label = pool user; API token off by default (#22)
0.4 0.6 unit: upgrade --check (#148)
0.4 0.5 unit: msr-apply preset detection + masked RMW (#140)
0.4 0.5 unit: MSR preset table values (#66)
0.4 0.5 unit: apply re-renders the installed unit to the configured miner_user (#140)
0.4 0.5 unit: link_cli installs + guards the rigforge command (#cli)
0.4 0.6 unit: install_watchdog returns non-zero when it could not render (#395)
0.4 0.4 unit: power measurement helpers (#81)
0.4 0.4 black-box: tune built-in RAPL power path (#81)
0.4 0.5 unit: parse_config hugepages_pool_ceiling_mb (#398)
0.4 0.4 unit: _control_fast_path_eligible — closed allowlist classification (#381)
0.3 0.4 black-box: runtime HugePages reservation is grow-only (#328)
0.3 0.4 black-box: api-server IPv6 dual-stack bind (#243)
0.3 0.5 black-box: tune power/temp recording (#54)
0.3 0.4 unit: root takes the worker folder back and removes every link inside it
0.3 0.4 unit: doctor checks http.restricted in the live config (#135)
0.3 0.4 black-box: tune --efficiency falls back without a power source (#79)
0.3 0.4 unit: parse_config — pool url used verbatim (#15)
0.3 0.4 unit: parse_config — workspace + token
0.3 0.3 unit: tune bench freq writer floors a sci-notation median to whole kHz (#266)
0.3 0.4 unit: _control_upgrade_do reowns what the upgrade creates to the checkout owner (#798)
0.3 0.4 black-box: consistency sweep — flags, prompts, templates (#149)
0.3 0.4 black-box: macOS login agent (enable/disable via launchd)
0.3 0.4 unit: hugepages pool ceiling bounds the grow-only write (#398)
0.3 0.4 unit: prepare_workspace before a root build
0.3 0.5 unit: config snapshots on a root-owned tree
0.3 0.3 unit: status live summary (#143)
0.3 0.3 black-box: install_api server/timer enable/disable (#99/#164)
0.3 0.3 thread placement: tune candidates
0.3 0.3 unit: _control_upgrade_throttle_ok (#308)
0.2 0.3 unit: check_prerequisites installs jq per package manager
0.2 0.3 max_temp_c written with a leading zero is read as a decimal number
0.2 0.3 config-gen: threads cap clamps cpu.rx (#305)
0.2 0.3 black-box: support-bundle leaks no staging tempdir on a set -e abort (#353)
0.2 0.2 unit: xmrig_already_built detection (#4)
0.2 0.2 unit: compute_build_jobs caps -j by RAM (#9)
0.2 0.2 unit: real-git control-upgrade as root keeps a user-owned checkout user-owned (#798)
0.2 0.2 unit: _miner_deliberately_stopped — the predicate the #396 decision turns on
0.2 0.2 unit: apply() and _control_do_apply propagate a watchdog render failure (#395)
0.2 0.2 unit: _reown_worker reconciles file ownership (#audit)
0.2 0.2 black-box: setup sizes the reservation for the tuned threads (#65)
0.2 0.2 unit: _apply_runtime preserve-run-state — the held rig stays stopped, tune's bare call does not (#396)
0.2 0.2 unit: e2e-real perf record gate (#214/#267)
0.2 0.2 xmrig overlay: HugePages thread sizing
0.2 0.2 unit: _grub_proposed co-resident keep-existing guard (#305)
0.2 0.2 unit: _reown_worker on a root-owned tree
0.2 0.2 black-box: tune --history surfaces periodic auto-tune (Linux) (#hist)
0.1 0.2 unit: a control change snapshots through the same path
0.1 0.2 unit: install_service reboot-gates the start (#audit A2)
0.1 0.2 unit: _cmdline_reserved_2mb (#305)
0.1 0.2 unit: compile_xmrig pinned-commit verification (#18)
0.1 0.2 unit: e2e-real retries NEXT through timer activation (#458)
0.1 0.2 black-box: apply reconciles the sister API to config (#99)
0.1 0.2 unit: _read_temp hwmon fallback (#208)
0.1 0.2 black-box: install_autotune timer enable/disable (#95 tri-state)
0.1 0.2 black-box: install_watchdog timer enable/disable (#139)
0.1 0.2 unit: tune seeds keep explicit false (#265)
0.1 0.2 config-gen: IPv6 host / single-pool TLS / empty-token round-trip
0.1 0.2 unit: _control_do_apply_fast — reuses install_watchdog, skips apply()/xmrig restart (#381)
0.1 0.2 unit: util/proposed-grub.sh hardware math
0.1 0.2 black-box: unreachable worker API is quiet, not an abort (#364)
0.1 0.2 config-gen: idempotent (same inputs -> identical output)
0.1 0.2 unit: install_dependencies dnf / pacman / no-manager branches
0.1 0.2 unit: efficiency-target acceptance gate (#79)
0.1 0.2 unit: _autotune_score efficiency needs watts, else raw H/s (#95)
0.1 0.2 unit: doctor service-inactive branch (#audit)
0.1 0.2 unit: e2e-pithead dashboard leg — hardened curl + no vacuous offline pass (#390/#466)
0.1 0.2 black-box: completion script + verb-list drift guard (#145)
0.1 0.2 black-box: upgrade re-tunes the new build (#95)
0.1 0.1 unit: _grub_proposed passes the declared ceiling to proposed-grub (#410)
0.1 0.1 unit: apply reports the autotune target (#95)
0.1 0.2 unit: proposed-grub.sh honours the declared pool ceiling (#410)
0.1 0.1 unit: apt cpupower package probe — Debian / neither exists (#327)
0.1 0.1 config-gen: generic Linux (default profile)
0.1 0.1 watchdog: a miner started during a thermal hold is stopped again
0.1 0.1 unit: compile_xmrig honours XMRIG_REBUILD (#4)
0.1 0.1 unit: _worker_root_from_config validates HOME_DIR
0.1 0.1 unit: _script_dir resolves through symlinks (#cli)
0.1 0.1 black-box: appliance uninstall disables with --runtime too (#353)
0.1 0.1 unit: _sed_escape_replacement protects the GRUB rewrites (#134)
0.1 0.1 unit: grub_merge_cmdline preserves other kernel params (#19)
0.1 0.1 unit: _thread_candidates is SMT-aware (#4)
0.1 0.1 black-box: an unreachable API never aborts a tune sampling read (#364)
0.1 0.3 config-gen: macOS overrides
0.1 0.1 unit: proposed-grub.sh co-resident headroom + thread cap (#305)
0.1 0.1 unit: config.minimal.json (starter)
0.1 0.2 config-gen: multi-pool passthrough (#21, #42)
0.1 0.1 config-gen: AMD EPYC (server)
0.1 0.1 config-gen: AMD Ryzen X3D — auto, not hand-pinned (#44)
0.1 0.1 black-box: apply reconciles the autotune timer to config (#95)
0.1 0.1 unit: install_dependencies non-interactive auto-install (#74)
0.1 0.1 config-gen: open API by default (no ACCESS_TOKEN)
0.1 0.1 config-gen: socks5 passthrough (#400)
0.1 0.2 config-gen: miner_user disables in-process MSR writes (#140)
0.1 0.1 config-gen: explicit pool user / rig label (#22)
0.1 0.1 config-gen: tls-fingerprint passthrough (#115)
0.1 0.1 black-box: no ANSI escapes off-terminal (#144)
0.1 0.1 unit: parse_config — error paths
0.1 0.1 tuning sweeps: a bare re-apply leaves a thermally held miner stopped
0.1 0.1 unit: invalid daemon apply fails before side effects (#528)
0.1 0.1 black-box: backup leaks no staging tempdir on a set -e abort (#353)
0.1 0.1 unit: grub_strip_managed (#12)
0.1 0.1 unit: install_dependencies adds versioned linux-tools when apt-cache has it (#74)
0.1 0.1 unit: install_service with miner_user (#140)
0.1 0.1 unit: install_service honors SERVICE_NAME override (#133)
0.1 0.1 unit: e2e apt prerequisites retry (#449)
0.0 0.1 unit: _reown_worker hands config+log back to the miner user (#140)
0.0 0.3 tree hygiene: the suite writes nothing into the tracked tree (#418)
0.0 0.1 black-box: restore leaks no staging tempdir on a set -e abort (#353)
0.0 0.1 unit: the backup sweep hands snapshots, not the folder
0.0 0.1 unit: append_once idempotency
0.0 0.1 unit: remove_line (#12)
0.0 0.0 unit: the API readers never let a curl failure escape (#353/#364)
0.0 0.0 black-box: on_err names the running verb, not the stale setup default (#353)
0.0 0.0 black-box: uninstall without --yes aborts on 'n' (reverts nothing)
0.0 0.0 unit: _parse_hashrate (#11)
0.0 0.0 unit: the worker folder stays root-owned only on a root-owned tree
0.0 0.0 unit: finish_deployment points at 'start'
0.0 0.0 unit: on_err reports the failing step (#9)
0.0 0.0 unit: require_traversable_checkout — DynamicUser traversal pre-flight (#362)
0.0 0.0 unit: config.reference.json (#23)
0.0 0.0 unit: e2e-real git calls survive a nested sudo (#401)
0.0 0.0 unit: control writable-keys drift guard — bash vs python (#236)
0.0 0.0 unit: control-upgrade git calls pin safe.directory (#308)
0.0 0.0 unit: VERSION is SemVer (#3)
Loading
Loading