-
Notifications
You must be signed in to change notification settings - Fork 831
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
Add a CI check to fail on change to an example without a new version #3940
Conversation
Build Succeeded 🥳 Build Id: 24fcaddf-62fd-422b-b2a4-8572dc67376c The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
8c50ac4
to
249d8b4
Compare
This comment has been minimized.
This comment has been minimized.
249d8b4
to
9102a53
Compare
Build Succeeded 🥳 Build Id: e5c417b9-c40f-4b57-8d22-ec319d6726b5 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
9102a53
to
d5994dd
Compare
Build Failed 😭 Build Id: afeffcd8-012a-401d-b47a-99bd40addf41 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
87268c8
to
67bbc64
Compare
Build Failed 😭 Build Id: d2eabb81-1b6f-4c49-ab7e-1169fe5671c8 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
31ad313
to
c987444
Compare
Build Succeeded 🥳 Build Id: c8c39e0e-3256-453a-855a-c0106d81be8a The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
ac9a564
to
127f2f7
Compare
Build Succeeded 🥳 Build Id: cf93ffd9-fcca-448e-9ae5-3f44b5255e4b The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
127f2f7
to
f52c415
Compare
Build Succeeded 🥳 Build Id: 5225d7e0-11f8-432c-986f-400657727524 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
If any files change within an example - outside of a simple denylist - and the version in its Makefile is not updated, this new tool will fail the CI pipeline.
5a65565
to
d608862
Compare
Build Succeeded 🥳 Build Id: 5eb75ed2-cd0b-4fbf-a4c5-ff4f7a551b8a The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
} | ||
|
||
func lineContainsVersion(line string) bool { | ||
return strings.HasPrefix(line, "version") |
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.
nit: better to make it stricter i.e. `strings.HasPrefix(line, "version :=")
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.
Hi. 👋
Do you want me to action this change now?
You appear to be operating on this branch, and I have no desire to interfere. 😄
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.
Yeah feel free to go ahead and make the change. Thanks
Build Succeeded 🥳 Build Id: 801feea7-f975-4197-bf70-9258673b2c03 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Failed 😭 Build Id: 39a6d2c5-0615-4e0f-bc19-81f9cd41edf4 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 🥳 Build Id: d3458c8b-95f3-4ecd-9f39-c5af277f2cee The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
…oogleforgames#3940) * Add a CI check to fail on change to an example without a new version If any files change within an example - outside of a simple denylist - and the version in its Makefile is not updated, this new tool will fail the CI pipeline. * Make prefix check for version stricter
What type of PR is this?
/kind feature
What this PR does / Why we need it:
Further to issue #3794, if any files change within an example - outside of a simple denylist - and the version in its Makefile is not updated, this new tool will fail the CI pipeline.
Which issue(s) this PR fixes:
Closes #3794
Special notes for your reviewer:
Hi 👋
It wasn't obvious where or how to add automated tests for this script. My manual strategy was as follows:
N.B. the above changes have to be committed each time, otherwise they are invisible to this script.