Repository navigation
test: stop the legacy numeric header alert test failing on random names - #36963
Merged
Merged
Conversation
Code Review ✅ Approved🟢 Low risk · Changing only numeric test data in one integration test leaves production behavior and interfaces unchanged, with impact limited to that test's coverage. Test-only change swapping the legacy numeric header secret from VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
yan-3005
approved these changes
Nov 3, 2026
harshach
approved these changes
Nov 3, 2026
10 tasks done
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.
Problem
EventSubscriptionResourceIT.test_unrelatedPatchCopyWithLegacyNumericHeaderhas failed 4 times in the merge queue since 2 November, on all three integration lanes and on different PRs. Each time it fails with:Why it happened
The test stores
123as a webhook header secret, then sends a PATCH that copies the alert'snameintodisplayName. The test expects that PATCH to be allowed.The alert name has a random 32-character id in it, for example
legacy_numeric__6ef9f9bdcf86406997f123972beb0f01__.... The secret check looks for each secret inside any text the PATCH changes. So when the random id happens to contain123, the check decides the secret was copied intodisplayNameand refuses the PATCH. That happens on roughly 1 run in 140.All 4 failing runs had
123in the id. The passing runs we checked did not.What this PR changes
The test now uses
987654321as its secret instead of123. That number is long enough that it will not turn up in a random id by chance.batchSizeis still set to the same number as the secret, so the test still checks what it was written for: an untouched number field that equals the secret must not be refused.Test-only change. No server code changes.
How it was tested
EventSubscriptionResourceITon Postgres: 246 cases, 0 failures.