Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(auth): Unflake re_auth_failure #1531

Merged
merged 2 commits into from
Oct 25, 2022
Merged

test(auth): Unflake re_auth_failure #1531

merged 2 commits into from
Oct 25, 2022

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Oct 17, 2022

It seems that in test_re_auth_failure, Relay was able to process a new event before it changed its auth_state from Registered to Registering. The integration test waits for the sentry side to handle the failing auth request, but not for the Relay side to handle the failing auth response.

#skip-changelog

@jjbayer jjbayer changed the title test: Print event that did not raise test(auth): Unflake re_auth_failure Oct 24, 2022
@jjbayer jjbayer force-pushed the test/re-auth-failure branch from fb5f05f to 3bb2786 Compare October 25, 2022 06:36
@jjbayer jjbayer marked this pull request as ready for review October 25, 2022 06:48
@jjbayer jjbayer requested a review from a team October 25, 2022 06:48
@@ -906,6 +909,9 @@ def counted_check_challenge(*args, **kwargs):
auth_count_3 = counter[0]
assert auth_count_2 < auth_count_3

# Give Relay some time to process the auth response and mark itself as ready
sleep(0.1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this 10 times on a different branch, 0.1 seems to work fine:

https://github.com/getsentry/relay/actions/runs/3318797256/jobs/5483154174#step:10:662

@jjbayer jjbayer merged commit 2a5eb57 into master Oct 25, 2022
@jjbayer jjbayer deleted the test/re-auth-failure branch October 25, 2022 07:39
jan-auer added a commit that referenced this pull request Oct 25, 2022
* master:
  release: 0.8.15
  fix(py): Respect the renormalize flag (#1548)
  (fix)e2e: Use report self hosted issues env variable (#1539)
  meta(vscode): Enable all features in Rust-Analyzer (#1542)
  release: 0.8.14
  build(craft): Fix manylinux artifact name (#1547)
  feat(quotas): New data category for indexed transactions (#1535)
  test(auth): Unflake re_auth_failure (#1531)
  replays: add warning log for parse errors (#1534)
  fix(server): Retain valid cached project states on error (#1426)
  feat(protocol): Implement response context schema (#1529)
  feat(replays): emit org_id on recording kafka messages (#1528)
  feat: Add .NET/Portable-PDB specific protocol fields (#1518)
  feat(quotas): Enforce rate limits on metrics buckets (#1515)
  ref(pii): Consider all token as sensitive [INGEST-1550] (#1527)
  release: 22.10.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants