-
Notifications
You must be signed in to change notification settings - Fork 277
Run CI on more machines #1756
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
Run CI on more machines #1756
Conversation
Thanks! Can you just comment out the macOS-11.0 one for now and maybe the 16.04 ubuntu? And file a ticket to fix the build for macOS 11.0 |
5540710
to
58c6203
Compare
@pchiusano Removed ubuntu-16.04 from CI (and marked this PR as ready - it was just a WIP before) About fixing the build on macOS 11.10, I'm not sure it's a |
Hmm, now the macOS build's failing, so something's gone wrong with the config! |
Another thing I noticed: it's building every push and every pull request. Perhaps we only need to build every pull request? |
Build on every push... same as Travis used to do. It's handy for looking at a PR and seeing what commits passed CI without needing to like bisect. |
Ok. Do you think we should also build on pull request? (As far as I can tell, it just ends up building each commit in a PR twice with both "push" and "pull_request" set as triggers). |
I mean, you want the CI to run on the pushed branch and what will be the merged branch. So if it's doing that, then that's what we want. If it's duplicating work to do that and have the build on every commit, I guess that's not great but I'd probably still want to keep the builds on each commit. |
Hmm... I'm not sure I understand the distinction here. Which is which? From the docs, the "pull request" events (by default) occur when a pull request is opened, synchronized, or reopened. Synchronized means the source branch of the pull request was updated - that explains the double-builds I was seeing earlier (one for
Ah! I'm not actually sure there's an option to build every single commit in CI. I believe if you push multiple commits up, only the latest would be built. |
Like if I have a PR proposing merging
Right, that's totally fine (and that's what Travis would do too). |
Ohh, I understand what you're saying now. I wasn't aware that Travis CI did this automatically! At work we use bors to merge all patches into dev, which works as follows:
I just briefly looked at the Mergify docs, which I hadn't seen before. It looks like you can make it reject PRs that are not strictly ahead of trunk, so that merge commits that create a yet-untested version of the code cannot be merged into trunk. This would require contributors to stay ahead of trunk to get their code merged, of course. I'm not aware of how to accomplish this using only GitHub Actions, but I'm also not an expert or anything :) |
Oh, it looks to me like pull requests actually do create a merge commit. I wasn't aware of that. So, I think you're right that we do want to enable both in CI. |
@pchiusano Oops, one change I accidentally made when pulling this ci.yaml over from another project of mine is the addition of |
I don't think we care about the |
Thanks for getting this lined up, @mitchellwrosen! |
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 when you're ready.
I can't merge because the |
Overview
This PR adds a few more machines to the CI build, fixes an issue with the
~/.stack-work
caching logic (by including the branch name in the cache key), and adds some documentation to theci.yaml
file so that others may find it easier to tweak in the future.