Skip to content

Conversation

@driazati
Copy link
Member

@driazati driazati commented Mar 2, 2022

This skips CI for changes that only touch certain files, such as .md files or docker/* scripts.

cc @areusch

@github-actions github-actions bot requested a review from areusch March 2, 2022 22:07
@driazati driazati changed the title [ci] Skip CI based on globs [ci] Skip CI based on file globs Mar 2, 2022
@driazati driazati marked this pull request as ready for review March 3, 2022 19:33
@github-actions github-actions bot removed the request for review from a team March 3, 2022 19:33
Copy link
Contributor

@areusch areusch left a 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):
Copy link
Contributor

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

Copy link
Member Author

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

Copy link
Contributor

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

Copy link
Contributor

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

@github-actions github-actions bot requested a review from areusch March 3, 2022 21:21
@areusch areusch merged commit 8fe75fd into apache:main Mar 4, 2022
areusch pushed a commit that referenced this pull request Mar 4, 2022
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>
ziqiangxu8457 pushed a commit to ziqiangxu8457/tvm that referenced this pull request Mar 6, 2022
Co-authored-by: driazati <driazati@users.noreply.github.com>
ziqiangxu8457 pushed a commit to ziqiangxu8457/tvm that referenced this pull request Mar 6, 2022
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>
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
Co-authored-by: driazati <driazati@users.noreply.github.com>
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants