CI runner should fail fast with a meaningful error message when container registry responds "401 Unauthorized"
Real Behavior
CI runner waited and waited, probably retrying multiple times. After 15 minutes job was cancelled and retried. Job was marked as failed only after 30 minutes with a message: "Agent is not responding!".
This error was completely on my part, but Cirrus CI should've communicated that better and faster.
I've discovered the reason of the error only after trying to run that container on another machine. docker run responded immediately with a helpful Error response from daemon: Get https://ghcr.io/...: unauthorized.. After I've changed container visibility to 'public' CI pipeline started working as expected.
Expected Behavior
CI runner should fail fast with a meaningful error message when container registry responds "401 Unauthorized"
Real Behavior
CI runner waited and waited, probably retrying multiple times. After 15 minutes job was cancelled and retried. Job was marked as failed only after 30 minutes with a message: "Agent is not responding!".
This error was completely on my part, but Cirrus CI should've communicated that better and faster.
I've discovered the reason of the error only after trying to run that container on another machine.
docker run
responded immediately with a helpfulError response from daemon: Get https://ghcr.io/...: unauthorized.
. After I've changed container visibility to 'public' CI pipeline started working as expected.Link: https://cirrus-ci.com/task/5512720764108800