GoogleContainerTools / GoogleContainerTools/jib

Latest plugin version strings in GCS may go out of sync briefly

Open
#2,419 0 comments 0 reactions 0 assignees View on GitHub
area/jib-gradle-plugin area/jib-maven-plugin cleanup priority:p4
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

This is a fairly minor issue, but I'm opening this for documentation purposes.

Running `update_gcs_latest.sh` as part of release may fail.
```
$ ./jib-maven-plugin/scripts/update_gcs_latest.sh 2.2.0
Copying file://jib-maven [Content-Type=application/octet-stream]...
/ [1 files][ 19.0 B/ 19.0 B]
Operation completed over 1 objects/19.0 B.
Updated ACL on gs://jib-versions/jib-maven
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19 100 19 0 0 195 0 --:--:-- --:--:-- --:--:-- 193
Version update failed
```

Chances are that the file is actually updated but the old file cached is served for a while. It continued to serve the old version for a few minutes in my case.
```
$ gsutil cp gs://jib-versions/jib-maven file
Copying gs://jib-versions/jib-maven...
/ [1 files][ 19.0 B/ 19.0 B]
Operation completed over 1 objects/19.0 B.
$ cat file
{"latest":"2.2.0"}
$ curl https://storage.googleapis.com/jib-versions/jib-maven
{"latest":"2.1.0"}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.