-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI pipeline for maintaining the release #35
base: master
Are you sure you want to change the base?
Conversation
I should rework the contribution branch so that it does not include the version bumps themselves. They make the code review difficult and I can always cherry-pick those later on. |
…e job that bumps these packages
…Golang release v0.117.0
…ss update on all '*.yml' deployment manifests
…release' suffix convention
Here we go, that's cleaner. Worth to note, everything in the
|
As mentioned during working group meeting the shared golang scripts should be good to consume now: https://github.com/cloudfoundry/bosh-package-golang-release/tree/main/ci/tasks/shared |
let "result+=$?" | ||
|
||
echo -e "\n Running build script to confirm everything compiles..." | ||
$bin/build | ||
$bin/build-linux-amd64 | ||
let "result+=$?" | ||
|
||
echo -e "\n Running ginkgo tests..." | ||
ginkgo -r . |
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.
Consider using go run github.com/onsi/ginkgo/v2/ginkgo
here so that there isn't a need for a ginkgo
binary to be installed in $PATH
, and to ensure that the version used matches go.mod
.
Example: https://github.com/cloudfoundry/bosh-agent/blob/main/bin/ginkgo#L5C1-L5C40
@@ -5,14 +5,18 @@ result=0 | |||
bin=$(dirname $0) | |||
|
|||
echo -e "\n Formatting packages..." | |||
go fmt github.com/cppforlife/bosh-virtualbox-cpi/... | |||
go fmt bosh-virtualbox-cpi/... | |||
let "result+=$?" |
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.
Maybe it makes sense to use set -e
instead of the result+=$?
pattern. It reduces conditionals, and ensures the script fails early.
Example: https://github.com/cloudfoundry/bosh-agent/blob/main/bin/ginkgo#L2
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.
Thank you for all these updates! I really appreciate the thoroughness, and attention to detail in this change.
I'm not super familiar with this CPI so I will defer to others as to the functional changes.
Thanks for the review, I'm going back to this |
@bgandon are still planning on coming back to this, or should we merge it as is? |
Gstack has developed a Concourse pipeline and demonstrated ability to update dependencies and ship a new release v0.4.3 using it:
Submitted here for contribution to the CFF upstream.
Fixes #33.