aglinxinyuan opened a new pull request, #9381:
URL: https://github.com/apache/texera/pull/9381
### What changes were proposed in this PR?
CI setup steps downloaded protoc, the macOS RustFS and Lakekeeper archives
and the bun installer with a bare `curl`, so one transient HTTP error from the
download host failed the job before any test ran. On 2026-11-08, #9366's
amber-integration and platform-integration jobs died this way on a 504 from
GitHub releases.
Each of these downloads now passes `--retry 5 --retry-delay 5
--retry-all-errors --connect-timeout 30` to curl:
- `--retry 5 --retry-delay 5`: up to five more attempts, 5 s apart. A host
that stays down still fails the step, after the sixth attempt.
- `--retry-all-errors`: also retries a connection that drops mid-download,
which `--retry` alone does not. Every site writes with `-o`, and curl discards
a failed attempt's partial file before it retries.
- `--connect-timeout 30`: a connect that hangs fails the attempt after 30 s
instead of curl's default 300 s.
The bun installer was piped into `bash`. The step shell is `bash -e` without
`pipefail`, so when the fetch failed, `bash` ran an empty or truncated script,
the step passed, and the job failed later at `bun install`. The installer is
now saved to `/tmp/bun-install.sh` and then run with the same version argument,
so a failed fetch fails this step and a partial script never runs. The
installer downloads bun itself from GitHub releases with a plain `curl --fail`,
so the step runs it up to six times, 5 s apart, and `bun --version` then fails
the step if no attempt installed bun.
`--retry-all-errors` needs curl 7.71 or later: ubuntu-latest (ubuntu-26.04)
has curl 8.18.0 and macos-latest (macos-26-arm64) has 8.7.1.
### Any related issues, documentation, discussions?
Closes #9380.
### How was this PR tested?
- CI on this PR: the `ci` label runs every stack and the Bench workflow, so
each changed step runs on its runner with the new options (amber-integration on
ubuntu and macOS, platform-integration (workflow-compiling-service), pyamber,
agent-service on ubuntu and macOS, and Bench).
- Locally, curl 8.10.1 against a small HTTP server that fails on purpose.
Before is `curl -fsSL -o <file> <url>`; after adds the four retry options.
| Server | Before | After |
| --- | --- | --- |
| 504, 504, then 200 | exit 22 at the first 504 | exit 0 on the third
attempt; the file holds the full payload |
| 504 on every request | exit 22 | exit 22 after 6 attempts (25 s) |
| Connection closes mid-body once | exit 18, also with `--retry` alone |
exit 0 on the second attempt; the file holds the full payload |
| Bun step under `bash -e`, installer URL always 504 | the step passes
without running the installer | the step fails at the download with exit 22 |
- The Setup Bun script, extracted from the workflow and run with `bash -e`
against a stand-in installer: it installs on the first run, installs on the
third run after two failures, and after six failures fails the step at `bun
--version` (exit 127).
- Both workflow files parse with PyYAML, only the seven changed `run:`
scripts differ from `main`, and each passes `bash -n`.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]