Repository navigation
Keep the Friday traffic run green when it cannot open the weekly PR - #577
Merged
Alejandro Lopez (soyalejolopez) merged 1 commit intoOct 30, 2026
Conversation
Under the organization policy Actions cannot open pull requests, so the Friday publish step failed every week even though the data was staged safely. Without AUTOMATION_PAT it now emits a warning and a run summary with the compare link and exits 0. A configured token that still cannot create the pull request keeps failing the run. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Alejandro Lopez (soyalejolopez)
merged commit Oct 30, 2026
573c1e3
into
microsoft:master
5 checks passed
Alejandro Lopez (soyalejolopez)
deleted the
soyalejolopez-weekly-traffic-warning
branch
October 30, 2026 13:29
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Category
What's in this pull request?
Stops the Friday run of Collect Traffic Data from going red every week. Under the organization policy, Actions cannot open pull requests, so the weekly publish step failed on purpose after staging the data safely (run 216 on 2026-10-30). A failure that happens every Friday and needs no repair trains people to ignore red runs.
What changed
traffic-stats.yml: whenAUTOMATION_PATis not configured (the known policy), the weekly step now writes a::warning::and a run summary with the compare link, then exits 0. It still updates the existing weekly PR when one is open. If a configured token cannot create the PR, that is unexpected and still fails the run through the existing "Fail when weekly PR preparation was blocked" step.test-traffic-workflow.js: asserts the no-token branch warns with the compare link and cannot fail, and that the configured-token failure path still fails.traffic-data/README.mdandCHANGELOG.md: describe the new behavior and the Friday manual step (open the PR, confirm it changes onlyresource-stats.jsonandtraffic-data/clarity-views.json, merge).Still manual: someone opens the weekly PR each Friday from the compare link in the run summary. The Housekeeping email already lists it as a chore.
Verified:
npm run checkpasses. I also ran the extracted step script with a stubbedghand no token: it printed the warning, wrote the summary, and exited 0.Related issues
Follows #572.
Checklist
npm ci --prefix tools/catalog-build && npm run check --prefix tools/catalog-build(passes)versionandupdatedwere bumped (not applicable: no resource changed)See CONTRIBUTING.md for details.