-
-
Notifications
You must be signed in to change notification settings - Fork 437
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: replaced dorny/path-filter to tj-actions/changed-files #11630
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #11630 +/- ##
=======================================
Coverage 49.88% 49.88%
=======================================
Files 83 83
Lines 22984 22984
Branches 5508 5508
=======================================
Hits 11466 11466
Misses 10121 10121
Partials 1397 1397 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Thanks
Seems to work well :) I refreshed #11621 after merging the PR, and the tests were skipped: |
Hey @stephanegigandet, I tested everything on my personal repo yesterday, and it should work in all aspects. If there's an extreme case where it fails for that, I'm here to resolve it. |
@JagjeevanAK @alexgarel @stephanegigandet if I understand correctly, the reason for this is that it is not possible to use the GitHub Actions workflows openfoodfacts-server/.github/workflows/pull_request.yml Lines 5 to 11 in db8daa9
However: previously there was a GitHub-documented workaround for that -- the advice has disappeared from GitHub's documentation some time since Y2023 (now the page redirects to one that does not mention it). The Y2023 copy (that the poster in the linked discussion was referring to when they posted) can today be found at: https://web.archive.org/web/20230321195500/https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks The workaround was to create one Is that workaround not possible any more? |
I have begun testing this in openculinary#1. So far, if my experiments are correct, it seems that the workaround remains feasible. |
I've never heard of a workaround, but what I mean is that the actions I've used are widely adopted and actively maintained. If you check their repositories, you'll see their high level of activity. Additionally, we're currently using |
The workaround - previously a documented solution according to GitHub - would allow us to enable |
As a followup to my previous comments: it seems the built-in I'm trying to work out what the blockers for usage of
Although that may have been true at the time it was written, I don't think it remains true today. I believe that GHA workflows activated by the I will begin experimenting with using |
…penfoodfacts#11630)" This reverts commit 2863221.
The logic expressed in #11555 seems to neatly express what we want, and it uses the |
Glob characters are not working as they are intended to work as given in doc's. |
Mate #11555 has some logic error's so we reverted it back and then I have solved that problem by creating another PR. you can take look at it. |
Ok, cool, I've looked at those PRs. Was it the |
Again: I should answer my own question! I'll use a fork to check. |
Ok, I think I have confirmed: the For anyone curious, my testing for this was two comparative pull requests at: |
Hold on! We were using The |
@JagjeevanAK if the problem in #11555 was that the ignore blobs (
I've been testing that using the following fork PR, and it was successful: However, if the problem was something else -- let me know and I can investigate. |
…penfoodfacts#11630)" This reverts commit 2863221.
In openfoodfacts#11624 the original plan was to add some negative matching blobs using `paths-filter`, but that did not function as intended. As a result of that, we switched to use `tj-actions/paths-filter` instead, in pull requests openfoodfacts#11630 and openfoodfacts#11644. The reason `changed-files` did not work as expected is/was the lack of dorny/paths-filter#224 - a feature only available from v3.0.2 onwards. This changeset enables support for the `predicate-quantifier` setting and configures it for the negative-blob matches on the `code` fileset.
<!-- IMPORTANT CHECKLIST Make sure you've done all the following (You can delete the checklist before submitting) - [ ] PR title is prefixed by one of the following: feat, fix, docs, style, refactor, test, build, ci, chore, revert, l10n, taxonomy - [ ] Code is well documented - [ ] Include unit tests for new functionality - [ ] Code passes GitHub workflow checks in your branch - [ ] If you have multiple commits please combine them into one commit by squashing them. - [ ] Read and understood the [contribution guidelines](https://github.com/openfoodfacts/openfoodfacts-server/blob/main/CONTRIBUTING.md) --> Hey @stephanegigandet and @alexgarel, we finally made it! 🎉 I've tested this solution in my local repo, so there won't be any further excuses. I just want to clarify that the issue last time wasn't with the merge file solution — that was correct. The real problem was with the `dorny/path-filter` action, which turned out to be buggy. I've now switched to `tj-actions/changed-files`, which works perfectly and is well-maintained. ✅
Hey @stephanegigandet and @alexgarel, we finally made it! 🎉
I've tested this solution in my local repo, so there won't be any further excuses. I just want to clarify that the issue last time wasn't with the merge file solution — that was correct. The real problem was with the
dorny/path-filter
action, which turned out to be buggy.I've now switched to
tj-actions/changed-files
, which works perfectly and is well-maintained. ✅