-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Verify plantuml image generation in CI #9363
🌱 Verify plantuml image generation in CI #9363
Conversation
Hi @typeid. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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/test-infra repository. |
I see the job doesn't run in the PR CI yet, is there a way to test it? I have only tried it locally by using act. |
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.
WDYT about having this be a make
target - verify-diagrams
which could then run in the verify job we already gave in a GitHub action. This means you would already have the code pulled and could use the same tools that are available.
The verify-gen
make
target is a good comparison.
Thanks for the quick review @killianmuldoon. I think that does make sense, I did not see we already had all kind of verify jobs running in prow prechecks, I was too distracted by the github workflows. At quick glance, it doesn't seem like the image we're using for the verify job contains |
Ideally we'd simply be able to run |
/ok-to-test |
I wasn't able to find java installed in the Installing I see a few options here if we want to use the prow job:
For either of these options, we also wouldn't be able to re-use the job calling Thanks for adding the |
72a80b2
to
0645d3e
Compare
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.
/area ci
/retest |
Can we simply run the (+ the usual verify around it) |
f7eb63e
to
feabc24
Compare
@sbueringer Thanks for the hint, I did not expect that to work. The latest push should do the trick, sorry for the experimenting! I also noticed that quite a few
See:
Is this intended? I believe they're not run in CI at the moment. |
This is intended - these scans are currently not run on PRs and are instead run as part of the weekly security scan: https://github.com/kubernetes-sigs/cluster-api/blob/main/.github/workflows/weekly-security-scan.yaml |
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.
Looks great and seems to be working - can you try to make it fail - by changing the plantuml spec maybe - so we can see what the output of this job failing is like?
Error looks good:
If you revert that commit I think this one is good to go! |
24310d8
to
46e6209
Compare
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.
Thanks - great work!
/lgtm
LGTM label has been added. Git tree hash: 54ea2f9c84b2f51732cd451a855c2a7afb97d0f2
|
/retitle 🌱 Verify plantuml image generation in CI |
Thank you very much!! Pretty happy that we don't have to deal with Java 😂 /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer 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 |
What this PR does / why we need it:
This PR adds generation of the plantuml images to CI through a new job, which runs on PRs. The job fails in case the generated images differ from the contained images in PRs.
This solution is not ideal:
Makefile
, if e.g. thePLANTUML_VER
changes, we might forget about this job.Which issue(s) this PR fixes:
Fixes #9331