Skip to content

ci: run the wireguard-lndconnect scenario - #106

Merged
seberm merged 1 commit into
bitcoinix:masterfrom
ostermayer:ci-wireguard-scenario
Oct 19, 2026
Merged

seberm merged 1 commit into
bitcoinix:masterfrom
ostermayer:ci-wireguard-scenario

Conversation

@ostermayer

@ostermayer ostermayer commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #61.

What this changes

.github/workflows/test.yml: wireguard-lndconnect joins the test_scenario matrix. One line.

What I checked

  • test/ci/test-info.nix reads the scenario names from the matrix with a regex. On a clean clone, nix eval --raw .#ciTestInfo lists the WireGuard driver as the fourth entry, so build_test_drivers evals and builds it with the others.
  • The "already built" checks in build_test_drivers.sh and build-to-cachix.sh work on the store paths that eval returns, so they cover the new scenario with no script change. The Cachix push does too.
  • ci_gate already depends on test_scenario. No change.

Runs on GitHub-hosted runners

I ran the workflow in my fork, which has no Cachix key, so every job built and ran its VM test on the runner. KVM worked with the scenario's two VMs.

Job Run 1 Run 2 Run 3 Run 4
test_scenario (wireguard-lndconnect) 1 min 35 s 1 min 30 s 1 min 48 s 1 min 46 s

All six subtests passed each time, including the two from #61. Inside the job, the VM test script itself takes about 45 s. The rest is checkout, Nix install and the driver fetch. For comparison, in the same runs default took 3 min 30 s, netnsRegtest 4 min 22 s and netns 5 min 42 s. build_test_drivers took 1 min 16 s with the fourth driver, the same as upstream's run today without it.

Other scenarios

A fork-only run with every buildable scenario in the matrix, all green:

Scenario Job time
lndPruned 1 min 24 s
wireguard-lndconnect 1 min 30 s
trustedcoin 1 min 40 s
clightning-replication 1 min 43 s
netns 5 min 47 s
secureNode 5 min 48 s
regtest 5 min 54 s
hardened 5 min 54 s
full 6 min 19 s

build_test_drivers took 3 min 3 s with twelve drivers. The matrix jobs run in parallel, so the wall clock of a run is set by the slowest job, about six minutes either way. clightning-replication, lndPruned and trustedcoin are as cheap as the WireGuard one if you want them.

Models used on this PR: Fable 5.1 for the change. GPT-6 Astra (xhigh) reviewed the diff. It confirmed the four points above, found no problem in the wiring, and corrected one sentence in the commit message, which said the firewall rules had no coverage at all rather than no CI coverage. DeepSeek V4.1 Flash 1017 (max) and GLM 5.3 (max) reviewed the tree. Their one finding in the workflow is the Cachix signing key in pull request runs, which predates this PR and is now #107.

CI ran only the default, netns and netnsRegtest scenarios, a budget
inherited from upstream. The WireGuard preset's firewall rules had VM
tests but no CI coverage, so every change to the preset needed a local
VM run.

Add wireguard-lndconnect to the test_scenario matrix. test/ci/test-info.nix
reads the scenario names from that matrix, so build_test_drivers now evals
and builds its driver too, and the "already built" check in
build_test_drivers.sh and build-to-cachix.sh covers it like the others.
ci_gate already depends on test_scenario and needs no change.
@seberm
seberm merged commit 8c086fb into bitcoinix:master Oct 19, 2026
9 checks passed
@seberm seberm added area: ci .github/, test/, dev/ type: maintenance No user-visible change: refactor, CI, deps, tooling, docs-only labels Oct 23, 2026
@ostermayer
ostermayer deleted the ci-wireguard-scenario branch November 8, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci .github/, test/, dev/ type: maintenance No user-visible change: refactor, CI, deps, tooling, docs-only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants