-
Notifications
You must be signed in to change notification settings - Fork 141
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
Validate added migration file #1772
base: main
Are you sure you want to change the base?
Validate added migration file #1772
Conversation
23818af
to
f0fe270
Compare
f0fe270
to
bf71ad7
Compare
f8216f0
to
35693f1
Compare
3419ce7
to
e5b84a2
Compare
hack/validate-migration.sh
Outdated
case "$status" in | ||
A) # file is added | ||
task_dir_path=$(awk -F '/' '{ OFS = "/"; print $1, $2 }' <<<"$origin_path") | ||
if grep -q "$task_dir_path" <<<"$seen"; then |
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 will cause problems
$ grep -q "task/buildah" <<< "task/buildah-remote task/some-other-task" && echo already seen
already seen
Maybe change the seen
variable to be multiline and check like this?
grep -q "^${task_dir_path}$" <<< "$seen"
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.
Good catch. Updated.
ebd6ba2
to
3821d6e
Compare
Rebased this PR in order to base on the fix #1788 |
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, could you just squash the commits?
STONEBLD-2827 A few checks are introduced by this commit. Please refer to individual check_ functions for detailed information. Signed-off-by: Chenxiong Qi <[email protected]>
3821d6e
to
a55f38d
Compare
Squash is done. |
/test build-definitions-pull-request |
/test build-definitions-pull-request |
STONEBLD-2827
Before you complete this pull request ...
Look for any open pull requests in the repository with the title "e2e-tests update" and
see if there are recent e2e-tests updates that will be applicable to your change.