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

chore(storage): fix ReadStallTimeout test #10992

Merged
merged 7 commits into from
Oct 17, 2024

Conversation

tritone
Copy link
Contributor

@tritone tritone commented Oct 14, 2024

Fix this test to use the emulator test harness so it will run in the presubmit emulator run and not with the integration tests. Also reduce timings for quicker execution.

Fix this test to work in the CI. Also remove a spurious log
statement.
@tritone tritone requested review from a team as code owners October 14, 2024 23:56
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Oct 14, 2024
}
defer r.Close()
// Plant stall at start for 1s.
instructions := map[string][]string{"storage.objects.get": {"stall-for-1s-after-0K"}}
Copy link
Contributor

Choose a reason for hiding this comment

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

We should set the delay to longer than 5 seconds. If a retry occurs, the process will work as expected; otherwise, it will fail with a deadline exceeded error.

Also, I have fixed a bug in the storage-test-bench. We need to take this change before this PR. P

Storage-test-bench fix: googleapis/storage-testbench#690

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I released a new emulator version and updated the test to have a longer stall.

Copy link
Contributor

@raj-prince raj-prince left a comment

Choose a reason for hiding this comment

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

LGTM. Added a comment.

@tritone tritone merged commit 24a7dcc into googleapis:main Oct 17, 2024
8 checks passed
@tritone tritone deleted the stall-timeout-fix branch October 17, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants