You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was an unplanned work item and was a bug discovered after the original PR was merged.
Description or Additional Context
This is a bug introduced in #16279. Due to the scoped nature of Github Actions Cache, cron jobs cannot restore the cache entries created in pull request scope since cron jobs are triggered from the main branch scope. As such we need a mechanism for the cron job to trigger a build from the pull request scope. The current proposal is to use labels to trigger a workflow from the PR scope to refresh tokens.
Steps for Implementation
Alternative considered included trying to workaround the scope limitation by manipulating the cache scope inside the workflow on main and PR branches but this was too complicated and not likely possible.
Another alternative considered was to trigger a workflow directly in the PR branch from the cron job in the main branch but there's a limitation to the scopes that can be specified from a PR workflow. The required scope is refs/pull/<PR>/merge whereas triggering a workflow is only possible with refs/heads/<PR branch>.
Acceptance Criteria
Cache entries for each Preview ID associated with an open PR must be refreshed to ensure GHA is able to rebuild and delete Tugboat previews as necessary.
Team
Please check the team(s) that will do this work.
CMS Team
Public Websites
Facilities
Accelerated Publishing
The text was updated successfully, but these errors were encountered:
User Story or Problem Statement
This was an unplanned work item and was a bug discovered after the original PR was merged.
Description or Additional Context
This is a bug introduced in #16279. Due to the scoped nature of Github Actions Cache, cron jobs cannot restore the cache entries created in pull request scope since cron jobs are triggered from the main branch scope. As such we need a mechanism for the cron job to trigger a build from the pull request scope. The current proposal is to use labels to trigger a workflow from the PR scope to refresh tokens.
Steps for Implementation
Alternative considered included trying to workaround the scope limitation by manipulating the cache scope inside the workflow on main and PR branches but this was too complicated and not likely possible.
Another alternative considered was to trigger a workflow directly in the PR branch from the cron job in the main branch but there's a limitation to the scopes that can be specified from a PR workflow. The required scope is
refs/pull/<PR>/merge
whereas triggering a workflow is only possible withrefs/heads/<PR branch>
.Acceptance Criteria
Cache entries for each Preview ID associated with an open PR must be refreshed to ensure GHA is able to rebuild and delete Tugboat previews as necessary.
Team
Please check the team(s) that will do this work.
The text was updated successfully, but these errors were encountered: