Repository navigation
CI: local pipeline, and self-hosted runners for core CI - #3
Merged
Merged
Conversation
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ci/,.githooks/,docs/LOCAL_CI.md): a stdlib-only Python pipeline that runs the same checks ascore-ci.ymlon this computer, with preflight checks, parallel stages, per-run reports and git hooks (precommit,prepush). Pipeline self-tests: 68 pass..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.Notes
Register-Runners.ps1.🤖 Generated with Claude Code