Skip to content
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

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Conversation

bgandon
Copy link
Contributor

@bgandon bgandon commented Feb 16, 2024

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.

Copy link

linux-foundation-easycla bot commented Feb 16, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@bgandon
Copy link
Contributor Author

bgandon commented Feb 16, 2024

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.

@bgandon
Copy link
Contributor Author

bgandon commented Feb 16, 2024

Here we go, that's cleaner.

Worth to note, everything in the ci folder is generated from the pipeline template, except ci/settings.yml.

settings.yml is where all the Spruce customisations are. these are being merged on top of the generated pipeline.yml by the repipe script.

@rkoster rkoster requested review from a team, ystros and mvach and removed request for a team February 22, 2024 15:45
@rkoster
Copy link
Contributor

rkoster commented Feb 22, 2024

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 .
Copy link
Member

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+=$?"
Copy link
Member

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

Copy link
Member

@aramprice aramprice left a 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.

@bgandon
Copy link
Contributor Author

bgandon commented Feb 29, 2024

Thanks for the review, I'm going back to this

@rkoster
Copy link
Contributor

rkoster commented Mar 28, 2024

@bgandon are still planning on coming back to this, or should we merge it as is?

@rkoster rkoster marked this pull request as draft May 16, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting for Changes | Open for Contribution
Development

Successfully merging this pull request may close these issues.

Accessing distant VirtualBox through SSH fails with recent OpenSSH servers
3 participants