Skip to content
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

Firestore TransactionOptions added, to specify maxAttempts #966

Merged
merged 66 commits into from
Jun 27, 2022

Conversation

dconeybe
Copy link
Contributor

This is a port of 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.

dconeybe and others added 19 commits May 6, 2022 15:23
… PR that adds Snappy support has been merged there
…PLE_HARD_ASSERT when given an invalid max_attempts
@dconeybe dconeybe self-assigned this May 25, 2022
@github-actions
Copy link

github-actions bot commented Jun 24, 2022

❌  Integration test FAILED

Requested by @dconeybe on commit 252ab6c
Last updated: Mon Jun 27 10:24 PDT 2022
View integration test log & download artifacts

Failures Configs
firestore [TEST] [FAILURE] [iOS] [macos] [1/2 ios_device: simulator_target]
(1 failed tests)  NumericTransformsTest.CreateDocumentWithIncrement
[TEST] [FLAKINESS] [Android] [All 3 os] [1/2 android_device: android_target]
(1 failed tests)  CRASH/TIMEOUT

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Jun 24, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 24, 2022
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: succeeded This PR's integration tests succeeded. and removed tests: failed This PR's integration tests failed. labels Jun 24, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 24, 2022
@dconeybe
Copy link
Contributor Author

Everything looks good on desktop and iOS (https://github.com/firebase/firebase-cpp-sdk/actions/runs/2553982778).

Need to test Android once this repository's dependency on com.google.firebase:firebase-firestore is upgraded to 24.2.0 or later (BOM version 30.2.0 or later). #1007 is the currently-pending PR that will do this.

@dconeybe
Copy link
Contributor Author

dconeybe commented Jun 25, 2022

Android dependencies have now been upgraded: #1007

I've kicked off integration tests to test all platforms, including Android: https://github.com/firebase/firebase-cpp-sdk/runs/7051060951

I've also kicked off the packaging workflow to make sure it won't break anything: https://github.com/firebase/firebase-cpp-sdk/actions/runs/2559321031

@dconeybe dconeybe added the tests-requested: quick Trigger a quick set of integration tests. label Jun 25, 2022
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: succeeded This PR's integration tests succeeded. and removed tests-requested: quick Trigger a quick set of integration tests. tests: succeeded This PR's integration tests succeeded. labels Jun 25, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 25, 2022
@dconeybe dconeybe marked this pull request as ready for review June 25, 2022 13:15
@dconeybe dconeybe requested a review from wu-hui June 25, 2022 13:16
@dconeybe dconeybe merged commit 252ab6c into main Jun 27, 2022
@dconeybe dconeybe deleted the dconeybe/TransactionOptions branch June 27, 2022 14:15
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests: succeeded This PR's integration tests succeeded. labels Jun 27, 2022
@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Jun 27, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 27, 2022
@firebase firebase locked and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: firestore tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants