Skip to content

Firestore TransactionOptions added, to specify maxAttempts#318

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

Merged
merged 6 commits into from
Jul 7, 2022

Conversation

dconeybe
Copy link
Contributor

This is a port of firebase/firebase-cpp-sdk#966, firebase/firebase-ios-sdk#9838 and firebase/firebase-android-sdk#3664, which adds the new TransactionOptions class to Firestore, which can be used to specify the maximum number of attempts to run a transaction before giving up. Previously, this maximum was hardcoded to 5.

@google-cla
Copy link

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@dconeybedconeybe changed the base branch from main to release-9.2.0-20220628-232109June 29, 2022 14:35
@dconeybedconeybe added cla: yes tests-requested: quick Trigger a quick set of integration tests. and removed cla: no labels Jun 29, 2022
@github-actionsgithub-actionsbot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Jun 29, 2022
@github-actions
Copy link

github-actionsbot commented Jun 29, 2022

❌  Integration test FAILED

Requested by @firebase-workflow-trigger[bot] on commit 75497f2
Last updated: Wed Jul 6 17:08 PDT 2022
View integration test log & download artifacts

FailuresConfigs
analytics[TEST] [ERROR] [2019] [macos] [1/5 Platform(s): iOS] [1/3 Test Device(s): simulator_target]
firestore[BUILD] [ERROR] [2019] [macos] [1/3 Platform(s): Android]
[TEST] [ERROR] [2019] [macos] [1/5 Platform(s): iOS] [1/3 Test Device(s): ios_target]
[TEST] [FAILURE] [2019] [macos] [1/5 Platform(s): iOS] [1/3 Test Device(s): ios_target]
functions[TEST] [ERROR] [2019] [macos] [1/5 Platform(s): iOS] [1/3 Test Device(s): simulator_target]
installations[TEST] [ERROR] [2019] [macos] [1/5 Platform(s): iOS] [1/3 Test Device(s): simulator_target]
messaging[TEST] [ERROR] [2019] [macos] [2/5 Platform(s): iOS Android] [All 2 FTL Devices]
[TEST] [FAILURE] [2019] [macos] [1/5 Platform(s): iOS] [1/3 Test Device(s): simulator_target]
storage[TEST] [FAILURE] [2019] [macos] [4/5 Platform(s): ubuntu iOS macos windows] [1/3 Test Device(s): simulator_target]
@dconeybedconeybeforce-pushed the dconeybe/TransactionOptions branch from 3e5cce4 to cc9c484CompareJune 29, 2022 15:03
@google-clagoogle-clabot removed the cla: no label Jun 29, 2022
@dconeybedconeybeforce-pushed the dconeybe/TransactionOptions branch from cc9c484 to 43d2bcbCompareJune 29, 2022 15:31
@dconeybedconeybe changed the base branch from release-9.2.0-20220628-232109 to mainJune 29, 2022 15:32
@dconeybedconeybe removed the tests: in-progress This PR's integration tests are in progress. label Jun 29, 2022
@github-actionsgithub-actionsbot added tests: in-progress This PR's integration tests are in progress. tests: failed This PR's integration tests failed. labels Jun 29, 2022
@firebase-workflow-triggerfirebase-workflow-triggerbot removed the tests: in-progress This PR's integration tests are in progress. label Jun 29, 2022
@dconeybe
Copy link
ContributorAuthor

dconeybe commented Jun 29, 2022

https://github.com/firebase/firebase-unity-sdk/actions/runs/2584731985 triggered to build and run the full suite of integration tests.

Update: Build failed: ld: error: cannot find -lfirebase_auth. I think I need to include auth when testing firestore due to firestore's dependency on auth. I'll try again.

@dconeybe
Copy link
ContributorAuthor

dconeybe commented Jun 29, 2022

https://github.com/firebase/firebase-unity-sdk/actions/runs/2584931823 triggered to build and run the full suite of integration tests, this time including auth with firestore to hopefully avoid the ld: error: cannot find -lfirebase_auth error.

Update: The build was successful; the integration tests have been started: https://github.com/firebase/firebase-unity-sdk/actions/runs/2585337183

Update: I couldn't get the build-2019-macos-latest-Android action to pass. It was apparently due to an Android NDK compatibility issue.

@dconeybe
Copy link
ContributorAuthor

dconeybe commented Jun 30, 2022

https://github.com/firebase/firebase-unity-sdk/actions/runs/2592067531 triggered to build and run the full suite of integration tests, this time I've temporarily cherry-picked an Android NDK fix (5a934e1) to hopefully fix the build issues in the build-2019-macos-latest-Android action when running the integration tests.

(note that the last attempt at this run hung on Install Unity in macOS for 3+ hours: https://github.com/firebase/firebase-unity-sdk/actions/runs/2591114395)

Update: The build was successful; the integration tests have been started: https://github.com/firebase/firebase-unity-sdk/actions/runs/2592455470

@dconeybe
Copy link
ContributorAuthor

dconeybe commented Jul 1, 2022

https://github.com/firebase/firebase-unity-sdk/actions/runs/2594580720 started after merging in the Android fix from the main branch.

Integration Tests: https://github.com/firebase/firebase-unity-sdk/actions/runs/2594914112 (failed on Android)

@dconeybedconeybe removed the tests: failed This PR's integration tests failed. label Jul 1, 2022
@jonsimantov
Copy link
Contributor

Hmm, the Android build is still failing. @sunmou99 any idea if this is related?

@sunmou99
Copy link
Contributor

sunmou99 commented Jul 1, 2022

Hmm, the Android build is still failing. @sunmou99 any idea if this is related?

The unity installation tool seems unstable. I will add retry logic into the tool itself.

@sunmou99sunmou99 added the tests-requested: quick Trigger a quick set of integration tests. label Jul 6, 2022
@github-actionsgithub-actionsbot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Jul 6, 2022
@github-actionsgithub-actionsbot added the tests: failed This PR's integration tests failed. label Jul 6, 2022
@firebase-workflow-triggerfirebase-workflow-triggerbot removed the tests: in-progress This PR's integration tests are in progress. label Jul 7, 2022
@dconeybedconeybe merged commit 45781bc into mainJul 7, 2022
@dconeybedconeybe deleted the dconeybe/TransactionOptions branch July 7, 2022 03:56
@firebasefirebase locked and limited conversation to collaborators Aug 7, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: firestorecla: yestests: failedThis PR's integration tests failed.
5 participants
@dconeybe@jonsimantov@sunmou99@wu-hui@tom-andersen
close