-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Fix CI on main branch #9826
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 CI on main branch #9826
Conversation
@@ -18,7 +18,7 @@ jobs: | |||
tests: ${{ steps.filter.outputs.tests }} | |||
vendoring: ${{ steps.filter.outputs.vendoring }} | |||
steps: | |||
# For pull requests it's not necessary to checkout the code |
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.
For pull requests it's not necessary to checkout the code
But in other circumstances than pull requests it seems it is, so let's checkout always for the sake of simplicity
This won't run all the jobs when the most recent commit only changes a subset of the files (say, just a news file or just the docs). I have a fix locally. Lemme push that into a separate PR. |
Are you sure the complexity of this determine-change is worth it ? |
Oh, I never updated #9814. 😅 |
Yup yup! Saving ~30 minutes on documentation-only PRs, or PRs that don't change code is worth it IMO. |
I have the same question. I feel that our CI is getting too hard for mere mortals like myself to maintain, which increases the risk of problems remaining unfixed because the people who know how to fix them aren't available. |
Ah interesting! I felt like we were heading the other way, since our CI is now "simplified" down to a single file (+ the setup-ram-disk stuff) on a single provider. That's very different from what we had earlier, spread across 3 providers and 10+ files. The only complexity from my PoV is that we have some additional logic to not burn CPU cycles on running tests if we have a non-code PR; which I personally think is worthwhile -- since it's at the cost of a small job and a few "if"s in a couple of jobs? |
I agree that one provider is an improvement. And we had some funky logic in the old CI, too, IIRC, so maybe it's a case of "what you know is no longer scary". And having looked at the CI spec in detail, it's probably true that it's mostly lack of familiarity. I suppose things I don't understand are as follows:
Maybe the real takeaway here is that our CI is sufficiently complicated that it needs some documentation in its own right? Sorry for not picking up on this when the changes to the CI were added. I tend not to notice infrastructure-type PRs unless I'm pinged, or there's a particular comment that stands out to me. Also, and I get that this is just how github actions are, how do we know that this dorny/paths-filter action is a good thing to use, and not just some random person's code? It's the same reservation that I have with Go's "github as the package index" approach, so it's definitely just a general comment here and not something wrong with our CI per se. But do we need any sort of guidance on what GH actions it's OK to use in our CI? |
Yea, I don't think there's any way to fix this TBH, beyond having everyone else get used to it.
No worries. :) Let's capture all of this in an open issue though, instead of a closed PR. |
Done. #9829 |
fixes #9782