[wp-trac] [WordPress Trac] #52653: Run GitHub Action workflows for testing old branches on a schedule
WordPress Trac
noreply at wordpress.org
Fri Apr 2 16:29:54 UTC 2021
#52653: Run GitHub Action workflows for testing old branches on a schedule
------------------------------+-----------------------
Reporter: desrosj | Owner: desrosj
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 5.8
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+-----------------------
Changes (by desrosj):
* keywords: has-patch fixed-major => has-patch
Comment:
This week the first scheduled run of this workflow occurred:
https://github.com/WordPress/wordpress-develop/actions/runs/707069966.
Branches 3.7, and 4.9-5.7 all were tested successfully (the other branches
did not have the required changes to be run). Here are some notes.
The workflow was scheduled for the first of the month at 00:00 UTC. When
jobs are scheduled, GitHub takes all of the jobs with the same scheduled
time and places them in a pool and they are run as resources are
available. This resulted in the workflow ''actually'' starting at ~02:34.
This delay is not a huge deal, but it's worth noting it's not always
immediate.
The next scheduled run is on the 15th at 00:00 UTC. After that occurs, I
think that [attachment:"52653.diff"] should be committed to do a few
things.
First, it splits the two scheduled dates into two separate crons. This
allows us to detect which day it is (1st or 15th).
Second, it introduces a conditional statement using the separate crons
above to only test the two most recent branches twice per month, and all
other branches once per month. This more closely matches our testing setup
on Travis, and prevents some needless testing.
And finally, because an overwhelming number of projects are most likely
running workflows at 00:00 on the 1st, it changes all branches to being
tested on the 15th, and only the 2 most recent on the 1st.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52653#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list