Skip to content

ci: main's Checks fail on 14 of 18 pushes since 2026-10-26 on checks that pass on a re-run, and main's Build times out on every push #5199

Open

Description

@yannickmonney

Summary

Most pushes to main end with a failed Checks run, even though every change on them passed its own checks before landing.

  • Scale. Since 2026-10-26, 14 of the 18 completed Checks runs on pushes to main failed on their first attempt. Between 2026-10-17 and 2026-10-19, none of the 8 had failed. Each of the five merge trains that landed since 2026-10-30 failed its first push run on main; one passed when re-run.
  • The failures are intermittent, not breakage.
    • All but one of the checks that failed on main also failed on pull-request or merge-queue runs of unrelated branches in the same days.
    • Where a tree ran a second time, the check that had failed passed: on all three re-runs on main (one then failed another check) and on four trains.
    • Four of the five trains landed only after their failed jobs were re-run. So the push run on main is a fresh draw on the same intermittent checks. Only a person re-runs it: 3 of the 19 since 2026-10-26 were.
  • Backend integration is most of it. It failed in 10 of the 14 failed runs and timed out in an 11th. Its failure rate rose when it moved to the self-hosted runners on 2026-10-29: 22% of its completed attempts failed on GitHub-hosted runners (2026-10-26 to 10-29), 79% on the self-hosted ones (10-29 to 10-31).
  • Build never finishes on main. The Build workflow has ended cancelled (grey, not red) on all 8 pushes to main since that move. Its image builds and container tests hit their 15- and 20-minute caps there, while the trains' own Build runs passed, three of them after re-runs.
  • Nothing acts on a red main.
    • Four of the five trains' push runs were started by tale-code-bot, so GitHub's failure notice went to the bot.
    • No workflow reports them, and no required check reads them.
    • .github/CI.md:963-964 relies on these runs: "the full validation of each push to main catches" two changes that conflict in meaning. With most runs red for other reasons, such a failure would not stand out.

The report

it seems that even when merging some jobs on main then fail like the unit tests, backend integration etc.

What happens (GitHub Actions history, read 2026-10-31 ~10:30 UTC)

Checks on pushes to main, first attempts

Push (UTC) Commit Landed as Failed on main
10-26 20:23 890656c9ea #5054 Browser: code-editor.browser.test.tsx › "offers several fixes as buttons, chosen with the arrows"
10-26 21:00 505810c17a #5053 Backend integration: W18 standing-role wake; checkSandboxSpawner truncated by SandboxQuotaError
10-26 22:42 53d1fdb040 #5055 Backend integration: the "Install ffmpeg" step timed out after 8 minutes
10-28 00:12 06d04bb366 #5061 —
10-28 00:55 1ea59abe9f #5057 — (the run for #5058 three minutes earlier was cancelled by this push)
10-28 10:09 4820083f2d #5062 —
10-28 11:10 5b8a85f7e8 #5064 Backend integration: W18
10-28 13:41 670c3c3836 #5066 Unit (platform 2/2): ytdlp_live.test.ts could not download yt-dlp (fetch failed); passed on a re-run
10-29 00:35 8803db7c85 #5065 —
10-29 04:01 f8fd839880 #5067 Backend integration: W18
10-29 07:52 9be5cadacb #5070 (self-hosted runners) Backend integration: "a fork is born with the steps it reuses"
10-29 20:01 0da0820516 direct push (retires the merge queue) Backend integration: ffmpeg install timeout; the re-run failed checkRestProjectAgents
10-30 01:06 97256fcea9 train #5128 (18 commits) Backend integration: "the run reaches its lanes" (statement timeout, #5133); passed on a re-run
10-30 01:53 003f837e4e #5117 Backend integration: checkSandboxSpawner truncated by SandboxQuotaError
10-30 08:51 b2560c2d7d train #5134 (51 commits) Backend integration: statement timeout before the lanes; Browser: tasks-list.browser.test.tsx drag-cancel walk timed out at 15 s
10-30 16:56 49ce42fdd3 train #5145 (31 commits) UI (platform 2/4): version-compare-page.test.tsx "Found multiple elements with the text: Summarize"; Unit (workspaces): signalExecProcesses
10-31 00:34 06fe859009 train #5181 (42 commits) Unit (workspaces): signalExecProcesses; Backend integration hit its 40-minute cap
10-31 09:10 df6105cef0 train #5196 (12 commits) Backend integration: MCP server/discover counting; checkOneLiveRunPerTask truncated by a duplicate key on project_agent_runs_one_live
  • The signalExecProcesses check is "a normally completed shim needs no post-exec process or environment reads" (services/sandbox-runtime/daemon/src/process-reaper.test.ts:760). It failed with Expected: 0.
  • The other workflows on main in the same period:
    • SAST, Commitlint and Publish packages: no failure.
    • CLI: one Windows build failure (10-26 20:23).
    • Security: one Bun audit failure (10-31 00:34), not examined.

The same checks on other runs

These are the Checks runs on all events since 2026-10-26: 203 for pull requests, 81 for the merge queue (until 2026-10-29) and 21 for pushes (19 of them to main), with every attempt counted. Each failed job's log was read for its failing check.

Failing check Pull requests Merge queue main Branches Runner Last seen
Backend integration: statement timeout before the lanes (#5133) 13 12 2 21 self-hosted 10-30 16:58
Backend integration: "Install ffmpeg" timed out after 8 min 1 10 2 8 12 self-hosted, 2 hosted 10-29 20:15
UI 2/4: version-compare-page.test.tsx "opens what changed in a node picked on the graph" 9 0 1 9 hosted 10-30 16:58
Browser: tasks-list.browser.test.tsx drag-cancel focus walk 8 0 1 9 hosted 10-30 15:48
Unit (workspaces): signalExecProcesses … 3 3 2 7 hosted 10-31 03:07
Backend integration: MCP server/discover counting (MCP-R21, MCP-R26) 5 0 1 6 self-hosted 10-31 09:11
Backend integration: checkSandboxSpawner truncated by SandboxQuotaError 4 0 2 5 5 self-hosted, 1 hosted 10-30 01:53
Backend integration: standing-role wake W18, W12 and "a manager failure for good" (#4921) 4 3 3 5 6 hosted, 4 self-hosted 10-31 08:02
Browser: code-editor.browser.test.tsx "offers several fixes as buttons" 3 0 1 3 hosted 10-31 03:07
Browser: code-editor.browser.test.tsx "closes the list before the sheet, at phone width" 4 2 0 6 hosted 10-29 23:55
Browser: workflow-canvas.run.browser.test.tsx "highlights the paths through No" 0 6 0 6 5 hosted, 1 self-hosted 10-29 19:05
Backend integration: checkOneLiveRunPerTask duplicate key 0 0 1 1 self-hosted 10-31 09:10
  • checkOneLiveRunPerTask is the one check seen failing on main alone.
  • The version-compare test failed two ways.
    • On pull requests it timed out at 5 s. 49ce42f raised its ceiling to 15 s.
    • The push of that same commit then failed after 10.3 s with "Found multiple elements with the text: Summarize".
  • Job timeouts are in addition to the table. Backend integration hit its 40-minute cap 22 times (17 of them in the merge queue on the evening of 2026-10-29), once on main (10-31 00:34).
    • On that same evening, Format, Lint, Knip and Type check also hit their 10- and 15-minute caps 12 times.
  • Integration scope failed 4 times on pull requests with HttpError: API rate limit exceeded for installation. Twice that was train chore: merge train 20261029-2329 #5128's first two attempts.

The trains' own runs

Train PR Checks attempts What failed before the passing attempt Re-run by Push run on main
#5128 3 Twice: Integration scope (API rate limit exceeded for installation) and Build (the web build's release fetch got 403 from the GitHub releases API); Backend integration then failed as undecided a person Backend integration
#5134 2 Backend integration: MCP server/discover, two budget-refusal checks tale-code-bot Backend integration, Browser
#5145 1 (earlier heads: Browser drag-cancel, UI version-compare) — UI 2/4, Unit (workspaces)
#5181 2 Browser tale-code-bot Unit (workspaces)
#5196 2 Backend integration: W12 and "a manager failure for good" tale-code-bot Backend integration
  • Landing rule. A train lands by gh pr merge --rebase --auto once "the eight CI ready (…) contexts pass" (.github/CI.md:936-938).
  • What a re-run does. CI ready (Checks) runs on pull requests only (.github/workflows/checks.yml:1131-1133). A re-run of the failed jobs runs it again with them, so the train lands as soon as one attempt passes.
  • The trains' Build workflow runs passed too, three of them after re-runs.

Backend integration by runner

These are completed attempts of Backend integration on all events since 2026-10-26, cancellations excluded. They include pull requests whose own changes may have failed it.

Runner Passed Failed Failed %
GitHub-hosted (10-26 to 10-29 morning) 29 8 22%
self-hosted tale-hetzner (from 10-29) 19 71 79%

Build on pushes to main

  • All cancelled. Every Build run on a push to main since 2026-10-29 07:52 ended cancelled: 8 of 8, and the one re-run was cancelled too.
  • Every cancelled job was a timeout, with the annotation "The job has exceeded the maximum execution time": 38 in all.
    • Build platform 9, Build sandbox-runtime 8, Build sandbox 1 (cap 20 min)
    • Docs container test 7, UI docs container test 7, Web container test 6 (cap 15 min)
  • How the time went.
    • In six of the seven Build platform jobs on main that were measured, "Build and push" ran 12–17 minutes before the cap.
    • In the seventh (df6105cef0), "Setup Docker builder" alone took 12 minutes.
    • On train chore: merge train 20261031-0751 #5196's own run the same job took 9 min 50 s, "Build and push" 6 min 15 s.
  • The one configured difference for main is the cache export: cache-to writes the GitHub Actions build cache only from pushes to main (.github/workflows/build.yml:462-465).
  • Cause not established. One stall varies from run to run: on main, the wait before BuildKit imports the registry build cache ran from 1 s to 7.6 min across the seven runs.

Why (main at df6105cef)

The landing gate passes by retry, and main gets one try.

  • A train's checks pass once one attempt passes (above).
  • The push run on main is a new run of the same suites on the same tree. Nothing waits for it, and only a person re-runs it.
  • With several intermittent checks in Backend integration, UI and Browser, a single attempt rarely passes them all.

Backend integration runs on shared machines.

Nobody hears about a red main.

  • No workflow listens for finished runs: there is no workflow_run trigger in .github/workflows/.
  • Four of the five trains' push runs on main were started by tale-code-bot; the fifth was started and re-run by a person.
  • The release candidate runs Checks again on its own commit (repository_dispatch, .github/workflows/checks.yml:11-13; 3 rounds since 2026-10-26, all passed). So a red push run on main blocks no release.

The trains fix intermittent checks one at a time, as they hit them. Since 2026-10-30 four commits did so, each naming the failure it fixes:

Who meets it

  • Anyone reading main's status: the commit checks and the Actions list.
  • The feature line. release/0.6 is rebased onto main whenever main moves (.github/CI.md:948-950), so it is rebased onto trees whose push run is mostly red.
  • Whoever changes something that really breaks main. That failure would sit among the intermittent ones.

Constraints a change must respect

  • Capacity. The self-hosted runners carry most Linux jobs (.github/CI.md:62-75, ci: run Linux jobs on the runner LINUX_RUNNER names #5070: 64 runners). Moving a job back to GitHub-hosted runners adds it to the pool the time-budgeted suites use.
  • Forks. A fork's pull request never reaches a self-hosted machine (.github/CI.md:70-71).
  • Train repairs. A red train is repaired on its own branch while the next one collects (.github/CI.md:944-946), and one train per line is open at a time.
  • The release gate. It stays the complete release-candidate round (.github/CI.md:969), whatever main's push runs do.

Options (no preference stated)

  1. Fix the recurring checks at the root, one issue each:
  2. Retry at the test level and report it. For example retry in the UI and Browser Vitest projects, or one re-run of a failed integration lane. A retried pass would no longer fail the run, but the job summary would list it as intermittent.
  3. Give a red main an owner.
    • A workflow_run job could open or update one issue when a push run on main fails.
    • Or the train role could check main's run after landing and repair forward, as it repairs a red train.
  4. Keep what the re-runs hide. Record on the train's pull request which jobs were re-run and what they failed. Or land a train only on a first-attempt pass.
  5. Move the time-sensitive jobs. Put Backend integration (and Build) on LINUX_TEST_RUNNER like the other suites with time budgets. Or give them self-hosted machines of their own, or put ffmpeg and the images they pull on the self-hosted machines ahead of time.
  6. Find why Build runs longer on main. Check the main-only cache export first, then raise main's caps or build main on hosted runners.
  7. Re-run failed jobs on main once automatically, and treat only a second failure as red. This hides intermittent checks unless option 2 or 4 records them.

Questions

  • Who owns a red main, and what should it trigger?
  • Is a re-run acceptable evidence for landing a train?
  • Should Backend integration and Build stay on the shared self-hosted runners?

Not examined

  • Other workflows on main: E2E (runs only on pull requests), CLI and the Bun audit failure in Security.
  • Older runs and the feature line: runs before 2026-10-17, and those on release/0.6.
  • Why Build is slower on main.
  • Runner load: whether the self-hosted failures track how many jobs share a machine.
  • Cause of each intermittent check: beyond what its log and an existing issue say.

Related

Activity

  1. added
    priority: medium
    needs discussion
    bug
    on Oct 31, 2026
  2. tale-code-bot commented on Nov 4, 2026

    @tale-code-bot
    Collaborator

    Reopening: this issue was closed by mistake.

    Merge train #5349 closed it when it merged into main at 2026-11-04 00:00:33 UTC.

    For the record, main's push CI at b658bc8873299b59c9b9f4854f303395c4f09269 failed in two jobs. Both passed in #5349's CI on the same tree (head 179c3c34f):

    • Checks 41743551981, Unit (workspaces), job 126290786472. In services/session-manager/backend/domains/proxies/parsing.test.ts, the test "a list of lines made to keep the parser busy > is read in a moment: colons, brackets and letters" failed: expected 332.92484799999966 to be less than 300.
    • CLI 41743551767, Build (windows), job 126290839966. In tools/cli/tests/smoke.test.ts, the test "reinit with --force preserves the project id" timed out after 30000 ms, and the child exited 143.

    Build 41743551978 passed on this push.

    Tale's Coder, merge-train role (task TALE-234).

  3. yannickmonney commented on Nov 6, 2026

    @yannickmonney
    ContributorAuthor

    main's Build timed out again, at the v0.5.101 candidate

    • Push run 42190679619 at d886f4e05 (docs: write the v0.5.101 release notes, 2026-11-06 08:51 UTC), attempt 1: Docs container test exceeded its 15-minute limit and Build platform its 20-minute limit. GitHub reports both as cancelled.
    • It ran beside the candidate's Build for the same commit, run 42190739330 (dispatched 08:51:53 UTC), which builds the complete image graph. That run passed both jobs.
    • Attempt 2 of all jobs, started at 09:45 UTC once the Release run had finished: success. Docs container test took 9 min 35 s and Build platform 11 min 46 s.
    • The four push Builds on main before it succeeded (2026-11-05 00:11, 08:04 and 16:51 UTC, 2026-11-06 00:01 UTC).
  4. yannickmonney commented on Nov 7, 2026

    @yannickmonney
    ContributorAuthor

    The v0.5.103 candidate's Checks failed twice on runner timing, then passed

    • Run 42301722387 at the candidate 673693988 (docs: write the v0.5.103 release notes, 2026-11-06), attempt 1: one of 2412 backend integration checks failed, worker pickup latency, with p95 1149 ms against the gate's 1000 ms and p50 81 ms. The platform code is byte-identical to v0.5.102, whose candidate passed it.
    • Attempt 2, every job re-run at 22:28 UTC: a different one failed, standing-role wake: scenario W18 variants ran to its end (the W18 manager admission was not observed); worker pickup latency passed this time.
    • Attempt 3, every job re-run at 22:43 UTC with CI otherwise idle, passed at 22:57 UTC, and v0.5.103 went out from it.
    • main's own push Checks at the same commit, run 42300870966, passed on attempt 1.
  5. yannickmonney commented on Nov 7, 2026

    @yannickmonney
    ContributorAuthor

    The v0.5.104 candidate's Checks failed once on the session manager's parser time budget, then passed

    • Run 42397553987 at the candidate 06c91e640 (docs: write the v0.5.104 release notes, 2026-11-07), attempt 1, Unit (workspaces), job 128478107222: one of 2771 tests failed, services/session-manager/backend/domains/proxies/parsing.test.ts "a list of lines made to keep the parser busy > is read in a moment: closing brackets and colons", expected 305.4442640000002 to be less than 300. The same suite's case "colons, brackets and letters" is recorded above at 332 ms.
    • The same tree passed this job twice before: the train pull request chore: merge train 20261107-1551 #5415 (run 42388454760) and main's push Checks at the same commit (run 42390089756).
    • Attempt 2, every job re-run at 18:00 UTC, passed at 18:14 UTC, and v0.5.104 went out from it.
  6. yannickmonney commented on Nov 7, 2026

    @yannickmonney
    ContributorAuthor

    main's push Build at the v0.5.105 candidate hit its time caps, then passed on a full re-run

    • Run 42422253332, the push of 4368a0fb6 (fix(platform): give agents on Pi the model's context window #5416, merged 2026-11-07 22:47 UTC), attempt 1: Docs container test hit its 15-minute cap (22:48–23:03 UTC, runner tale-hetzner-0003-03) and Build platform its 20-minute cap (22:48–23:08 UTC, tale-hetzner-0002-07), so the run ended cancelled.
    • The release candidate's own Build run 42422559106, at the same commit, ran at the same time on the same runner pool and passed both jobs in about six minutes each (tale-hetzner-0002-01, tale-hetzner-0004-03).
    • The push before it (06c91e640, run 42390089773) passed the same two jobs at 14 min 46 s and 16 min 9 s, close to both caps.
    • Attempt 2, every job re-run from 23:32 UTC, passed at 23:49 UTC: Build platform in 6 min 30 s, Docs container test in 9 min 47 s. v0.5.105 went out from the candidate's own runs, which passed on attempt 1.
  7. yannickmonney commented on Nov 14, 2026

    @yannickmonney
    ContributorAuthor

    Decision

    Rule. A red main, or a red release-candidate round, is a defect with an owner. No new silent retry may hide it.

    • Owner of a red main. The merge-train role.
      • A workflow_run reporter opens or updates one ci-red-main issue per red workflow+job on a push to main. It covers Checks, Build, CLI and Security.
      • Red means a failure, or a cancellation caused by a timeout. A cancellation by a newer push counts as nothing.
      • The issue closes only when a later push run actually runs that job and the job passes.
      • The role repairs forward on train or links the red to its family's ci-intermittent issue. train does not depart while a red has neither.
    • Re-runs, on every gate. Landing a train after a re-run stays allowed, and so does releasing a candidate after one, but only on the record.
      • Every attempt after the first writes the earlier failures to the summaries of the CI ready (…) jobs and the candidate receipt.
      • On a train PR, each workflow also keeps one marked comment of its own.
      • The train roles (train and feature-train) and the release role re-run only failures that match an open ci-intermittent issue. Anything else is repaired.
    • Runners.
      • Backend integration moves to LINUX_TEST_RUNNER, with a pinned, checksummed and cached ffmpeg.
      • Build stays self-hosted, with its caps unchanged. Main's Build stall is measured step by step before anything moves, then fixed at its cause. That means taking the cache export off the verdict jobs, serialising against the candidate Build of the same commit, or both. It is never a cap raise.
    • No retries, no blanket budget raises. No automatic re-runs and no new test-level retries. Flaky wall-clock budgets become checks of what they guard. Each family is fixed at its root.

    Answers

    • Who owns a red main? The merge-train role. The reporter files ci-red-main. The role repairs forward or links the red, and an unowned red holds the next train.
    • Is a re-run acceptable evidence? Yes, for trains and candidates, but only recorded and only for a known intermittent. A first-attempt pass becomes the bar once the ledger is short.
    • Stay on the shared runners? Backend integration: no. It failed 79% of attempts self-hosted against 22% hosted, and it holds time budgets. Build: yes. Its stall is not yet explained: a full re-run with the export passed in 6.5 min, while setup and cache-import stalls reached 12 and 7.6 min. So it is measured first.

    Rationale

    The real risk is a real break hiding among intermittent reds nobody reads, on main and in the release round alike. So ownership and a record of re-runs come first, and the flaky families are then worked off from that ledger. Backend integration was the one time-budgeted suite the runner rule missed. For Build, the evidence fits pool contention as well as it fits the main-only export, so the fix waits on the measurement.

    Implementation units (all on main)

    1. Backend integration on LINUX_TEST_RUNNER, with a pinned ffmpeg (S). Held by release-candidate-contract.json.
    2. The ci-red-main reporter (M). Fixture-tested rules: open, update, timeout = red, concurrency-cancel and skip = neither, close only on a run that passed the job.
    3. Re-run record (M). CI ready jobs and the candidate receipt summarise earlier attempts, and each workflow keeps its own marked comment on train PRs. The verdict never changes.
    4. The role contract (S). Train roles and the release role: owner, departure rule, re-run rule, both labels. Depends on 2 and 3.
    5. Main's Build stall (M). Measure per step, then fix the cause under the existing caps, with the build guard tests updated.
    6. Proxy parser held to linear scaling (S).
    7. Windows CLI smoke 'reinit with --force' (M).
    8. Backend integration families, one PR each (L). Pickup latency is judged after unit 1.
    9. UI, Browser and unit families, one PR each (L). Each closes after 20 clean runs of its lane.
  8. added
    agent-ready
    and removed
    needs discussion
    on Nov 14, 2026
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

    agent-readybugpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions