-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[ci] Skip CI based on file globs #10456
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
Conversation
areusch
left a comment
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.
one question, otherwise looks good
|
|
||
| def match_any(f: str) -> Optional[str]: | ||
| for glob in globs: | ||
| if fnmatch.fnmatch(f, glob): |
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 doesn't quite match patterns like glob.glob does--specifically, ** doesn't work. i'm not sure it entirely matters here, but if we do want that flexibility, we may want to find a better way to do this
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.
ah good catch, fnmatch doesn't need ** to search recursively so I fixed the patterns
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.
want to add a note to the constant above? can be follow-on
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.
planning to address in #10472
This was broken by #10456 since that did not have a case for ignoring the `main` and staging branches. This adds it at the Jenkins level so the further scripts won't even be run if not necessary. This is marked `skip ci` but since the changes all happen before lint this is being tested. commit-id:1655b8da Co-authored-by: driazati <driazati@users.noreply.github.com>
Co-authored-by: driazati <driazati@users.noreply.github.com>
This was broken by apache#10456 since that did not have a case for ignoring the `main` and staging branches. This adds it at the Jenkins level so the further scripts won't even be run if not necessary. This is marked `skip ci` but since the changes all happen before lint this is being tested. commit-id:1655b8da Co-authored-by: driazati <driazati@users.noreply.github.com>
Co-authored-by: driazati <driazati@users.noreply.github.com>
This was broken by apache#10456 since that did not have a case for ignoring the `main` and staging branches. This adds it at the Jenkins level so the further scripts won't even be run if not necessary. This is marked `skip ci` but since the changes all happen before lint this is being tested. commit-id:1655b8da Co-authored-by: driazati <driazati@users.noreply.github.com>
This skips CI for changes that only touch certain files, such as
.mdfiles ordocker/*scripts.cc @areusch