Skip to content

meta: Unblock contributors; rely on PR CI instead of local ceremony #699

Closed
8 of 8 issues completed
Closed

Description

@zackees

Contributors are spending their time on local checks and home-made CI instead of landing fixes. @chriscoveries released nine finished fixes (#482–#490) after 283 self-hosted CI runs (109 failed, nearly all environmental). The goal: a contributor writes the RED test and fix, opens a PR, and our PR CI does the rest.

Sub-issues are ordered by how much each unblocks other developers. Work top-down.

  1. docs: PR CI is the merge gate; the local gate is optional for contributors #689: say it. PR CI is the merge gate, the local gate is optional, open draft PRs early, no fork CI.
  2. ci: Run fork PR workflows without manual approval for returning contributors #690: make it true for forks. No manual approval wait for returning contributors.
  3. chore: land chriscoveries' released fixes for #482–#490 #686: land the nine stalled fixes now.
  4. tooling: Ship a repo-level agent hook that enforces soldr over bare cargo/rustup #691: enforce Soldr over bare cargo/rustup in agents, so local runs that do happen use the cache.
  5. ci: Test PRs on their merge result (merge queue) instead of making contributors rebase and re-run #692: test on the merge result (merge queue), so nobody rebases and re-runs by hand.
  6. ci: Fail PRs that move a submodule pointer backwards #693: block backwards submodule pointers, a recurring cause of wasted CI round trips.
  7. docs: Troubleshooting for contributor environments (soldr permissions, disk, Tier 2 outside Docker) #694: troubleshooting docs for the environment failures people hit.
  8. process: Friction points in the dev cycle and how to remove them #634: the remaining friction items (Tier 2 subset, network retries, gate lock, logs, MSVC flags, hook false positives, Flatpak).

Related: the cross-platform meta, which shrinks the macOS/Windows CI wait itself.

Done when

  • A fork contributor's PR gets full CI without approval delay.
  • The docs no longer require local runs before a PR.
  • Merges run on the merge result.

Sub-issues

Sub-issues

8 of 8 Issues completed
Loading 8 sub-issues

Activity

  1. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Cross-platform meta: #700

  2. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    All sub-issues done: #689 (#701), #690 (#702), #686 (nine fixes), #691 (#715), #692 (#716, #720, master merge-queue ruleset), #693 (#717), #694 (#718), #634 (#719, #721, plus the item mapping there). Fork PRs from returning contributors run without approval, the docs make PR CI the merge gate, and merges run on the merge result.

  3. chriscoveries commented on Oct 14, 2026

    @chriscoveries
    Contributor

    Thanks for #699, and for landing the nine fixes. That's exactly the help we needed.

    We'd stalled because of CI. Over the past two days we've spent more time on CI than on anything else, including six hours cleaning up about half a terabyte of hidden CI residue across our machines. All of our obs-rust work has stopped while we dig out, along with our work on any other public repos.

    What we've tried, and thrown away:

    • Blacksmith: too expensive for us. At this volume, hosted runners like it seem to cost people thousands of dollars a month.
    • Buildkite: getting one self-hosted agent online took about 20 rounds of troubleshooting and 40-odd shell commands. The obstacles included two separate installers, a CLI that assumed a cluster named Default, a systemd service that couldn't create its own build directory, and no way to cap disk use. We wrote them a four-page report on the onboarding and got a one-line reply. Then removing Buildkite left a time bomb. On 10 Oct its disk image was deleted but its /etc/fstab mount line wasn't. Four days later a scheduled reboot hit that line, the box stopped in emergency mode with no network, and it went dark.
    • CircleCI and Woodpecker: each a different degree of disaster.
    • Self-hosted GitHub Actions runners on our Hetzner boxes (an 8-core/16 GB and a 16-core/32 GB AMD Rome, and an 8-core/16 GB Intel Skylake). On 12 Oct runner caches pushed the busiest one to 92% disk, and its CI died.
    • Devin cloud machines (Intel Emerald Rapids): each $20 Devin plan gave us what seemed like unlimited use of five separate sessions, each an 8-core box with 32 GB of RAM. Two plans meant ten 8-core boxes, and for days that was our main CI. It ran out two days ago when Devin moved to per-session billing, and we've struggled since.
    • A small in-house tool that borrows the short-lived virtual machines that come with AI assistants (ChatGPT, Grok and Muse) and tries to keep them alive as runners: 8 cores with about 30 GB of disk, or an 8-core EPYC with 110 GB. Helpful, but temporary, and we've more or less given up on it. Most of the time we end up back on a 2-core ARM Neoverse instance, running CI slowly.
    • An M1 Max MacBook (2 TB) as our macOS runner. It ran hot the whole time, then hit ENOSPC: CI residue filled its disk, and most of that half terabyte was on this one machine. One source worth knowing about if you run the Rust tests locally: rust/obs-util/tests/config_file_parity.rs creates a scratch directory for every proptest case and never removes it. On that laptop that came to about 281,000 directories.

    GARM, the GitHub Actions Runner Manager, is our main hope now. Since 13 Oct it has run CI for our other projects on throwaway just-in-time runners in Incus containers, all built from one shared runner image, so nothing piles up between jobs. obsrust's build dependencies are already in that image, and moving obsrust onto it is the last step. It's had its own bumps: without webhooks, setting the pools to zero idle runners meant no runners at all. wickdev, who's building it, has more to say.

    If there's one thing we're learning, it's that code is cheap, but CI is expensive. Honestly, we don't know how you keep it running, @zackees. We're at our wits' end. If anyone has a CI setup that works for a project this size on a small budget, or spare runner capacity, we'd be very grateful to hear about it.

    @zackees, we've also sent you a DM on Twitter. Is there a Telegram group, Discord or other chat where contributors can talk CI and coordinate faster than in issues? We'd love to join one.

    We love working on this project, but the owner is exhausted and going to bed!

  4. chriscoveries commented on Oct 14, 2026

    @chriscoveries
    Contributor

    @zackees, we've also sent you a DM on Twitter. Is there a Telegram group, Discord or other chat where contributors can talk CI and coordinate faster than in issues? We'd love to join one.

  5. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Understood and I hear you.

    There are two strategies pursuable here: increase machine count or reduce work.

    Let's opt for the latter.

    ci attestation

    This is a strategy that has guidelines at github.com/zackees/ci.yml

    It features advanced cache management and ci skipping when possible. It's an evolving spec but mature to use here. The gains are huge. Let's move to this strategy

  6. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    @chriscoveries, thank you for writing this up, and I'm sorry CI has cost you this much. Short version: you can turn your self-hosted CI off. We've upgraded ours, and your PRs already run on it.

    • No approval wait. Fork PR workflows only need approval for a first-time contributor, so every PR you open runs right away. Your open ones (obs-util: Bound counted FFI string reads #729–media-io: Scale directly into compatible output planes (experimental) #743) each already have a full set of checks.
    • Open the PR as soon as the RED test exists, as a draft if you like. A red run on a PR is expected, not a failure on your side. PR CI decides the merge; local checks are optional.
    • No local ceremony needed. You don't have to run Tier 2, the cross builds or Docker on your machines. If you want faster feedback, ./lint is a few seconds.
    • macOS and Windows jobs run automatically when a change touches those platforms, so the M1 Max can rest.
    • The heavy builds (full app builds, Flatpak, every platform's packages) run in the nightly release gate, not per PR.

    How CI works here, and the tools behind it, is written up in docs/ci-tooling.md (with a short summary in the README).

    Thanks also for the config_file_parity.rs report (a scratch directory per proptest case, never removed). That's a real bug in our tests, and we'll fix it so nobody else's disk fills up.

    For faster coordination: the OBS Rust Discord is at https://discord.gg/6MWWX4x9pf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions