HydraIssues

hydratam v0.1.16 release run failed: the release server rejected the first binary upload, so the GitHub release and the release server disagree
open bug Project: experiencenet Reporter: 17 Oct 2026 02:28

Description

Run 36915641388 for tag v0.1.16 failed on 2026-10-01.

What happened

The 'Create Release' job got as far as 'Publish to release server', printed 'Uploading hydratam-darwin-amd64...' and then exited with code 22. curl exit 22 means the server answered 400 or worse while curl ran with -f. It failed on the FIRST file, so nothing was published and the finalize call never ran.

The 'Publish OCI image' job SUCCEEDED in the same run. So:

  • scaleregistry has hydratam:v0.1.16 for amd64 and arm64.
  • A GitHub Release v0.1.16 exists and is marked Latest.
  • releases.experiencenet.com has nothing for v0.1.16.

Why it was not noticed

A scale never self updates. The image sets HYDRA_AUTO_UPDATE=off, because the built in updater would restart a systemd unit that does not exist in a container. Production is the hydratam scale on pi-node-001, so it stayed on v0.1.15 and kept answering normally. The health endpoint was the only place the gap showed, and nothing read it.

This is the 'a pushed tag is not a release' trap again. The tag, the GitHub release and the running service were three different versions for 15 days.

What it blocks

  • Host and binary installs of v0.1.16. They read releases.experiencenet.com.
  • hydrarelease verify --project hydratam for v0.1.16.

It does NOT block a container deploy, because that reads the scale registry.

Cause to confirm

Most likely the HYDRARELEASE_PUBLISH_TOKEN secret, or a release server state for v0.1.16 that rejects a second publish. Reproduce by publishing one small file by hand against a throwaway version and reading the status code, which the workflow currently throws away.

Fix

  1. Find the real status code. The step hides it: curl -sf prints nothing on an HTTP error. Add -w and drop -s so the body and the code reach the log.
  2. Make the step fail on the finalize call too, and name the file that failed.
  3. Re-publish v0.1.16 binaries, or supersede it with the next tag.

Do not re-point the v0.1.16 tag. The Go VCS cache serves the old tree for a re-pointed tag.

Comments (1)

api 17 Oct 2026 03:25

The failure was transient. v0.2.0 published cleanly on 2026-10-17: both jobs succeeded, and the GitHub release carries all four binaries plus SHA256SUMS. So the token and the release server are fine; something on 2026-10-01 was not.

That leaves the real defect, which is that we cannot tell why. The step ran curl -sf, which prints nothing on an HTTP error and exits 22. The log said Process completed with exit code 22 after Uploading hydratam-darwin-amd64 and nothing else: no status code, no response body, no way to separate a bad token from a rejected version from a server that was down.

Fixed on main in 5f2c926's follow-up: the step now prints the status for every file and for the finalize call, and on a failure emits a GitHub error annotation naming the file, the status and the body. It applies to the next tag cut after it.

The other half of this issue is already addressed: the runbook and CLAUDE.md now say that a pushed tag is not a release and a release is not a deploy, and that production is a scale which never self-updates. See #813.