Skip to content

ci: download LuaLS via gh release download - #8388

Merged
ElectricalBoy merged 3 commits into
mainfrom
claude/luals-setup-retry
Nov 9, 2026
Merged

ElectricalBoy merged 3 commits into
mainfrom
claude/luals-setup-retry

Conversation

@Rathoz

@Rathoz Rathoz commented Nov 9, 2026

Copy link
Copy Markdown
Member

Summary

luals-code-style has been failing in Setup LuaLS because the plain github.com/.../releases/download URL intermittently returns a 504. Download through gh release download (API asset endpoint) instead, with shell: bash so a failed download fails the step.

How did you test this change?

Ran the step's script locally: 3.18.2 installs; a non-existent version fails the step.

🤖 Generated with Claude Code

Rathoz and others added 3 commits November 9, 2026 08:42
The github.com/.../releases/download redirect intermittently returns a
92-byte 504 body after ~11s. curl without --fail piped it into tar, which
failed with "not in gzip format" (runs 42468367164, 42470558990,
42470922273, 42578836771). The API asset endpoint kept serving the
tarball during the same outage.

- Download via `gh release download` (authenticated API asset endpoint)
- Verify the archive before extracting; retry up to 5 times with backoff
- Cache the install per LuaLS version so later pushes skip the download;
  save right after install so a failing Check step still populates it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the retry loop and cache; switching from the github.com release
download redirect (which returned 504s) to the API asset endpoint via
`gh release download` is the fix. `shell: bash` adds pipefail so a
failed download fails the step directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rathoz
Rathoz requested review from a team as code owners November 9, 2026 07:44
Copilot AI balanced review requested due to automatic review settings November 9, 2026 07:45
@Rathoz Rathoz added the CI/CD label Nov 9, 2026
@Rathoz Rathoz mentioned this pull request Nov 9, 2026
@Rathoz
Rathoz requested a balanced review from Copilot and removed request for Copilot November 9, 2026 07:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to run its full agentic suite in this review.

Copilot review overview

2 open issues
What changed in this PR

Updates the Lua language server (LuaLS) setup in the luacheck workflow to use the GitHub CLI for more reliable release asset downloads.

Changes:

  • Switch LuaLS download from curl against the release URL to gh release download (to avoid intermittent 504s).
  • Add GH_TOKEN env var and set shell: bash for the setup step.
File Description
.github/​workflows/​luacheck.yml Uses gh release download to fetch the LuaLS tarball instead of curl to improve reliability.

Review effort: Lite

Comment thread .github/workflows/luacheck.yml Resolved
Comment thread .github/workflows/luacheck.yml Resolved
@Rathoz
Rathoz added this pull request to stack #8390 November 9, 2026 08:16
@ElectricalBoy
ElectricalBoy merged commit 475f717 into main Nov 9, 2026
9 of 11 checks passed
@ElectricalBoy
ElectricalBoy deleted the claude/luals-setup-retry branch November 9, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants