-
Notifications
You must be signed in to change notification settings - Fork 76
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: run github actions on pull requests #1315
Conversation
Won't this end up with duplicate runs for the branches that are marked as exceptions? Why not one of the alternatives in the issue? |
Spun off from getodk#1315. Soak tests are slow, and are only likely to break occasionally. Re-enabling them on branches when working on specific features, e.g. `slonik` or `pg` upgrades, would be sensible.
Yes
I think the approach taken in this PR is an improvement on the current state. It's also quick to implement, and should be easy to understand how it affects job runs and how to modify configuration if it's not acceptable. Alternatives suggested in the issue:
|
With this PR on PR ViewActions View |
After running through test PRs with the different configuration options, #1324 looks like the cleanest solution (simplest code, least clutter in actions & PR checks list). It has one downside, which is that branches pushed to |
Let's start with that and if we find that we miss having runs on push we can take out the branch restriction and accept the double runs as we do for pyxform and other repos. |
Spun off from #1315. Soak tests are slow, and are only likely to break occasionally. Re-enabling them on branches when working on specific features, e.g. `slonik` or `pg` upgrades, would be sensible.
No, I think your struck-out comment is correct! I think this will change: from current:
to (#1324)
|
I'm now thinking this is the best compromise: on:
push:
pull_request: which should give us:
Update: I've opened #1335 which implements this approach. |
Closing in favour of #1335 |
Closes #1308
There is some subtlety here:
i don't think soak tests need to run on every PR, so they're restricted tothis change has been moved to ci: only run soak tests on master branch #1320 to avoid discussions getting entangledmaster
, and also can be triggered manually from https://github.com/getodk/central-backend/actionsWhat has been done to verify that this works as intended?
It's not always 100% possible to test github actions config without merging it.
Why is this the best possible solution? Were any other approaches considered?
See #1308 for alternative suggestions(s).
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
No.
Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.
No.
Before submitting this PR, please make sure you have:
make test
and confirmed all checks still pass OR confirm CircleCI build passes