Investigate frequent failures of the Delete Tugboat Preview workflow #16884
Labels
CMS Team
CMS Product team that manages both editor exp and devops
DevOps
CMS team practice area
Quality Assurance
User Story or Problem Statement
As the maintainer of the CI in this repo, we need to ensure that there is no resource starvation that will prevent CI from running correctly under high loads of checkins so developers can verify their changes in a timely manner.
Description or Additional Context
This is a followup to the initial GHA Tugboat integration created as part of #13834.
Currently the "Delete Tugboat Preview" workflow fails often, see examples here (success, failure). The failures are due to the cache entries not being found for the branches of the PRs being deleted.
The issue is that this works for closing PRs but not merging PRs and the culprit is which cache scopes are used for the different triggers. From the official documentation:
It turns out that GHA cache uses GITHUB_REF for the scope of the cache entries so the Tugboat Preview ID cached during the PR creation with the
refs/pull/PULL_REQUEST_NUMBER/merge
scope is not available during PR merge which uses therefs/heads/main
scope.Steps for Implementation
Investigate the reason for failure of these workflows and change the mechanism to more reliably delete tugboat previews once PRs are merged or closed.
Acceptance Criteria
Team
Please check the team(s) that will do this work.
The text was updated successfully, but these errors were encountered: