Skip to content

ci(wheel): one retry of the maturin build, since its installer download once returned a non-gzip body - #542

Merged
DrunkOnJava merged 2 commits into
mainfrom
ci/wheel-retry
Sep 30, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
ci/wheel-retry

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

The CI Python wheel job now retries its maturin build once. A transient failure to install maturin inside the manylinux container fails the job on a change that touched no code; a build that really fails still fails it. Nothing in the crate changes.

Motivation

On #540, which changed a check name, a ruleset file and docs, the Python wheel / ubuntu-latest job failed in "Build wheel via maturin" (job 109992040259):

gzip: stdin: not in gzip format
tar: Child died with signal 13
curl: (23) Failed writing body (0 != 1364)
Error: The process '/usr/bin/docker' failed with exit code 2

PyO3/maturin-action installs maturin inside the manylinux2014 container from a download off GitHub releases, and that download answered with something that was not a gzip. Over the last 200 CI runs the wheel job had one other failure, a genuine one (the quick-xml 0.42 compile error on Dependabot's branch), so this is rare, but a red check that a rerun clears is a defect in the job, not a result. The wheel job is not a required check, which is why it did not block #540; the maintainer still cannot tell a flake from a failure without reading the log.

Changes

  • .github/workflows/ci.yml: the build step has continue-on-error: true, and a second step with the identical inputs runs only when the first one's outcome was failure. A download that fails once is absorbed; a build that fails fails both attempts, and the second one fails the job. The steps after it (install, smoke, upload) are unchanged.
  • publish.yml is left as it is: a failed release job is recovered by re-running it, and the release wheels are the ones a change to this should be most careful about.

Testing

No product code changes; actionlint and a YAML parse are clean.

  • The job builds the wheel on this pull request's run (run 36746505696): Build wheel via maturin succeeds, Build wheel via maturin (retry) is skipped, and the install, the wheel smoke on Revit files and the upload succeed
  • Not established: the retry path itself has not run. It fires only when the first attempt fails, and this change's wiring (continue-on-error on the first step, if: steps.maturin.outcome == 'failure' on the second, where outcome is the result before continue-on-error is applied) is the documented GitHub Actions behaviour, not something this pull request forced to happen

Audit-honesty checklist

  • What this does not cover: the same download in publish.yml, and any other transient failure of the wheel job (the install of the wheel, the smoke) which still fails the job
  • No emojis, private paths or PII

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk content
  • No fixtures

Breaking changes

None.

Related issues

Found on #540.

…ad once returned a non-gzip body

The Python wheel job on #540 failed in "Build wheel via maturin" on a change
that touched no code: maturin-action installs maturin inside the manylinux
container with a download from GitHub releases, and that answered with a page
that was not a gzip ("gzip: stdin: not in gzip format", "tar: Child died with
signal 13", "curl: (23) Failed writing body"). Over the last 200 CI runs the
job's only other failure was a genuine one, the quick-xml 0.42 compile error
on Dependabot's branch, so the flake is rare, but a red check that a rerun
clears is a defect in the job, not a result.

The build step now has `continue-on-error`, and a second step with the
identical inputs runs only if the first failed. A transient download failure
is absorbed by the retry; a build that really fails fails both times and
fails the job, so genuine failures still block. The wheel job is not a
required check; the release workflow (publish.yml) is left as it is, since a
failed release job is recovered by re-running it.
@DrunkOnJava DrunkOnJava added area:ci Work in the ci area. priority:P3 Useful follow-up work after core milestones land. type:ci Continuous integration or automation work. labels Sep 30, 2026
@cursor

cursor Bot commented Sep 30, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_532545d7-e9a1-44ed-8ea3-07abfadb9177)

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 30, 2026 16:53
@DrunkOnJava
DrunkOnJava merged commit d844074 into main Sep 30, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/wheel-retry branch September 30, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Work in the ci area. priority:P3 Useful follow-up work after core milestones land. type:ci Continuous integration or automation work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant