Repository navigation
Fix flaky PackageUpdateResource temp key test - #7390
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Member
Author
|
lol, the test that failed was one the flakiness was supposed to fix. |
Co-authored-by: Copilot <[email protected]>
Member
Author
|
This is a copilot hopeful fix. |
martinrrm
approved these changes
May 13, 2026
zivkan
approved these changes
May 13, 2026
nkolev92
enabled auto-merge (squash)
May 14, 2026 17:53
This was referenced May 15, 2026
liliankasem
pushed a commit
to liliankasem/NuGet.Client
that referenced
this pull request
May 19, 2026
Use TempApiKeyRequestTimeoutInSeconds (10s) instead of 5s, matching the fix applied to sibling tests in NuGet#7390 to address TaskCanceledException under CI load.
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.
Bug
Fixes: N/A (engineering/test-only change)
Description
This fixes flakiness in the temp verification key tests in
PackageUpdateResourceTests.The failing path was not limited to
PackageUpdateResource_NoSymbolSourcePushingSymbolAsync. CI also failed inPackageUpdateResource_PackageNotExistOnNuGetOrgPushingAsync, and the failure stack was the same in both cases:PackageUpdateResource.GetSecureApiKey(...)->HttpSource.GetJObjectAsync(...)->DownloadTimeoutStream.ReadAsync(...)These tests all used a shared
timeoutInSecond: 5, which was too aggressive for the mocked temp-key response path under CI jitter. This change introduces a dedicated test timeout constant (TempApiKeyRequestTimeoutInSeconds = 10) and uses it only for the temp-key scenarios, keeping the timeout bounded while removing incidental failures from the assertions these tests are actually making.PR Checklist