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

test(spanner): speed up test with emulator #8072

Merged
merged 1 commit into from
Jan 24, 2022

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Jan 23, 2022

The rpc_failure_threshold_integration_test was running very slowly
against the emulator. The test is not that useful against the emulator,
but we do not want it to rot. I changed the test to detect that it is
running against the emulator, and then simply reduce the running time, and
ignore the statistical results as they become unreliable.

Motivated by #4039


This change is Reviewable

The `rpc_failure_threshold_integration_test` was running very slowly
against the emulator.  The test is not that useful against the emulator,
but we do not want it to rot.  I changed the test to detect that it is
running against the emulator, and then simply reduce the running time, and
ignore the statistical results as they become unreliable.
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Jan 23, 2022
@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: b45476791be2ef42a15c800180cc0e1b5ea88a85

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@codecov
Copy link

codecov bot commented Jan 23, 2022

Codecov Report

Merging #8072 (b454767) into main (e671bf5) will decrease coverage by 0.00%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8072      +/-   ##
==========================================
- Coverage   94.88%   94.88%   -0.01%     
==========================================
  Files        1310     1310              
  Lines      118068   118070       +2     
==========================================
- Hits       112034   112030       -4     
- Misses       6034     6040       +6     
Impacted Files Coverage Δ
...on_tests/rpc_failure_threshold_integration_test.cc 89.52% <91.66%> (-0.77%) ⬇️
google/cloud/bigtable/internal/common_client.cc 95.71% <0.00%> (-1.43%) ⬇️
...integration_tests/schema_admin_integration_test.cc 98.88% <0.00%> (-1.12%) ⬇️
...le/cloud/storage/internal/curl_download_request.cc 89.75% <0.00%> (-0.36%) ⬇️
...cloud/pubsub/internal/subscription_session_test.cc 97.75% <0.00%> (-0.25%) ⬇️
google/cloud/pubsub/samples/samples.cc 92.02% <0.00%> (-0.08%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e671bf5...b454767. Read the comment docs.

@coryan coryan marked this pull request as ready for review January 23, 2022 22:40
@coryan coryan requested a review from a team as a code owner January 23, 2022 22:40
@coryan coryan enabled auto-merge (squash) January 23, 2022 22:40
@coryan coryan merged commit 5660181 into googleapis:main Jan 24, 2022
@coryan coryan deleted the test-spanner-reduce-running-time branch January 24, 2022 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants