-
Notifications
You must be signed in to change notification settings - Fork 5
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
BUG: Non-standard workflow/behavior #10
Comments
I don't remember the full history now. Perhaps the setup was ported from the old change log bot that existed before Actions was a thing. It also existed before GitHub had safeguards in place to prevent people abusing CI in malicious PRs. I think always using |
I think the Giles check uses the head branch of the PR to achieve the desired behaviour of using the "merged" config. I suppose there are probably other ways on actions to do that? |
Having used other actions for a while, it seems like the most standard behavior is to use
That plus using And to add to the above, in addition to it being surprising that it uses the root
So concretely I guess my set of proposals for consideration would be:
I think it would make this action more standard, easier to use, and faster for at least some workflows. For MNE-Python for example, we'd just piggyback this |
Do people actually do this? 😱 In years of maintaining multiple repos I've never actually seen someone try to mess with a CI config to get their PR green at least... |
Not... yet. But we have hundreds of contributors and I cannot oversee every PR. Not all the maintainers are savvy with Actions or all the policies. Some see a ✔️ and trusts it completely. |
Sure but I think the same argument could be made for all workflows that do use Thoughts on the other ideas outlined in #10 (comment) ? For example point (4) above is how I'd prefer to take care of making things optional in #9 (comment) rather than messing with |
I, for one, agree with @larsoner here to follow the more standard GHA approaches (I might have come across contributors messing with the tests to get the green check, but can't recall anyone changing the ci config directly). But I don't have much stake in this particular action, and don't directly use it in my projects. (Side note: using codeowners, or some extra protection for the |
True. For CI, there isn't a choice because it needs to pull in the patched code to test.
If you want to put in the work, I guess it is fine given I do indeed never saw it abused the way I mentioned. If we see it some day, we can always consider reverting or something else. I can see how the benefits of refactoring might outweigh the risks here. Thanks, all! |
No, it doesn't do anything about the non-standard (for GHA) configuration / settings etc. |
We also just had the same issue in scikit-learn/scikit-learn#29705 since it adds a section to |
It seems like the suggested action should have
actions/checkout
as most do like:This seems like a much more standard workflow than the action doing some magic with the base repo to fetch the
pyproject.toml
. Using a base repo file has at least a couple disadvantages that I just ran into becausepyproject.toml
fromupstream/main
is always used:towncrier
functionality at all, the PR will fail until all thetowncrier
config stuff lands inmain
.enhancement
tonewfeature
-- in a PR I can't do this and have the bot pass because it will always pull fromupstream/main
. Yes you can skip the check with labels but that's not as nice as having everything work together.I don't see any big advantages of using the
baserepo
stuff here, can we switch toactions/checkout
instead?The text was updated successfully, but these errors were encountered: