-
Notifications
You must be signed in to change notification settings - Fork 671
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
CI checks to check for missing downgrade updates #6661
Conversation
c91a676
to
b1a2666
Compare
There is a small problem with grep on CI machines. It is busybox grep that does not accept long parameter names. Hence I needed to install GNU grep in the CI images. See citusdata/the-process#105 |
When we add some scripts to run in CI, it is a nice idea to use long argument names. However, the busybox grep binary in our images do not support long argument names, and hence we install GNU grep. Used in: citusdata/citus#6661
b1a2666
to
0eb7820
Compare
I used to base these changes here on top of #6637. I now rebased on top of main and changed the target branch of the PR accordingly. |
0eb7820
to
95274d2
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.
LGTM, but it's not doing the check for columnar upgrade/downgrades. This is good to merge as is though, we can add columnar support in another PR.
upgrade_files=$(git diff --name-only origin/main | { grep "src/backend/distributed/sql/citus--.*sql" || exit 0 ; }) | ||
downgrade_files=$(git diff --name-only origin/main | { grep "src/backend/distributed/sql/downgrades/citus--.*sql" || exit 0 ; }) |
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 is only doing this check for citus upgrade files, not for columnar ones.
A branch that touches a set of upgrade scripts is also expected to touch corresponding downgrade scripts as well. To ensure that I introduce a new CI script. If this script fails, read the output and make sure you update the downgrade scripts in the printed list.