Skip to content

ci: changelog gate times out on a full-history checkout #3520

Description

@eleshar

Problem

"Require changelog or skip label" (changelog-unified.yml) fails at random by timing out. Its timeout-minutes: 5 (added in #3477) is shorter than its fetch-depth: 0 checkout of the full repository history.

Evidence, 2026-09-23:

That history is used only for git diff --name-only base head. The two validation scripts use only Node built-ins, so npm ci is not needed either.

labeling-unified.yml's PR labeler job has the same pattern (5-minute timeout, fetch-depth: 0), although actions/labeler reads changed files from the API and only needs its config file.

Change

  • Changelog gate: list changed files with the PR files API (pulls.listFiles), not git diff. Check out only the four files the job reads (sparse, depth 1), and drop npm ci.
  • Labeler: sparse, depth-1 checkout of the labeler config only.

Activity

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

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions