Skip to content

Safe-output publication defaults to ubuntu-slim despite a 45-minute timeout and heavyweight checkout #72092

Done

Description

@dsyme

Problem

The generated safe_outputs job defaults to runs-on: ubuntu-slim and timeout-minutes: 45. ubuntu-slim has a hard 15-minute execution limit, so the declared timeout is misleading for publication jobs that prepare large repository checkouts.

Observed with gh-aw 0.93.2; regenerated 0.93.5 locks still have this runner/timeout combination. This is a sanitized report from a private deployment; no private source or run links are included.

Observed behavior

Two publication jobs ended with the check annotation:

The job has exceeded the maximum execution time of 15m0s

They were publishing cross-repository PR/branch changes against a large repository. Additional-ref fetching took approximately 6-11 minutes, on top of initial checkout and setup.

  • One job applied its mutations and produced per-item receipts, then was cancelled near completion.
  • The other was cancelled while fetching refs, before its requested PR could be created.

These are not interchangeable failures: blindly replaying either job can duplicate already-applied effects.

Existing workaround

Explicitly select a runner suitable for heavyweight publication:

safe-outputs:
  runs-on: ubuntu-latest
  timeout-minutes: 45
  # Existing, appropriately scoped output declarations follow.

Narrowing fetched refs and avoiding unnecessary checkout work also helps. Raising timeout-minutes alone does not override the runner's hard limit.

Requested change

  1. Choose a suitable default runner for safe-output jobs requiring repository checkout/fetch and code publication, or require an explicit choice with an actionable compiler diagnostic.
  2. Warn when an effective ubuntu-slim job declares a timeout above its supported limit. The compiler's own default combination should not imply 45 minutes are available.
  3. Document the runner constraint beside the safe-output timeout setting and add compilation regression tests.
  4. Keep lightweight API-only publication eligible for ubuntu-slim; a blanket increase in runner size is not necessary.

References: runner limits, safe-output runtime settings, safe-output job generation.

Activity

  1. pelikhan commented on Oct 27, 2026

    @pelikhan
    Collaborator

    The compiler upgrades to Ubuntu-latest when timeout > 15

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

    bugcompilersafe-outputs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions