Skip to content

Add instruction to change golang version when building image #19753

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshjms
Copy link
Contributor

@joshjms joshjms commented Apr 16, 2025

Add clearer description to update GOLANG_VERSION when building new etcd image.

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@k8s-ci-robot
Copy link

Hi @joshjms. Thanks for your PR.

I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@joshjms joshjms changed the title Add read changelog directive Add instruction to change golang version when building image Apr 16, 2025
@joshjms
Copy link
Contributor Author

joshjms commented Apr 16, 2025

Hi @ahrtr , I have in the documentation

  1. In cluster/images/etcd/Makefile, include the new version in BUNDLED_ETCD_VERSIONS and update the LATEST_ETCD_VERSION as well (the image tag will be generated from the LATEST_ETCD_VERSION). Update GOLANG_VERSION if necessary.

I'll changed the last sentence to

Update GOLANG_VERSION according to the version used to compile that release version (can be seen in the CHANGELOG).

@joshjms joshjms force-pushed the add-read-changelog-directive branch from cf2e00a to 6949c38 Compare April 16, 2025 13:38
@@ -66,7 +66,7 @@ You can refer to the guide [here](https://github.com/kubernetes/community/blob/m
match: BUNDLED_ETCD_VERSIONS\?|
```

2. In `cluster/images/etcd/Makefile`, include the new version in `BUNDLED_ETCD_VERSIONS` and update the `LATEST_ETCD_VERSION` as well (the image tag will be generated from the `LATEST_ETCD_VERSION`). Update `GOLANG_VERSION` if necessary.
2. In `cluster/images/etcd/Makefile`, include the new version in `BUNDLED_ETCD_VERSIONS` and update the `LATEST_ETCD_VERSION` as well (the image tag will be generated from the `LATEST_ETCD_VERSION`). Update `GOLANG_VERSION` according to the version used to compile that release version (can be seen in the CHANGELOG).
Copy link
Member

Choose a reason for hiding this comment

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

We need to update the go version in build/dependencies.yaml if needed, and ensure the go version matches the go version used in cluster/images/etcd/Makefile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. In build/dependencies.yaml, update the version of etcd-image and golang: etcd release version to the new version.

It appears I didn't add an example for that. I made the instruction clearer and added an example below it. PTAL!

@joshjms joshjms force-pushed the add-read-changelog-directive branch from 6949c38 to e306f09 Compare April 17, 2025 09:23
@ahrtr
Copy link
Member

ahrtr commented Apr 17, 2025

can you please squash the commits?

@joshjms
Copy link
Contributor Author

joshjms commented Apr 17, 2025

Ohh sorry" I forgot. Done!

@joshjms joshjms force-pushed the add-read-changelog-directive branch from e306f09 to 08c09be Compare April 17, 2025 14:03
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, joshjms

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ahrtr
Copy link
Member

ahrtr commented Apr 21, 2025

/ok-to-test

Copy link

codecov bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.80%. Comparing base (d4db438) to head (08c09be).
Report is 26 commits behind head on main.

Additional details and impacted files

see 22 files with indirect coverage changes

@@           Coverage Diff           @@
##             main   #19753   +/-   ##
=======================================
  Coverage   68.79%   68.80%           
=======================================
  Files         421      421           
  Lines       35857    35858    +1     
=======================================
+ Hits        24669    24673    +4     
- Misses       9762     9764    +2     
+ Partials     1426     1421    -5     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4db438...08c09be. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshjms
Copy link
Contributor Author

joshjms commented Apr 21, 2025

/test pull-etcd-markdown-lint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants