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(httpreplay): add ignore-header flag, fix tests #7865

Merged
merged 4 commits into from May 2, 2023

Conversation

noahdietz
Copy link
Contributor

Adds new httpreplay/cmd/httpr flag ignore-header which can be provided multiple times and which configures the ignoreHeaders property of the Proxy created.

Fixes the timeout issues in the below integration test failures created by the GCS retry headers forcing request cache misses in the recording proxy, resulting in a retriable error being emitted and retrying forever. Utilizes the ignore-header flag or RemoveRequestHeader/IgnoreHeader helpers as needed. To prevent infinite retries in the future, I also added a 10 second timeout to the GCS requests made in the tests.

Fixes #7818
Fixes #7817

@noahdietz noahdietz requested a review from a team as a code owner May 2, 2023 04:09
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label May 2, 2023
@noahdietz noahdietz requested a review from codyoss May 2, 2023 04:09
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

Thanks

@noahdietz noahdietz merged commit 1829706 into googleapis:main May 2, 2023
9 checks passed
@noahdietz noahdietz deleted the httpr-test-timeout branch May 2, 2023 15:36
gcf-merge-on-green bot pushed a commit that referenced this pull request May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

httpreplay/cmd/httpr: TestIntegration_HTTPR failed httpreplay: TestIntegration_RecordAndReplay failed
2 participants