Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

test: skip backup test if it takes too long#684

Closed
olavloite wants to merge 3 commits intomasterfrom
skip-backup-test-on-deadline-exceeded
Closed

test: skip backup test if it takes too long#684
olavloite wants to merge 3 commits intomasterfrom
skip-backup-test-on-deadline-exceeded

Conversation

@olavloite
Copy link
Copy Markdown
Collaborator

Fixes #683

@olavloite olavloite requested review from a team and thiagotnunes 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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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 December 8, 2020 17:06
@generated-files-bot
Copy link
Copy Markdown

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

  • .kokoro/presubmit/integration.cfg

@thiagotnunes
Copy link
Copy Markdown
Contributor

@olavloite I think that works, thanks for fixing it

@olavloite
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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

  • .kokoro/presubmit/integration.cfg

@olavloite
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spanner.it.ITBackupTest: testBackups failed

3 participants