Badge doesn't reflect build status and randomly changes when retrieved repeatedly

Travis returns failing/passing badge alternatively for the same build with same etag

resulted in passing build badge

➜  ~ curl -I  https://api.travis-ci.org/messagebird/go-rest-api.svg\?branch\=master
HTTP/2 200
date: Wed, 17 Jun 2020 09:53:50 GMT
content-type: image/svg+xml
content-length: 724
vary: Accept-Encoding
strict-transport-security: max-age=15724800; includeSubDomains
x-endpoint: Travis::Api::App::Endpoint::RepoStatus
x-pattern: /:owner_name/:name
x-oauth-scopes: public
x-accepted-oauth-scopes: public
vary: Accept,Accept-Encoding
cache-control: no-cache
etag: "73ea80cfa4484ebd07d62b9eef5836c1"
pragma: no-cache
expires: Wed, 17 Jun 2020 09:53:50 GMT
content-disposition: inline; filename="passing.svg"
last-modified: Wed, 17 Jun 2020 09:10:38 GMT
x-content-digest: 6a7e16d9fbe5b315f689672a9e5b02a94834961a
age: 0
x-rack-cache: miss, store
x-request-id: 027855f30542945a85f66112b3cbcf3f
access-control-allow-origin: *
access-control-allow-credentials: true
access-control-expose-headers: Content-Type, Cache-Control, Expires, Etag, Last-Modified, X-Request-ID

Resulted in failing build image

➜  ~ curl -I  https://api.travis-ci.org/messagebird/go-rest-api.svg\?branch\=master
HTTP/2 200
date: Wed, 17 Jun 2020 09:53:52 GMT
content-type: image/svg+xml
content-length: 726
vary: Accept-Encoding
strict-transport-security: max-age=15724800; includeSubDomains
x-endpoint: Travis::Api::App::Endpoint::RepoStatus
x-pattern: /:owner_name/:name
x-oauth-scopes: public
x-accepted-oauth-scopes: public
vary: Accept,Accept-Encoding
cache-control: no-cache
etag: "73ea80cfa4484ebd07d62b9eef5836c1"
pragma: no-cache
expires: Wed, 17 Jun 2020 09:53:52 GMT
content-disposition: inline; filename="failing.svg"
last-modified: Wed, 17 Jun 2020 09:10:38 GMT
x-content-digest: 922c9cc746e8bc766b6acfed45d83e014df8a13e
age: 0
x-rack-cache: miss, store
x-request-id: b92a8691d5d06f99dc3c7cff5667b7ad
access-controlx-allow-origin: *
access-control-allow-credentials: true
access-control-expose-headers: Content-Type, Cache-Control, Expires, Etag, Last-Modified, X-Request-ID

issue-github

3 Likes

Not sure why this comment is with no response yet, do i need to produce any more information ?

Confirmed. Instead for me, repeatedly retrieveing https://api.travis-ci.org/messagebird/go-rest-api.svg?branch=master with Ctrl+F5 (to bypass browser cache) returns mostly “failing” images, with “passing” ones from time to time.

Looking at https://travis-ci.org/github/messagebird/go-rest-api/builds, it should rather be returning “passing” images all the time.

1 Like

I have a similar problem at my badge, the last commit for a branch passed, but the badge still show ‘build:error’.

This is the link: https://travis-ci.org/github/redspark-io/RSRealmHelper

Imprint