-
Notifications
You must be signed in to change notification settings - Fork 14.9k
feat(CI): Enforce charts metadata backward compatibility check #33180
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
base: master
Are you sure you want to change the base?
Conversation
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
ac1e4cb
to
feea3df
Compare
feea3df
to
57da943
Compare
a692c8b
to
d97567c
Compare
d97567c
to
28af4be
Compare
7e7c415
to
b14a387
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.
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.
Not an expert on github workflows so I'm not diving into the code, but I like the idea as a temporary solution for ensuring backward compatibility
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 good to me with a small nit
- name: "Check for changes in critical files" | ||
id: check_changes | ||
run: | | ||
CHANGED_FILES=$(git diff --name-only origin/master...HEAD) |
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 think this runs diff against master but the base might be different?
We might not need a whole new action for this. You could just add a few filenames to this file. However, that would apply to all branches, I believe, so I'm not sure if that solves the issue for you. |
This is great. Let me change it! |
SUMMARY
Introducing a new workflow to check for changes on
transformProps
andcontrolPanel
files for plugins. We have identified issues with changes to charts props and controls that are not backward compatible causing disruption for charts and dashboards. This is meant to be a temporary / low-effort solution to mitigate the impact going forward. A better and longer term solution would be to implement proper metadata versioning.Why a Github workflow?
transformProps
andcontrolPanel
often indicate that modifications to the metadata may have been introduced. While this is not always the case, adding an extra check when altering such a critical part of the codebase is a prudent measure.If any
transformProps
orcontrolPanel
get touched, CI should re-run with a labelvalidation:backward-compatible
to confirm backward-compatibility.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
CI should pass
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION