You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Context: Industry problem of how to keep release branches and CI forcing the maintainer of the release branch to update the version numbers of the modules that have change but not all versions numbers for the set of modules at the same time
If a passing build with a so-configured deploy_maven were to attempt to publish an artifact, it could first check to see whether the artifact (GAV?) had been published already. If it has and the SHA1 for the items are the same, then it could simply pass that build step without uploading the items.
This would be optional. Without do-not-fail-if-already-published=true the build would fail as it does today as the items are already published.
To reiterate:
with do-not-fail-if-already-published=false (or the property is absent) then the build continues to fail if the GAV is published.
with do-not-fail-if-already-published=true then the build passes the GAV is not yet published
with do-not-fail-if-already-published=true then the build passes the GAV is already published and it has the same hashes (the actual upload is silently skipped)
with do-not-fail-if-already-published=true then the build fails the GAV is already published and it has the different hashes
Additional context
Reproducible builds are an industry quest. May companies are not doing Continuous Deployment (yet) and need careful choreography of release branches as they slowly dial up their release cadences over months/years.
If achieved, there's a positive consequence for binary repositories everywhere - all languages & all binary repo idioms. I detail a feature for deploy_maven here, but it equally applies to all deploy_XXX bazel rules. At least were SHA1 /SHA256 hashes are co-located with the items in the binary repo in question.
Caveats
I should never be allowed to name anything, so change do-not-fail-if-already-published to your preferred english expression.
The text was updated successfully, but these errors were encountered:
paul-hammant
added a commit
to TrunkBasedDevelopment/bazel-distribution
that referenced
this issue
Jan 9, 2021
Is your feature request related to a problem? Please describe.
Context: Industry problem of how to keep release branches and CI forcing the maintainer of the release branch to update the version numbers of the modules that have change but not all versions numbers for the set of modules at the same time
Context: Refer: https://paulhammant.com/2018/05/23/examining-ci-cd-and-branching-models/
Context: Assuming reproducible builds ....
If a passing build with a so-configured
deploy_maven
were to attempt to publish an artifact, it could first check to see whether the artifact (GAV?) had been published already. If it has and the SHA1 for the items are the same, then it could simply pass that build step without uploading the items.This would be optional. Without
do-not-fail-if-already-published=true
the build would fail as it does today as the items are already published.To reiterate:
do-not-fail-if-already-published=false
(or the property is absent) then the build continues to fail if the GAV is published.do-not-fail-if-already-published=true
then the build passes the GAV is not yet publisheddo-not-fail-if-already-published=true
then the build passes the GAV is already published and it has the same hashes (the actual upload is silently skipped)do-not-fail-if-already-published=true
then the build fails the GAV is already published and it has the different hashesAdditional context
Reproducible builds are an industry quest. May companies are not doing Continuous Deployment (yet) and need careful choreography of release branches as they slowly dial up their release cadences over months/years.
If achieved, there's a positive consequence for binary repositories everywhere - all languages & all binary repo idioms. I detail a feature for deploy_maven here, but it equally applies to all deploy_XXX bazel rules. At least were SHA1 /SHA256 hashes are co-located with the items in the binary repo in question.
Caveats
I should never be allowed to name anything, so change
do-not-fail-if-already-published
to your preferred english expression.The text was updated successfully, but these errors were encountered: