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
github actions: don't use tj-actions/changed-files #13748
Conversation
avoids all its bugs alltogether eg tj-actions/changed-files#704
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
3dd3735
to
f8fd9f8
Compare
This comment has been minimized.
This comment has been minimized.
f8fd9f8
to
d291020
Compare
This comment has been minimized.
This comment has been minimized.
d291020
to
ba88274
Compare
This comment has been minimized.
This comment has been minimized.
ba88274
to
c1c5096
Compare
I'd like to propose a test. I want to merge this into my repos master branch. Then have someone without writing access to open a few PRs - We can steal real from from CCI - and make sure we get the correct results. This is the closest I can think of for a real world test. Thoughts? |
ok, let's do that |
You should be able to make PRs against my repo :) also random changes like docs, configs, linters -- this should be a good test 🤞 |
Opened prince-chrismc#44 so far so good! I have one small quibble about the order of calling
|
I don't think it's worth the risk, considering it literally takes 0 seconds to install python. EDIT: OK, it's not a change actually it's simply because the linter stops at the first error. |
python's fnmatch treats * as any character any number oftime, including /. This is not coherent with bash, which excludes / from *. The fix is to split the pattern and filenames by / and call fnmatch on each part.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
it looks ok now. see how https://github.com/conan-io/conan-center-index/actions/runs/3487128109/jobs/5834387846 did not lint any file (because it only lints recipes), but https://github.com/conan-io/conan-center-index/actions/runs/3487128109/jobs/5834387983 linted the expected test recipe. Can you pull this change in your fork @prince-chrismc ? |
Conan v1 pipelineChanges not allowed in build 31:
Changing recipes and configuration/docs files in the same pull-request is not allowed. Please, split changes into several pull-requests. |
changes are in and I triggered the PRs again 👍 Maybe next week we can get on a Zoom for an hr and just knock this out? it will be slow going back and forth |
The two PRs look really promising. They ran only every necessary so 👍 I'd like to see a docs PR (aka no files changes) and a linter PR just to make sure those two workflows still work 🙏 than I think we can green lite this to go in |
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.
Everything checks out and looks to be running correctly from a fork 🤞
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
My motivation for not using
tj-actions/changed-files
actions any more is that:And we cannot stay on
tj-actions/changed-files/v20
for long because it uses deprecated features which will be removed soon (cf https://github.com/conan-io/conan-center-index/actions/runs/3326299661/jobs/5499882522#step:4:99 https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/)This PR demonstrates that for CCI's use case (getting files changed in a pull-request), 7 lines of python code are sufficient to do the job, so it feels to me that it's a smaller maintenance burden to use our custom action than tj-actions/changed-files