Skip to content

Linux E2E branch dispatches time out building from source on cold caches (build_timeout_minutes: 90) #18404

Open

Description

@kevinushey

What happens

Dispatching os-test-e2e-rstudio-desktop-linux.yml on a topic branch with build_from_source: true (the default) gets the build job cancelled at the engine's build_timeout_minutes when the caches are cold. Observed while validating #18378 on fedora-43-x86_64 (limit: 90 minutes):

  • Attempt 1 (run 30497728838): rstudio-tools and GWT caches missed (evicted by the 10 GB Actions cache LRU), sccache S3 effectively empty for this engine (4 hits / 699 requests). Dependency install took 12 minutes; the build step was cancelled 78 minutes in, roughly 90% through the C++ compile.
  • Attempt 2 (run 30502793933, dispatched from a temporary branch with the timeout raised to 180): completed in ~46 minutes -- 11 minutes of (still cold) dependency install plus a 35-minute build riding the sccache objects attempt 1 had banked in S3 (686 hits / 769 requests).

Extrapolating, a fully cold one-shot Fedora source build needs roughly 120 minutes on the ubuntu-latest container runners.

Why branch runs are cold

  • The rstudio-tools / R-libs / GWT cache saves are deliberately gated to github.ref == 'refs/heads/main' (each branch copy would be pure pressure on the 10 GB quota), so a branch dispatch can never warm them for its own retry, and the main-scoped copies are frequently evicted.
  • sccache's S3 backend is not main-gated, but engines whose scheduled runs test daily installers (build_from_source: false) never populate it, so the first from-source dispatch on such an engine starts from nothing. It does bank progress across attempts, which is why retrying eventually converges.

Suggested fix

Raise build_timeout_minutes for the engines still at 90 (both fedoras, debian-13, the ubuntus) toward the 150 that rocky-9-x86_64 and rocky-10-arm64 already use; 150 fits the observed ~120-minute cold Fedora build with margin. The timeout only bounds runaway jobs -- a successful warm build finishes in well under an hour, so the cost of a higher ceiling is only paid by runs that would otherwise die at 90 and waste the whole spend.

Context: the 180-minute validation bump was made on a throwaway branch (workflow_dispatch reads the engine config from the dispatched ref) and deleted after; nothing is committed. See also the note on #18396.

Activity

  1. ronblum commented on Aug 5, 2026

    @ronblum
    Contributor

    Three measured cold-build times from validating the Linux arch-gap engines, which corroborate the ~120-minute extrapolation and suggest the fix can be narrower than "every engine still at 90."

    All three were genuinely cold: brand-new cache-key families that had never been built anywhere, so the rstudio-tools / R-libs / GWT caches all missed and sccache S3 held nothing for those prefixes. Single attempt each, no banked objects from a prior try. Source builds via a push trigger on a topic branch, so the main-gated cache saves applied exactly as described above.

    Engine Build shape build_timeout_minutes Cold build
    rocky-9-arm64 container (rockylinux:9) 150 119 min 45 s
    ubuntu-22-arm64 bare (ubuntu-22.04-arm) 90 45 min 30 s
    ubuntu-26-arm64 bare (ubuntu-26.04-arm) 90 42 min 17 s

    Run: https://github.com/rstudio/rstudio/actions/runs/30927465235

    Two things follow.

    1. The ~120-minute estimate holds, measured rather than extrapolated, and on a different distro and architecture than the Fedora case above: a fully cold container build came in at 119 min 45 s. At a 90-minute limit it would have been cancelled with roughly 30 minutes of work left, matching the attempt-1 pattern in the report.

    2. Bare-runner engines look fine at 90. Both bare arm64 builds finished in the low 40s of minutes fully cold -- less than half the limit. So the predictor seems to be container versus bare, not the distro: containers pay for a cold dnf/apt bootstrap plus a slower filesystem, bare runners start from a warm image. If that holds, the suggested fix could be limited to the container engines rather than also raising debian-13 and the ubuntus, which are all bare.

    Caveat on (2): all three measurements are arm64, so container-versus-bare and arm64-versus-x86_64 are not separated here. rocky-9-x86_64 is already at 150, so there is no contrasting measurement to isolate that. Worth one x86_64 container data point before acting on the narrower reading.

    Current state of the container engines, for reference: every one is already at 150 except fedora-43-x86_64 and fedora-44-x86_64, which remain at 90 -- the two this issue was opened against.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions