Skip to content

ci: update curl in the release workflow#13223

Merged
rjan90 merged 3 commits intophi/prep-v1331-rc1from
release-patch
Jul 21, 2025
Merged

ci: update curl in the release workflow#13223
rjan90 merged 3 commits intophi/prep-v1331-rc1from
release-patch

Conversation

@galargh
Copy link
Copy Markdown
Contributor

@galargh galargh commented Jul 19, 2025

This addresses the issues we've seen with the release workflow - https://github.com/filecoin-project/lotus/actions/runs/16368564857

macos-13 started using curl@8.14.1, which seems to have issues with setting the correct exit codes. What happens now on macos-13 is:

  1. We try to download a filecoin-ffi release asset
  2. The download fails
  3. Curl responds with exit code 0
  4. We continue with the script execution
  5. The script fails fatally when trying to manipulate the downloaded asset

What happens on macos-14, which uses an earlier version of curl:

  1. We try to download a filecoin-ffi release asset
  2. The download fails
  3. Curl responds with exit code 92
  4. We fall back to building filecoin-ffi from source

The root cause of these issues is the faulty way in which we try to download the release assets. To fix that, we'll have to update https://github.com/filecoin-project/filecoin-ffi/blob/master/install-filcrypto#L79. However, I do need a little more time to figure out how to update it correctly.

In the meantime, as a quick fix, this PR proposes to upgrade curl to a version (8.15.0) that correctly exits when the download fails, which means, for now, we'll always fall back to building filecoin-ffi from source during the release.

@galargh galargh added the skip/changelog This change does not require CHANGELOG.md update label Jul 19, 2025
@github-project-automation github-project-automation bot moved this to 📌 Triage in FilOz Jul 19, 2025
@galargh galargh requested review from BigLep and rjan90 July 19, 2025 09:17
@github-project-automation github-project-automation bot moved this from 📌 Triage to ✔️ Approved by reviewer in FilOz Jul 21, 2025
@rjan90 rjan90 merged commit c075f2c into phi/prep-v1331-rc1 Jul 21, 2025
166 of 167 checks passed
@rjan90 rjan90 deleted the release-patch branch July 21, 2025 04:53
@github-project-automation github-project-automation bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz Jul 21, 2025
rjan90 pushed a commit that referenced this pull request Jul 21, 2025
* ci: update curl in the release workflow

* Update .github/workflows/release.yml

* Update .github/workflows/release.yml
rjan90 pushed a commit that referenced this pull request Jul 21, 2025
* ci: update curl in the release workflow

* Update .github/workflows/release.yml

* Update .github/workflows/release.yml
rjan90 pushed a commit that referenced this pull request Jul 21, 2025
* ci: update curl in the release workflow

* Update .github/workflows/release.yml

* Update .github/workflows/release.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip/changelog This change does not require CHANGELOG.md update

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

3 participants