-
Notifications
You must be signed in to change notification settings - Fork 152
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
Update codegen image version #4970
Conversation
Signed-off-by: Yoshiki Fujikane <[email protected]>
gen/code failed 😇 I will investigate it. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4970 +/- ##
==========================================
+ Coverage 29.32% 29.33% +0.01%
==========================================
Files 323 323
Lines 40984 40984
==========================================
+ Hits 12017 12024 +7
+ Misses 28005 27999 -6
+ Partials 962 961 -1 ☔ View full report in Codecov by Sentry. |
Makefile
Outdated
@@ -199,7 +199,7 @@ update/copyright: | |||
.PHONY: gen/code | |||
gen/code: | |||
# NOTE: Specify a specific version temporally until the next release. | |||
docker run --rm -v ${PWD}:/repo -it --entrypoint ./tool/codegen/codegen.sh ghcr.io/pipe-cd/codegen@sha256:fc3db505ef8dbf287b90aafed8c28246d2cca06bda2b43893a3059719fe9fff4 /repo #v0.44.0-38-g7229285 | |||
docker run --rm -v ${PWD}:/repo -it --entrypoint ./tool/codegen/codegen.sh ghcr.io/pipe-cd/codegen:v0.47.3-rc0-1-g7e27cad /repo |
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.
How about specifying the image with sha256 hash, as specified in the PR's base commit?
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.
I see.
Is the sha256 hash better than specifying version?
I don't have a strong opinion, but I felt redundant hash with version comment like the base commit.
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.
The image specified with the tag can be overwritten, such as the git tag.
Conversely, the sha256 hash is immutable, such as the git commit hash.
So, specifying with the sha256 hash is more reproducible.
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.
I got your point! Thank you! I'll fix it.
@ffjlabo You have to update this line in order to make the CI passed |
oops sorry 🙏 |
Signed-off-by: Yoshiki Fujikane <[email protected]>
5a98931
to
af679eb
Compare
Workflow still failed 🤔
Maybe need to fix the actions setting for the repo |
I tried to add the So lets recheck. |
Signed-off-by: Yoshiki Fujikane <[email protected]>
af679eb
to
2988d0b
Compare
CI failed because there is the diff in https://github.com/pipe-cd/pipecd/actions/runs/9493373712/job/26161960073?pr=4970
Also encountered the problem on my local machine using the image 🤔 |
So with the new codegen image, the generated auth file still not the same as last time succeed 🤔 Which diff is generated? 👀 |
@khanhtc1202 |
So this issue remained 🥹 |
Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: Yoshiki Fujikane <[email protected]>
.github/workflows/gen.yaml
Outdated
- name: check CPU architecture | ||
shell: bash | ||
run: cat /proc/cpuinfo && uname -a |
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.
Do we still need this?
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.
Sorry, I forgot to remove this.
removed b06e221
Signed-off-by: Yoshiki Fujikane <[email protected]>
.github/workflows/gen.yaml
Outdated
- name: check CPU architecture | ||
shell: bash | ||
run: cat /proc/cpuinfo && uname -a |
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.
This step is for debugging?
We can add this on demand, so we don't have to include this step in the usual run.
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.
oops, you already removed this. thank you.
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!
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.
Here you go 👍
What this PR does / why we need it:
Update codegen image version on
gen/code
Which issue(s) this PR fixes:
Part of #4874
Related to #4968
Does this PR introduce a user-facing change?: