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

Fix flaky test in aws-sigv4 #3990

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Fix flaky test in aws-sigv4 #3990

merged 2 commits into from
Jan 30, 2025

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Jan 29, 2025

Motivation and Context

The test was flaky because all invalid headers are counted as rejects which can in rare cases exceed the maximum number of failures.

The test was flaky because all invalid headers are counted as rejects which can in rare cases exceed the maximum number of failures.

Description

Change the test to assert that the validity status matches instead of filtering those cases out

Testing

  • cargo test

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The test was flaky because all invalid headers are counted as rejects which can in rare cases exceed the maximum number of failures.
@rcoh rcoh requested a review from a team as a code owner January 29, 2025 18:19
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

Copy link
Contributor

@ysaito1001 ysaito1001 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! It looks like aws/rust-runtime/Cargo.lock being committed is a bit old with respect to the one in main, since many crates are being downgraded to older versions?

Merged the main branch and updated aws/rust-runtime/Cargo.lock, which looks good now.

@ysaito1001 ysaito1001 enabled auto-merge January 30, 2025 16:48
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@ysaito1001 ysaito1001 added this pull request to the merge queue Jan 30, 2025
Merged via the queue into main with commit 587e714 Jan 30, 2025
42 of 44 checks passed
@ysaito1001 ysaito1001 deleted the flaky-sigv4-test branch January 30, 2025 17:46
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.

3 participants