Skip to content

process: Friction points in the dev cycle and how to remove them #634

Closed

Description

@zackees

Snapshot of the last ~80 PRs, ~100 CI runs and the issue list as of 2026-10-13. In that window master took about 95 merges, 18 of 100 recent runs failed (8 Pull, 1 Push, 1 Release plus cancelled reruns), and several failures were process gaps rather than code bugs. Items are ordered by impact. Items marked (session) come from the day's working notes; the evidence column says what could be checked in GitHub.

1. Local Tier 2 is a subset of full CI, so -W ratchet PRs fail only after push

Evidence: #596 (run 38427670246: Ubuntu, Ubuntu Rust libobs, Flatpak, Windows arm64 and Tier 2 Windows all red; rnnoise -Wdouble-promotion errors in plugins/obs-filters), #599 (run 38437634443), #616 (needed e45a2b6: renames left references to the outer variable; GCC accepted, MSVC C4700 and Clang caught it), #606 (run 38443630425, Windows and macOS Tier 2). (session) The local harness builds only libobs, cmocka-tests and decklink, with scripting/QSV/NVENC/AJA/WebRTC off; validate.sh used to print -Werror command lines instead of the errors.
Cost: each ratchet PR took 1-3 CI round trips of 15-40 min and 2-4 fixup commits.
Proposed fix: (repo) add a ./unittest --full-c lane that runs the full Linux configure with scripting ON and -k 0, and make validate.sh print only error: lines plus 3 lines of context. (repo) PR template line for warning ratchets: "built with scripting ON and cross-checked with clang". (repo) Add Linux clang to the local lane so a GCC-only pass is not mistaken for a pass.

2. Dev-cycle scope skipped macOS/Windows, so test-only C++ PRs broke master

Evidence: #603 and #605 passed Linux-only CI, then broke Tier 2 on MSVC (C1189 inline macroized by cmocka.h) and macOS; fixed by #607 and #611 (issue #610). Run 38454403998 (#612) then failed on Windows with the same C1189 because its branch predated #607.
Cost: master red on two platforms for about 1.5 h; unrelated PRs (#612) inherited the failure and needed a rerun or rebase.
Proposed fix: (repo) #611 covers C++ cmocka paths; extend ci_scope.py so any change under test/cmocka/, frontend/utility/ or *.cmake turns on all three OSes. (repo) A merge-queue-style rule: required checks run against the up-to-date merge commit (enable "require branches to be up to date") so a stale branch cannot go green on an old base.

3. Stale plugins/obs-websocket submodule pointers revert merged fixes

Evidence: #492 (reverted #99), #496, #503 (and #497/#502 restore PRs), and #615 today: its first commit moved the pointer from a4040cb72 (#589) back to 7d89109c9, caught only because Tier 2 Linux failed test_ws_transform_bounds (run 38461253060) and by a human review comment. The memory notes already record this three times.
Cost: 3 restore PRs plus 2 revert-fix PRs; fixes silently lost for hours; one CI run per catch.
Proposed fix: (repo) a required check in ci/ that fails if a PR changes a gitlink and the PR title/body does not contain submodule:; or fail when the new pointer is not a descendant of master's pointer (git merge-base --is-ancestor). (repo) ./lint and the pre-push hook run the same check locally. (clud) make git add -A in worktrees refuse gitlinks without --include-submodules.

4. Network flakes drop a platform or fail a job with no retry

Evidence: release-rust run 38433764823 (daily beta, Build windows): timed out downloading windows-deps-2026-08-26-x86.zip; the day's release shipped without Windows; fix #619 still open. (session) A brew download failed the gersemi job. cache-encrypt-on-failure: error warnings appear in Windows jobs of runs 38404957507 and 38454403998 (benign but noisy).
Cost: a missing platform in a user-facing release; manual reruns.
Proposed fix: (repo) merge #619 (3 download attempts with backoff). (repo) wrap brew install steps in a retry helper, or pin gersemi via uvx like the local lint. (repo) the release workflow should fail loudly and rerun only the failed job automatically (gh run rerun --failed) once. Issues #614/#525 (own the dependency cache) remove the root cause.

5. The local gate lock is per clone; worktrees and sessions serialize

Evidence: (session) sessions wait on each other's lock; the lint websocket-submodule check exits 128 in fresh worktrees (shallow submodule). #618 fixed the guard for the CI shallow case.
Cost: minutes of idle wait per push with 2-3 agents in parallel (about 360 merges/3 days from two heavy committers).
Proposed fix: (repo) key the lock by gate lane + content hash, not clone path, and let a second session reuse a cached pass for an identical tree; document git submodule update --init --depth 1 in worktree setup or make the lint check skip when the submodule is absent. (zackees/ci.yml) same change in local-gate.

6. Job logs and run status are hard to get while a run is in flight

Evidence: gh run view --log-failed returned HTTP 502 and empty step names ("UNKNOWN STEP") during this scan; (session) logs are unavailable until the whole run finishes, and the agent hooks block gh run watch and polling loops.
Cost: a 40 min wait on the slowest job before a fast-failing lane (e.g. Windows arm64 at C compile) can be read.
Proposed fix: (clud) provide a sanctioned pr_watch command that streams per-job conclusions and fetches gh api .../jobs/ID/logs as soon as that job finishes. (repo) add fail-fast: true for the build matrix so one platform's red cancels the rest and the run ends sooner.

7. Fork PRs and drafts stall

Evidence: #501 (ProtonDev-sys) opened 08:02, merged 19:56, about 12 h; the first-time-contributor workflow approval was the wait (session: ~10 h). #493 from the same author never merged (no mergedAt). Draft PRs block merge.
Cost: contributor churn; duplicate review effort.
Proposed fix: (repo settings) set "Approve and run workflows" to "Require approval for first-time contributors only", add a bot or admin routine that approves fork runs on label safe-to-test; document that PRs must be marked ready before the lander runs.

8. MSVC rejects unconditional -Wno-* and GCC pragmas

Evidence: (session) D8021 on unconditional -Wno-*; run 38404957507 (#570): obs-c-oracle/oracle/base_drive.c(6) error C2220 for a GCC pragma, fixed by #571.
Cost: one red Windows run each time; Windows is the last platform to compile C changes.
Proposed fix: (repo) add a cmake/ helper obs_c_warning_flag(<gcc-flag>) that wraps flags in $<$<C_COMPILER_ID:GNU,Clang>:> and a lint check that rejects bare -Wno- in CMake lists; (repo) cross-compile check of C with clang-cl on Linux in ./lint (#511 already lints Windows from Linux).

9. Hooks block legitimate commands

Evidence: (session) agent tool hooks reject commands containing PATH= text or cargo:warning text even inside strings/logs.
Cost: agents rewrite commands or lose a step; repeated by every agent.
Proposed fix: (clud) match hooks on the parsed command (assignments only), not substrings; (repo) list the exact blocked patterns in AGENTS.md.

10. Flatpak lane fails without a classified cause

Evidence: runs 38437634443 and 38427670246 (Flatpak red; appstream lint "Given artifact type is incorrect" in 38437634443). #428 already tuned disk cleanup.
Cost: unknown; reruns.
Proposed fix: (repo) confirm whether Flatpak is a required check for ratchet-only PRs; if not, scope it out via ci_scope.py, else file a dedicated issue with the lint output.

Quick wins (under an hour each)

Activity

  1. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Claiming the remaining repo-side items (1, 4, 8, 9); mapping of every item to follow when done.

  2. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Status of every item. The repo-side fixes have landed; items that live outside this repo are listed with where they belong.

    1. Tier 2 subset:
    2. Stale-base breakage:
    3. Backwards submodule pointers: PR CI fails them unless the title says submodule: (ci: Fail PRs that move a submodule pointer backwards (#693) #717).
    4. Network flakes:
    5. Gate lock and worktrees:
    6. In-flight logs:
      • clud's pr_merge_watch reports per-job results as they land.
      • fail-fast: false stays: the queue and CI Gate ✅ end on the first failed required job, and per-platform results are wanted.
    7. Fork PRs: approval only for first-time contributors (repository setting), documented in docs: explain fork PR CI approval for returning contributors #702.
    8. MSVC and -W flags: ci/msvc_flags.py in ./lint rejects -W options that would reach MSVC (ci: Lint CMake for GCC/Clang -W options that would reach MSVC (#634 item 8) #719).
    9. Hook false positives:
    10. Flatpak: a release-gate-only job since ci: Move Flatpak and the native builds out of the dev cycle into a release gate #436, so it no longer runs on dev-cycle PRs.
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