Let's make a timer that automates Tue "stage-train" tasks
Acceptance Criteria
- Agree on a time for automated deployment every week. Selected 20:00 US/Pacific, an hour after the branch cut job runs (which should finish in about 30 minutes)
- Patch the deployment calendar to add a new window
- User exists for running timer (T303857)
- Timer exists on deployment servers
- Timer determines the wmf.X branch/version for the week. Information from https://train-blockers.toolforge.org/api.php (which pulls from Phabricator) is used
- The right thing happens if the current week's train task is declined. scap stage-train will terminate if the task status is not "open".
- Timer executes scap stage-train --yes auto and it runs to completion without human intervention and without errors under normal conditions.
- Timer can be re-executed if it previously failed.
Alerting on failure is T310396