Skip to content

CI: local pipeline, and self-hosted runners for core CI - #3

Merged
LoopyLuci merged 8 commits into
mainfrom
ci/local-pipeline
Nov 30, 2026
Merged

LoopyLuci merged 8 commits into
mainfrom
ci/local-pipeline

Conversation

@LoopyLuci

Copy link
Copy Markdown
Owner

Summary

  • Local CI pipeline (ci/, .githooks/, docs/LOCAL_CI.md): a stdlib-only Python pipeline that runs the same checks as core-ci.yml on this computer, with preflight checks, parallel stages, per-run reports and git hooks (precommit, prepush). Pipeline self-tests: 68 pass.
  • Self-hosted runners (.github/workflows/core-ci.yml): every job runs on [self-hosted, Linux, X64]. The relay build runs on Linux and Windows ([self-hosted, Windows, X64]). Every job carries the fork guard, so a fork's pull request never runs on the runner.
  • macOS is not built in CI: there is no macOS runner. A comment in the build matrix says so.
  • The audit job now carries the full guard, so it also runs on same-repository pull requests (before, it ran on pushes only).

Notes

  • No runner is registered yet, so every check on this PR stays queued until the user runs Register-Runners.ps1.
  • The full local profile passes; its only warning is the informational rustfmt check, which CI also reports without failing.
  • The workflow's commands are unchanged, and the pipeline's own tests check that the local clippy, test and relay-build commands still match them.

🤖 Generated with Claude Code

LoopyLuci and others added 8 commits November 28, 2026 13:26
Adds a local CI pipeline in ci/, run on this computer. It mirrors core-ci.yml
(fmt, clippy, tests, interop binaries, relay build, Python, TypeScript, audit),
and adds the desktop app's tests and a core-sync check against TransferDaemon.

- ci/ci.py: profiles precommit, prepush, full and nightly; --only, --jobs,
  --fail-fast; check, list, last and hooks commands. Stdlib only.
- ci/engine.py: runs stages in dependency order. Cargo stages share one lane,
  and the others overlap with them. Logs and a JSON report per run.
- ci/checks.py: preflight for tools, Cargo.lock, line endings and staged
  changes (whitespace, credentials, large files).
- ci/tests: 68 self-tests. ci/install-nightly.ps1 registers a nightly task
  but is not run by this commit.
- .githooks/pre-commit and pre-push run the precommit and prepush profiles.
  Install with: python ci/ci.py hooks install
- docs/LOCAL_CI.md: stages, profiles, hooks, reports and limits.

core-ci.yml: every job now runs on [self-hosted, <OS>], not GitHub-hosted
machines. The repository is public, so each job a pull request can reach
skips pull requests from forks. Runners must be registered before the jobs
start; until one is, they stay queued.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…ds removed

Every job runs on [self-hosted, Linux, X64] and checks that a pull request comes from this
repository, so a fork's pull request never runs on the runner. The build job is Linux only
and uploads transferd-core-linux. The audit job also gets the full guard, so it now runs on
same-repository pull requests as well as on pushes and the weekly schedule.

LOCAL_CI.md updated to match: CI is Linux only.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…dows runner

The Windows runner on this PC serves both repositories with labels [self-hosted, Windows, X64].
The relay build matrix runs Linux and Windows again, each job with the fork guard. macOS stays
out: there is no macOS runner, and a comment in the matrix says so. LOCAL_CI.md updated to match.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The Windows runner is this PC, and a parallel build exhausted the Windows paging file while
compiling the workspace tests. The Windows build legs set CARGO_BUILD_JOBS=2 for their cargo
steps; the Windows-only pwsh job sets it on the job. Linux is unchanged.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The Windows Rust build needs the MSVC toolchain (Visual Studio Build Tools,
C++ workload). The msvc sandbox runners install it from a cached offline layout,
so the Windows leg now requests the msvc label. The Linux leg keeps its own labels.
Each matrix leg sets runs_on; the job parses it with fromJSON.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…eused

Turning mesh DNS off, or restarting it, dropped the old forwarder, which only
aborted its tasks. An abort takes effect later, so the listening socket could
still be held when the next bind ran. The test
a_node_answers_dns_through_a_paired_nodes_resolver failed on the sandbox runner
for this reason: the address was still in use right after DNS was turned off.

MeshDns::shutdown now aborts the listener tasks and waits for them, then aborts
and waits for the per-query tasks, which each hold a clone of the socket.
set_mesh_dns awaits it before returning. Per-query tasks are tracked in a
JoinSet and reaped as they finish, so finished tasks do not pile up.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
splice closed the application's socket cleanly (FIN) when the overlay-side
connect failed, so the application read the end of the stream and took a cut-off
transfer for a complete one. The function's own contract is that an overlay-side
failure resets the client.

On Linux, a reset that arrives right after the handshake can make connect fail
with ECONNRESET, which is the path that hit proxy::tests::
a_failed_overlay_side_resets_the_client on the sandbox runner. The connect
failure now resets the client, like the read failure already did. A new test,
a_refused_overlay_side_resets_the_client, covers the refused-connection path
deterministically.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…12-31)

curve25519-dalek 4.1.3 has a scalar-multiplication bug in its AVX-512 backend.
The fix is only in curve25519-dalek 5.1.0, which needs ed25519-dalek 3 and
x25519-dalek 3 (direct dependencies of transferd-crypto, both 2.x now). That
is a major bump with API changes, not a lockfile update, so this is a
time-boxed ignore, the same pattern as RUSTSEC-2026-0387.

The bug is reached only on nightly builds on an AVX-512 CPU. Stable builds and
the release binaries are not affected.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@LoopyLuci
LoopyLuci merged commit 18f74a2 into main Nov 30, 2026
7 checks passed
LoopyLuci added a commit that referenced this pull request Nov 30, 2026
Brings in the self-hosted CI (#3), the DNS and proxy fixes, and the audit
ignore for RUSTSEC-2026-0620 (until 2026-12-31). The audit.toml conflict keeps
this branch's RUSTSEC-2026-0387 entry and drops the RUSTSEC-2023-0071 entry
that the rsa 0.10 migration makes unnecessary, then appends the 0620 entry.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
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