Skip to content

docker.yml: Zenodo upload errors go to stderr so they are not discarded - #43

Merged
annefou merged 1 commit into
mainfrom
fix/zenodo-upload-errors-visible
Oct 11, 2026
Merged

annefou merged 1 commit into
mainfrom
fix/zenodo-upload-errors-visible

Conversation

@annefou

@annefou annefou commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

When the Docker image upload to Zenodo fails, the job ends with a bare exit code 1 and leaves an unpublished draft deposit, with no reason given. Seen twice (Hamburg and Logroño room-to-green repositories, both after ~19 minutes of upload).

Cause: zcurl prints its ::error:: line to stdout, and the upload and metadata calls redirect stdout to /dev/null, so the message is discarded together with the response body.

Fix: errors go to stderr; a curl failure (network, timeout) now reports curl's exit code.

Checked locally with stdout redirected to /dev/null: an HTTP error prints failed (HTTP 405). Zenodo said: …, an unreachable host prints curl failed (exit 6). Template tests pass.

This only makes the cause visible; the next failure will say why (likely size or a timeout), which decides the actual fix.

zcurl printed its ::error:: line to stdout, and the upload and metadata
calls redirect stdout to /dev/null, so a failed image upload ended with a
bare 'exit code 1' and an unpublished draft deposit, with no reason given
(seen on two repositories). Errors now go to stderr, and a curl failure
reports curl's exit code.
@annefou
annefou merged commit 6bda823 into main Oct 11, 2026
3 checks passed
@annefou
annefou deleted the fix/zenodo-upload-errors-visible branch October 11, 2026 20:00
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