Skip to content

Conversation

MarkDuckworth
Copy link
Contributor

@MarkDuckworth MarkDuckworth commented Aug 1, 2025

Fixes b/397525375. Uses steps defined in b/397525375.

@MarkDuckworth MarkDuckworth requested review from a team as code owners August 1, 2025 22:20
@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Aug 1, 2025
Copy link

generated-files-bot bot commented Aug 1, 2025

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

  • .github/workflows/ci.yaml - .github/workflows/ci.yaml (GitHub Actions) should be updated in synthtool

@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/nodejs-firestore API. label Aug 1, 2025
@MarkDuckworth MarkDuckworth added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2025
Copy link
Contributor

@sofisl sofisl left a comment

Choose a reason for hiding this comment

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

Just want to make sure you're following the script here, b/397525375 (might be worth mentioning it in your PR description)

MarkDuckworth and others added 7 commits August 4, 2025 14:10
Update to latest image
* I will fix the floating promise errors.

This PR fixes all the floating promise errors in the test files. It also converts all the `then` calls to `async/await` in the test files.

* remove jules txt output files

* Fix hanging promise errors

* Attempting CI fix of tests

* Change solution to floating promises where adding await previously changed the meaning of the test.

* revert void assert.rejects changes in gapic_firestore_v1beta1.ts tests

* Address PR comments

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@MarkDuckworth MarkDuckworth requested a review from sofisl August 25, 2025 17:08
sofisl
sofisl previously approved these changes Aug 27, 2025
@sofisl
Copy link
Contributor

sofisl commented Aug 27, 2025

Approved! I think your tests are failing because you don't have a Node 18 kokoro file (this might be because it's excluded in the owlbot.py file). It should mostly just comprise of renaming the kokoro 14 files to 18 (and making sure they're using 18 as the image, node version, etc.).

@MarkDuckworth MarkDuckworth added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 17, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 17, 2025
// This list is based on https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore/src/core/transaction_runner.ts#L112
switch (error.code as number) {
case StatusCode.ABORTED:
case 409: // GAXIOS may now return HTTP 409 instead of Aborted
Copy link
Contributor

Choose a reason for hiding this comment

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

So weird to see a 409 in the middle of the StatusCodes :)

Copy link
Contributor

Choose a reason for hiding this comment

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

At least I expected the formatter to move it before (or after) all other case statements.

options?: gax.CallOptions
): AsyncIterable<protos.google.longrunning.ListOperationsResponse> {
options?: gax.CallOptions,
): AsyncIterable<protos.google.longrunning.IOperation> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why this changed. The proto still returns a ListOperationsResponse

@@ -1,1714 +0,0 @@
## API Report File for "@google-cloud/firestore"
Copy link
Contributor

Choose a reason for hiding this comment

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

what was the reason for removing firestore.api.md?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: firestore Issues related to the googleapis/nodejs-firestore API. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants