ci: Run tests when pushing to protected branches#186
ci: Run tests when pushing to protected branches#186romanc wants to merge 1 commit intoNOAA-GFDL:developfrom
Conversation
We don't use a merge queue and we allow to merge outdated branches for practical reasons (because in particular pyFV3 and pace tests take a long time to run). It could thus happen that we get a bad merge. In that unlikely case, we'd like to know and thus run tests when pushing to protected branches (`main` and `develop`) as a safety net.
|
SPCL have been using the GH merge queue, but it can require a lot of hand holding apparently :/ |
Merge queues work great, if you have a stable test environment. What happens when you have an unstable test environment with a merge queue is that sometimes/randomly jobs will drop out of the merge queue on failing tests. And then you have to re-submit the job to the merge queue. This defeats one point of a merge queue (the one that automates parts of the merge pipeline). DaCe doesn't have a stable test environment (they know it) and thus they suffer. My feeling is that we - on the other hand - have a stable test environment. There are no tests randomly not passing - it just sometimes takes long until all tests pass. Imo this is the perfect fit for a merge queue. I can't configure merge queues, so I went with the next best. Maybe we should discuss merge queues in one of the upcoming NASA/NOAA syncs. |
Good points. We do have more "it passes" than anything really, so we are on the other side of that bridge. Bring it on to the NASA/NOAA sync |
|
@bensonr / @fmalatino I'm also fine putting this on hold until we had time to discuss it at a NOAA/NASA sync. No pressure here. |
|
I just realized: One more reason to start running tests on GitHub Actions can restore caches from the main branch ( |
|
In the today's pace meeting, we decided to use merge queues directly. I'm closing this PR as superseded by #194. |
Description
We don't use a merge queue and we allow to merge outdated branches for practical reasons (because in particular pyFV3 and pace tests take a long time to run). It could thus happen that we get a bad merge. In that unlikely case, we'd like to know and thus run tests when pushing to protected branches (
mainanddevelop) as a safety net.How Has This Been Tested?
CI would complain if the yaml formatting was off. We only know for sure that this works once this PR is merged.
Checklist: