Repository navigation
Journeys: don't count the browser's authorize request as a callback call (sc-9611) - #299
Open
ndbroadbent wants to merge 2 commits into
Open
ndbroadbent wants to merge 2 commits into
ndbroadbent wants to merge 2 commits into
Conversation
…wser's own authorize request (sc-9611) Run 47531375940 failed a docs-only PR: GET /login/oauth/authorize, which the browser makes just before the callback, fell inside the callback's time window on a busy runner and counted as a fourth call. The callback is also matched by its path, not by any URL containing it.
…ize request, not by a window from the browser's timestamp (sc-9611)
This branch has not been deployed
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.
A flaky journey failed #295, which changes only docs (run 47531375940):
The journey counted the GitHub stub's calls whose times fell between
askedandanswered, the moments the test saw the browser's request to the callback and its response. Two things make that window unreliable:GET /login/oauth/authorizecan share a millisecond withasked. That is the call that redirects to the callback, and it got counted.askedcan come after the callback's first call (access_token). That call would then be left out, and one extra call could pass unnoticed.The count now goes by order: the stub's calls after the last authorize request that finished before the callback answered. The limit of 3 calls (access_token, /user, /user/emails) and the 1500 ms check stay as they were.
The independent review found that the first version's exact-path match changed nothing. loco percent-encodes redirect_uri, so the old match never caught the authorize URL. I've removed it.
The log's server errors section was empty. No screenshots change. Part of sc-9611.