-
Notifications
You must be signed in to change notification settings - Fork 295
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(github): loosen up file matching when selecting tests to run #3021
ci(github): loosen up file matching when selecting tests to run #3021
Conversation
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
Hi @outSH, I didn't get what you mean by |
@sandeepnRES This is because of invalid glob in config as I described above |
@outSH One more idea! Could you please double-check if the change detection is also broken if you submit the same diff (or something equivalent) to the upstream repo (e.g. hyperledger/cacti instead of outSH/cacti)? This idea of mine was inspired by the fact that my benchmark result publishing PR of mine also seems to be broken in a way that is dependent on which repo a PR is being submitted against. 😅 |
@petermetz The problem was spotted on PR opened here, you can see this happening here - #3018 |
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
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.
@outSH My theory right now is that this won't fix the issue because of the underlying cause explained here: #3018 (comment)
Is there any chance that you verify it over there on that PR?
I'm thinking that if my research is correct than we don't need this PR at all.
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.
@outSH LGTM - later once the path-filter action has the ability to support our more fine-grained filtering use-case I'll recommend to change the glob patterns once again, but in the meantime this is definitely a net positive! Thank you very much for taking the time to send this in!
- Current file match glob is incorrect and never matches a file. - I didn't find a way to filter files by extension (as it was attempted now) so I propose to loose up the rules and run the test if any file in a package has changed. Signed-off-by: Michal Bajer <[email protected]>
0a5140b
to
dcd72e7
Compare
More context
picomatch
for actual filtering.picomatch
is very simple (but fast), and does not support any advanced globbing techniques. I've done some tests locally, and the best solution I found is to use less strict matching rules.Pull Request Requirements
upstream/main
branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.-s
flag when usinggit commit
command. You may refer to this link for more information.Character Limit
A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.