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

[chore] Update goreleaser used in CI to v2.3.2 #689

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

jade-guiton-dd
Copy link
Contributor

@jade-guiton-dd jade-guiton-dd commented Oct 4, 2024

The Github actions previously broke twice because of the release of goreleaser v2.3. I worked around this in PRs #667 and #676 by pinning the version used to v2.2.

After investigating, the causes of breakage were the following:

  • In v2.3, the amd64 architecture got a version specifier, which is "v1" by default, so the output directory changed from just "linux_amd64" to "linux_amd64_v1". Our PR workflow takes the output of the linux_amd64 build tests and uses it in the "package tests" job. Because of the change in directory name, the build output could not be found, the artifact upload failed silently, and the package tests failed loudly as they could not find packages to test.

  • In v2.3, the arm architecture changed its default version from "7" to "6". Our release CI never specifies this parameter when calling goreleaser, so it was now instructed to build for the arm_6 architecture, which we have no builds for in .goreleaser.yaml (only for arm_7). The prepare step thus failed silently, and the release step failed loudly as it can't find the artifacts for arm_7.

This PR fixes these bugs and updates the goreleaser version to v2.3.2, by updating the expected directory name for the linux_amd64_v1 build outputs, and by specifying the $GOARM version parameter.

If we expect no such breakage to happen again, this would allow us to go back to using the latest version of goreleaser at all times, as suggested in #668.

I haven't tested the release CI yet for lack of a goreleaser pro key.

@jade-guiton-dd jade-guiton-dd marked this pull request as ready for review October 4, 2024 14:21
@jade-guiton-dd jade-guiton-dd requested a review from a team as a code owner October 4, 2024 14:21
Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to wait for #672?

@jade-guiton-dd
Copy link
Contributor Author

@songy23 I don't think so. That PR updates the version of goreleaser used in the tool that generates the .goreleaser.yaml files, but upgrading to v2.3.2 doesn't seem to require changes on that front, only in the CI workflow files.

@mx-psi mx-psi merged commit d745106 into open-telemetry:main Oct 10, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants