-
Notifications
You must be signed in to change notification settings - Fork 159
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
Fix workflow runs from forks #905
Conversation
Okay, even though this PR is from within IIASA's repo, the only "Pytest" run that is triggered uses the version currently on |
From this GitHub blog, it sounds like we might have to save things like coverage and test failure rate (or so) as artifacts and comment them on the PR manually:
This sounds less than ideal. Alternatively, I found this suggestion: use the |
Urgh, that's definitely too complicated.
This seems like a good alternative. If I understand, a maintainer would need to trigger a re-run each time, right? I think that is an acceptable compromise, given that we will not use this so frequently: we can continue to encourage teammates to use branches within the iiasa repo, so it would be only outside collaborators. |
Not even that: all colleagues from the MESSAGEix Devs team have write access, too. So even PRs from their forks would just run immediately, given their permissions. This would only affect PRs from people not on the team (or otherwise having write access to this repo), if I understand correctly. |
Okay, that sounds great. Should we try to implement it via this PR? |
I tried doing that just now. I think for this to work as intended, the |
319620a
to
04ed41a
Compare
04ed41a
to
4e7dd0a
Compare
As discussed, we'll drop the 3rd commit re: triggering_actor here; merge; check the effects; and then continue in a new PR. |
4e7dd0a
to
5d4b0d0
Compare
5d4b0d0
to
24a32f0
Compare
Okay, after doing this, I rebased both #904 and #808 on main, triggering CI to run. What I see:
I guess this means back to the drawing-board! Will link to this comment from any follow-up PR(s). |
As discovered in #904 (comment), it seems we need to bring to
main
a version of the "Pytest" workflow that doesn't run on all PRs tomain
and that uses the correct data for the checkout action when being dispatched from the "Receive PR" workflow. This PR cherry-picks the two commits from #904 that achieve this.How to review
Read the diff and note that the CI checks all pass.PR checklist
Continuous integration checks all ✅These fail because of the underlying issue. Merging the changes will address the issue.Add or expand tests;coverage checks both ✅[ ] Add, expand, or update documentation.Just CI.[ ] Update release notes.Just CI.