Skip to content

Support selfhosted runners#8896

Draft
rustyrussell wants to merge 11 commits intoElementsProject:masterfrom
rustyrussell:guilt/support-selfhosted-runners
Draft

Support selfhosted runners#8896
rustyrussell wants to merge 11 commits intoElementsProject:masterfrom
rustyrussell:guilt/support-selfhosted-runners

Conversation

@rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented Feb 10, 2026

There's no way to have self-hosted runners and fall back to the GH ones if they're down. Since these runners are all on my build box, I have segmented it now so only my jobs run on them, as I can sort it out if that box is unavailable.

See https://github.com/organizations/ElementsProject/settings/actions/runners

Changelog-None: CI only.

@rustyrussell rustyrussell added this to the v26.04 milestone Feb 10, 2026
@rustyrussell rustyrussell force-pushed the guilt/support-selfhosted-runners branch 14 times, most recently from 0890395 to b2e050d Compare February 11, 2026 04:50
This is horrible.  We cannot make GH fallback, so I simply made it use
self-hosted runners for me.  If they're down, that's my problem :(

Nonetheless, the gcc compile step (for example) goes from 9m38s to 5m32.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
More future proof, better for self-hosted runners.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
check-source-bolt needs devtools, and check-python needs a full build.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/support-selfhosted-runners branch from b2e050d to 3532773 Compare February 11, 2026 05:27
The one thing we *should* run is uv sync, so we do that in the scripts.

This saves about 1m32, for *every* task.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
It's done by setup.sh, so simply set the env var for that.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/support-selfhosted-runners branch 2 times, most recently from 8edc216 to f8ce26b Compare February 11, 2026 22:37
Before: 5m32
After:

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
No point spending 1m24 seconds for *each* different compiler variant.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/support-selfhosted-runners branch 5 times, most recently from 2991f54 to 0b430be Compare February 12, 2026 06:02
@rustyrussell rustyrussell force-pushed the guilt/support-selfhosted-runners branch 3 times, most recently from 3cbb5ad to f71fc07 Compare February 13, 2026 01:50
Self-hosted runners may have this already.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Don't upload/download if we're not on GitHub.  This behavior is flagged by
the existence of a /var/lib/github-runner/cache dir.

Make sure you enable regular cleaning of this cache!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/support-selfhosted-runners branch from f71fc07 to 354efc6 Compare February 13, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant