GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: remove error string matching by tritone · Pull Request #861 · googleapis/java-storage

This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Conversation

@tritone

@tritone tritone commented Jun 3, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure. Switched to check the error reason instead of message.

Fixes #853

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tritone
test: remove error string matching
dcd96fc
It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure.

Fixes googleapis#853
@tritone
tritone requested a review from a team June 3, 2021 04:18
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 3, 2021
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/java-storage API. label Jun 3, 2021
frankyn
frankyn approved these changes Jun 4, 2021
View reviewed changes
@tritone
switch to use Reason instead
377de3f
tritone added a commit to tritone/nodejs-storage that referenced this pull request Jun 4, 2021
@tritone
test: fix precondition test
7c3a067
This test matches the exact error string from the service, which
has changed. Using the reason instead should be more robust.

Same as googleapis/java-storage#861

Fixes googleapis#1480
@tritone tritone mentioned this pull request Jun 4, 2021
test: fix precondition test googleapis/nodejs-storage#1481
Merged
4 tasks
@tritone
tritone merged commit 146a3d3 into googleapis:master Jun 7, 2021
@tritone
tritone deleted the test-flake branch June 7, 2021 02:10
shaffeeullah added a commit to googleapis/nodejs-storage that referenced this pull request Jun 7, 2021
@tritone @shaffeeullah
test: fix precondition test (#1481)
3cb4780
* test: fix precondition test

This test matches the exact error string from the service, which
has changed. Using the reason instead should be more robust.

Same as googleapis/java-storage#861

Fixes #1480

* fix error structure

* test: changed test to look for error code and reason:

* linted files

Co-authored-by: Sameena Shaffeeullah <[email protected]>
danielduhh pushed a commit that referenced this pull request Jun 17, 2021
@tritone @danielduhh
test: remove error string matching (#861)
80984a6
It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure. I added a check of the error Reason instead,  which is more
standardized.

Fixes #853
danielduhh added a commit that referenced this pull request Jun 17, 2021
@danielduhh @BenWhitehead @tritone
feat: configure initial sp version (#883)
e245942
* feat: configure initial sp version

* fix(test): update blob paths used in storage.it.ITStorageTest#testDownloadPublicBlobWithoutAuthentication (#759)

Port of googleapis/google-cloud-go#3806

Fixes #755

* test: remove error string matching (#861)

It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure. I added a check of the error Reason instead,  which is more
standardized.

Fixes #853

Co-authored-by: BenWhitehead <[email protected]>
Co-authored-by: Chris Cotter <[email protected]>
BenWhitehead added a commit that referenced this pull request Sep 28, 2021
@BenWhitehead @JesseLovelace @tritone
fix(1.113.14-sp): backport critical bug fixes (#993)
447d35d
* feat: Remove client side vaildation for lifecycle conditions (#816)

* Remove client side vaildation for lifecycle conditions

* fix lint and suggest updating

(cherry picked from commit 5ec84cc)

* fix: update BucketInfo translation code to properly handle lifecycle rules (#852)

Fixes #850

(cherry picked from commit 3b1df1d)

* fix: improve error detection and reporting for BlobWriteChannel retry state (#846)

Add new checks to ensure a more informative error than NullPointerException is thrown if the StorageObject or it's size are unable to be resolved on the last chunk.

Fixes #839

(cherry picked from commit d0f2184)

* fix: correct lastChunk retry logic in BlobWriteChannel (#918)

Add new method StorageRpc#queryResumableUpload which allows getting a shallow StorageObject for a resumable upload session which is complete.

Update BlobWriteChannel to use StoageRpc#queryResumableUpload instead of StorageRpc#get when attempting to validate the upload size of an object when it determines the upload is complete and is on the last chunk.

If a BlobWriteChannel is opened with a conditional like IfGenerationMatch it is not possible to simply get the object, as the object can drift generationally while the resumable upload is being performed.

Related to #839

(cherry picked from commit ab0228c)

* test: remove error string matching (#861)

It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure. I added a check of the error Reason instead,  which is more
standardized.

Fixes #853

(cherry picked from commit 146a3d3)

Co-authored-by: JesseLovelace <[email protected]>
Co-authored-by: Chris Cotter <[email protected]>
sofisl pushed a commit to googleapis/google-cloud-node that referenced this pull request Feb 25, 2026
@tritone @shaffeeullah
test: fix precondition test (#1481)
f743308
* test: fix precondition test

This test matches the exact error string from the service, which
has changed. Using the reason instead should be more robust.

Same as googleapis/java-storage#861

Fixes #1480

* fix error structure

* test: changed test to look for error code and reason:

* linted files

Co-authored-by: Sameena Shaffeeullah <[email protected]>
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
@tritone @shaffeeullah
test: fix precondition test (googleapis#1481)
0221742
* test: fix precondition test

This test matches the exact error string from the service, which
has changed. Using the reason instead should be more robust.

Same as googleapis/java-storage#861

Fixes googleapis#1480

* fix error structure

* test: changed test to look for error code and reason:

* linted files

Co-authored-by: Sameena Shaffeeullah <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@frankyn frankyn frankyn approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

storage.it.ITStorageTest: testBlobReload failed

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@tritone @frankyn
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.