-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the docIndex default for manual runs (#31903)
This PR only updates the manual run conditions which were completely backwards. When running manually they wouldn't update main unless a variable was set and would always kick off the daily run which is only supposed to be kicked off during the scheduled run. The daily branch updates kick off a docs run against the daily branch which is created/updated when scheduled runs publish daily libraries. On the docs side, when the run against the daily branch completes, it nukes the branch and renames it to "daily/<date>-[ci-succeeded|ci-failed"]. Unless we're specifically testing something related to kicking off the daily runs, it should only ever be run from the scheduled doc index runs. Multiple daily runs can cause issues on the docs with the way the success/failure branch is created. UpdateMain and ForceDailyUpdate are both template parameters. UpdateMain defaults to true and ForceDailyUpdate defaults to false. I also moved the verify required metadata json members _before_ running anything because if any of these are borked, any one of the steps running afterwards could fail. With these changes: - Scheduled runs will still update the main and daily branches and kick off the daily run. - Manual runs will run update main unless UpdateMain is set to true (which is the default) - Manual runs will not update the daily branch and kick off the daily run unless ForceDailyUpdate is set to true but the default is false. The Daily runs should only really be being kicked off during the scheduled run which is at the end of the day UTC. Testing the changes: - [Manual docIndex run with defaults](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4363170&view=results). This will process/update main without touching the daily branch. - [Manual docIndex run with the UpdateMain unchecked (false) and ForceDailyUpdate checked (true)](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4363175&view=results). This will skip processing main and only process the daily branch and kick off the daily docs run.
- Loading branch information
1 parent
74ab3d3
commit 4747c9c
Showing
1 changed file
with
140 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters