Skip to content

Conversation

olavloite
Copy link
Collaborator

Fixes #683

@olavloite olavloite requested a review from a team as a code owner December 5, 2020 09:13
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 5, 2020
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner API. label Dec 5, 2020
@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2020
@codecov
Copy link

codecov bot commented Dec 6, 2020

Codecov Report

Merging #684 (73de11f) into master (d093089) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@ ## master #684 +/- ## ========================================= Coverage 84.12% 84.13% - Complexity 2509 2512 +3  ========================================= Files 142 142 Lines 13911 13911 Branches 1323 1323 ========================================= + Hits 11703 11704 +1  - Misses 1662 1663 +1  + Partials 546 544 -2 
Impacted Files Coverage Δ Complexity Δ
...m/google/cloud/spanner/connection/SpannerPool.java 84.44% <0.00%> (-1.67%) 31.00% <0.00%> (ø%)
...ud/spanner/SessionPoolAsyncTransactionManager.java 86.99% <0.00%> (+1.62%) 13.00% <0.00%> (+2.00%)
.../cloud/spanner/spi/v1/SpannerErrorInterceptor.java 65.00% <0.00%> (+5.00%) 3.00% <0.00%> (ø%)

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 d093089...ffd8385. Read the comment docs.

@thiagotnunes
Copy link
Contributor

I am not sure this is the best way to tackle this flakiness, because the backup not finishing might be an indication of a real problem. This test would then be non-deterministic in this case, we would not know if it was skipped due to a real failure or due to taking too long.

I am wondering if we should not remove this test entirely.

@olavloite
Copy link
Collaborator Author

I am not sure this is the best way to tackle this flakiness, because the backup not finishing might be an indication of a real problem. This test would then be non-deterministic in this case, we would not know if it was skipped due to a real failure or due to taking too long.

I am wondering if we should not remove this test entirely.

We could also consider assigning it a separate category that is skipped by default, but that is included in nightly (or other specific) builds.

@olavloite olavloite requested a review from a team as a code owner December 8, 2020 17:06
@generated-files-bot
Copy link

Warning: This pull request is touching the following templated files:

  • .kokoro/presubmit/integration.cfg
@thiagotnunes
Copy link
Contributor

@olavloite I think that works, thanks for fixing it

@olavloite
Copy link
Collaborator Author

@thiagotnunes I'm afraid that this works locally, but not in CI at the moment. It complains about two things:

  1. Apparently the integration.cfg file is a generated file. Do you know how we can create/edit the template for it?
  2. Adding an environment variable to the build is also not allowed by default, so the integration test fails with the following error:
[15:32:49][ERROR] Found un-allowed variables: SKIP_BACKUP_INTEGRATION_TESTS="true" (No matching key in allowed env vars) 

Any idea how to fix that?

@thiagotnunes
Copy link
Contributor

@olavloite ah ok, there is a file I can modify to allow for that env var. There is one env var that is already defined that maybe we can use: INTEGRATION_TEST_ARGS. Could you try using that one first?

@generated-files-bot
Copy link

Warning: This pull request is touching the following templated files:

  • .kokoro/presubmit/integration.cfg
@olavloite
Copy link
Collaborator Author

@olavloite ah ok, there is a file I can modify to allow for that env var. There is one env var that is already defined that maybe we can use: INTEGRATION_TEST_ARGS. Could you try using that one first?

I tried with INTEGRATION_TEST_ARGS, but that seems to be reserved for other usages. Setting a value for it in the integration.cfg file for pre-submit checks causes the following error:

[ERROR] Unknown lifecycle phase "SKIP_BACKUP_INTEGRATION_TESTS". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] 
@olavloite
Copy link
Collaborator Author

I'm inclined to close this PR as the backup tests have started being successful again lately. It might be that these problems were a side effect of the problems that we were seeing with RESOURCE_EXHAUSTED errors for too many administrative requests. @thiagotnunes WDYT?

@thiagotnunes
Copy link
Contributor

@olavloite I agree

@olavloite olavloite closed this Dec 15, 2020
rajatbhatta pushed a commit to rajatbhatta/java-spanner that referenced this pull request Nov 17, 2022
…cies to v2.5.1 (googleapis#684) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.0` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-shared-dependencies</summary> ### [`v2.5.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#&#8203;251-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare250v251-2021-12-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.0...v2.5.1) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-spanner-jdbc).
rajatbhatta pushed a commit to rajatbhatta/java-spanner that referenced this pull request Nov 17, 2022
🤖 I have created a release \*beep\* \*boop\* --- ### [2.5.5](https://www.github.com/googleapis/java-spanner-jdbc/compare/v2.5.4...v2.5.5) (2021-12-03) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([googleapis#684](https://www.github.com/googleapis/java-spanner-jdbc/issues/684)) ([a2582d3](https://www.github.com/googleapis/java-spanner-jdbc/commit/a2582d3fbd3f0ea093477914e3a09af235e76595)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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 googleapis/java-spanner API. cla: yes This human has signed the Contributor License Agreement.

3 participants