Skip to content

Fall back to a mirror of the releases at dl.nodeq.tech - #84

Open
rzonyx wants to merge 1 commit into
masterfrom
release-mirror
Open

rzonyx wants to merge 1 commit into
masterfrom
release-mirror

Conversation

@rzonyx

@rzonyx rzonyx commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

On 2026-11-09 GitHub answered anonymous release downloads with 504s, so hbench update and install.sh failed (curl: (56) The requested URL returned error: 504).

  • mirror.yml (new): copies a published release to https://dl.nodeq.tech/hbench/<tag>/ after checking it against SHA256SUMS; when the tag is GitHub's latest release, also writes hbench/install.sh and hbench/latest (the tag, 5-minute cache). release.yml calls it after publishing; gh workflow run mirror.yml -f tag=vX.Y.Z runs it by hand. It runs in a new mirror environment (refs master and v* tags) whose R2 token writes that bucket alone.
  • install.sh: the latest tag and each file from GitHub first, from the mirror when GitHub fails; the archive is still checked against SHA256SUMS. HBENCH_MIRROR_ONLY=1 uses the mirror alone.
  • hbench update: fetches the install script from the mirror when GitHub fails.
  • README and docs/RELEASING.md.

Depends on node-q/hpg-infra-cloud's bucket and token (branch hbench-release-mirror, runbook docs/runbooks/hbench-release-mirror.md) and the mirror environment's secrets R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY. Until they exist the mirror job fails after the release is published; the release itself is unaffected.

Users of v0.3.13 and earlier get the fallback only once a release with this install.sh is out: cut v0.3.14 after merging.

Tested against a local stand-in for the mirror: GitHub failing (installs from the mirror), mirror only, both failing (clear error, exit 1), a changed SHA256SUMS (refused), and the hbench update command falling back. cargo test update:: 2 passed, clippy and fmt clean, actionlint clean, zizmor: one help-level self-repository note on the local uses:, as the existing setup-rust step has. Not tested: the workflow against R2 (needs the bucket).

🤖 Generated with Claude Code

On 2026-11-09 GitHub answered anonymous release downloads with 504s, so
install.sh and `hbench update` could not install anything. mirror.yml
copies each published release to https://dl.nodeq.tech/hbench/<tag>/
(and hbench/latest, hbench/install.sh for the latest), and release.yml
runs it after publishing. install.sh takes the latest tag and each file
from the mirror when GitHub fails, still checking the archive against
SHA256SUMS; `hbench update` fetches the script from the mirror when
GitHub fails. HBENCH_MIRROR_ONLY=1 checks the mirror alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hacktron-app

hacktron-app Bot commented Nov 9, 2026

Copy link
Copy Markdown

Hacktron Security Check - Skipped

Reason: Code Review is not active for this organization

Start a free trial (no credit card required), subscribe, or add a payment method from organization billing settings

Go to: https://app.hacktron.ai/nodeq/billing

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant