-
Notifications
You must be signed in to change notification settings - Fork 1.7k
upload will fail if a file with the same hash is already up #9479
Conversation
It looks like @gabreal signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
.gitlab-ci.yml
Outdated
@@ -222,33 +222,28 @@ publish-linux-snap-amd64: &publish_snap | |||
BUILD_ARCH: amd64 | |||
dependencies: | |||
- package-linux-snap-amd64 | |||
allow_failure: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this possible, we are building nightly only once per day. This should ideally not fail. Can't we fix this on snap side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The upload only fails for uploads of exactly the same snap for the same version/architecture. So if there are no changes in the code nightly builds will still produce a snap which will be upload and hash check on snapcraft refuses it then. I found no way of changing this behaviour.
IMHO the easiest way to fix this would be to have a version like the current timestamp (e.g. 20180905) or git commit like before: https://imgur.com/a/bgpoG7T
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version is wrong anyways, this is not 2.1.0. This need to be fixed in the script that figures out the version. Adding a commit hash and date would help here if nightly
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGFM
still about this issue: https://gitlab.parity.io/parity/parity-ethereum/-/jobs/96821
which happens if a snap with the same checksum is already uploaded. allow_failure here will at least the pipeline proceed to the next stage.
(the before_script statements with *determine_version are duplicate)