-
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
Ensure reproducible image generation for docs and proposals #9331
Comments
/help |
@killianmuldoon: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
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. |
Should we make it two sub-tasks to: 1) run the verification in CI 2) figure out what to do about png's without plantuml/ any other sources? I think we don't necessarily have to couple it (I don't see a quick resolution to figure out what to do with all non-plantuml pngs) I think it's also a totally separate discussion if we want to force everything onto plantuml (vs allowing other sources like drawio, excalidraw ... not sure, but we might have that today) |
I think we should couple it as figuring out which images we should compare is essentially the second part of the task. Without excluding those images I'm not sure how we can properly verify image generation in the CI, but open to ideas. |
I think we can re-generate plantuml without having to delete all pngs. It's already a win. |
So is the task here to just add the plantuml generation to CI, to ensure that the generation works? I'd be interested in taking this on if that's the case. |
Thanks @typeid - I think the first task - as @sbueringer outlined - would be to have a |
/assign |
CAPI uses
plantuml
to generate images used in the CAPI book and CAEPs. A number of the images in the repo do not have plantuml files for generation.To improve the situation we should create a verify make target which verifies we are able to regenerate images as expected and catches changes in the images after generation. These changes can happen after changing, for example, the
plantuml
verison used and should be caught and closely reviewed before merging.As part of this we should decide if all of the images which currently have no plantuml source should be kept, or if it's possible to replace them. Those images that are retained should be retained in their current format and excepted from reproducible image building.
At time of writing the diff after deleting all
pngs
and regenerating looks like the below. Additionally thesvg
images in the repo are not currently generated using plantuml automatically.The text was updated successfully, but these errors were encountered: