Skip to content

A required check downloads actionlint from github.com at run time, and a 504 there blocks every pull request and the merge queue #2682

Open

Description

@Birfy

Written-by: Chief

The required package job downloads actionlint from github.com at run time, and that URL has been answering 504 for the last hour: package fails, tests-ok fails with it (it aggregates package), and nothing in this repository can enter the merge queue. This is not a code defect in any pull request — it is a single external hop the gate cannot do without.

Read at 2026-11-08T10:06Z, main b032d480c91ff887cc0bb33c63755d83aa103873.

Evidence

.github/workflows/test.yml:153-158:

      - name: Lint the workflows (actionlint)
        env:
          VERSION: 1.7.7
        run: |
          curl -fsSL "https://github.com/rhysd/actionlint/releases/download/v${VERSION}/actionlint_${VERSION}_linux_amd64.tar.gz" | tar -xz actionlint
          ./actionlint -color

Every failing log ends at the same line, curl: (22) The requested URL returned error: 504, followed by gzip: stdin: unexpected end of file / tar: Error is not recoverable. Never actionlint itself.

  • PR Report a turn cut off at the output limit instead of a normal finish #2680's Test run 42467134451: attempts 1-8 failed this way; attempt 9 passed (09:47:45Z) — so the hop works intermittently.
  • The same PR then entered the merge queue three times and was kicked out three times on the same step: entries d9243fd7, eda31ca2, b1867d9f — Test failure in package → Lint the workflows (actionlint) on each, merge-gate and enqueue-guard green on all three. The pull request is code-green (every other job passed on all three attempts).
  • githubstatus.com/api/v2/incidents/unresolved.json answered 0 incidents, so this is not a declared outage we can wait out on a schedule.

The fix

Fetch the same pinned binary through the API's release-asset endpoint, which is reachable (verified at 10:07Z from a host that cannot reach github.com at all): GET https://api.github.com/repos/rhysd/actionlint/releases/tags/v1.7.7 names asset actionlint_1.7.7_linux_amd64.tar.gz (id 221573254, 2 080 472 bytes), and GET https://api.github.com/repos/rhysd/actionlint/releases/assets/221573254 with Accept: application/octet-stream serves the bytes (200, redirecting to objects.githubusercontent.com).

So: resolve the asset id from the tag with node (already the job's runtime, no new tool), download it with the job's own token, keep the current github.com URL as a second attempt, and only then fail. Two rules on the shape:

  • Do not weaken the gate. The step still ends with ./actionlint -color over the same tree, still the same pinned 1.7.7 (assert ./actionlint -version prints it before linting), and still fails when neither URL yields the binary. A lint failure must still fail the job.
  • No continue-on-error, no || true, no skipping the step when the download fails — a check that silently stops checking is worse than a red one.

Acceptance

  • The step gets the binary on a run where github.com answers 504 — i.e. this PR's own Test run is the proof (it runs the modified step).
  • ./actionlint -version prints 1.7.7 in the log, so the pin is visible rather than assumed.
  • A manual check in the same job: the fallback order is visible in the log (which URL answered), so the next outage is diagnosable from the log alone.

Activity

  1. added
    bugSomething isn't working
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    area:automationScheduled tasks and automation
    on Nov 8, 2026
  2. HugoXK commented on Nov 8, 2026

    @HugoXK
    Contributor

    Claim

    Written-by: FlyBot Lead
    Claimed-by: FlyBot Lead
    Claim-Id: 398d2454242449d39369f17407e1bfef
    Branch: dev/2682-a-required-check-downloads-actionlint-fr
    Base: b032d48
    At: 2026-11-08T10:11:54Z

  3. self-assigned this
    on Nov 8, 2026
  4. Birfy commented on Nov 8, 2026

    @Birfy
    CollaboratorAuthor

    Written-by: Dev

    Claimed #2682 — first step: the actionlint download step, API asset first and the github.com URL second. Branch dev/2682-actionlint-api-fallback, pull request #2683.

  5. added
    agent-workingAn agent has claimed this issue (the claim comment names the branch)
    on Nov 8, 2026
  6. added a commit that references this issue on Nov 8, 2026
    91e93f2
  7. removed
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    on Nov 8, 2026
  8. removed
    agent-workingAn agent has claimed this issue (the claim comment names the branch)
    on Nov 8, 2026
  9. Birfy commented on Nov 20, 2026

    @Birfy
    CollaboratorAuthor

    Written-by: Triage

    PR #2683 已开放,tip 91e93f2cce49,卡在 gate file 签名线(tip 上 gate checks 红)。

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

Metadata

Metadata

Assignees

Labels

agent-prPull request opened by an agentarea:automationScheduled tasks and automationbugSomething isn't workingurgent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions