Skip to content

(Desktop) Firestore C++ Core from TIP by default #855

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 5 commits into from
Feb 26, 2022

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Feb 18, 2022

No description provided.

@wu-hui wu-hui added the tests-requested: quick Trigger a quick set of integration tests. label Feb 18, 2022
@github-actions github-actions bot 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 Feb 18, 2022
@github-actions
Copy link

github-actions bot commented Feb 18, 2022

✅  Integration test succeeded!

Requested by @wu-hui on commit dcb0b3b
Last updated: Sat Feb 26 09:09 PST 2022
View integration test log & download artifacts

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Feb 18, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Feb 18, 2022
@wu-hui wu-hui requested a review from sunmou99 February 22, 2022 16:24
@wu-hui wu-hui added skip-release-notes Skip release notes check and removed tests: failed This PR's integration tests failed. labels Feb 22, 2022
@wu-hui wu-hui added the tests-requested: quick Trigger a quick set of integration tests. label Feb 22, 2022
@github-actions github-actions bot 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 Feb 22, 2022

if(NOT FIRESTORE_DEP_SOURCE)
# Get from tip of the tree by default
GetTag("origin/master")
Copy link
Contributor

Choose a reason for hiding this comment

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

I would really rather not get from the tip of the tree by default - this could allow our build to break, as the build tree will get out of sync with our iOS dependencies. Having the option to get from HEAD is a good idea though, just not the default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It certainly can break CPP because we did a commit to iOS, but IMHO this is better than having to discover this by the time we start preparing for a release. We want to catch breakages like this as earlier as possible, when the person who make the commit still have good context.

Ideally, we should be able to run the tests as part of iOS PR CI, which stops the PR from committing if it breaks. Right now the long build time of CPP is not helping with this..

Copy link
Contributor

Choose a reason for hiding this comment

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

Right now, the iOS dependency version updates all at once via a workflow (example: #845). This allows us to determine at a glance (if the integration tests succeed) that the new version works. If we allow Firestore to update its version out-of-band with that, anyone's random PR could have tests fail due to the iOS SDK changing out from under them. I don't believe that is an acceptable situation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed offline, the default behavior now remains unchanged.

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Feb 22, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Feb 22, 2022
@wu-hui wu-hui added tests-requested: quick Trigger a quick set of integration tests. and removed tests: failed This PR's integration tests failed. labels Feb 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. labels Feb 25, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Feb 25, 2022
Copy link
Contributor

@sunmou99 sunmou99 left a comment

Choose a reason for hiding this comment

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

LGTM

GetTag("origin/master")
else()
if(FIRESTORE_DEP_SOURCE STREQUAL "RELEASED")
GetReleasedDep("CocoaPods-8.12.1")
Copy link
Contributor

Choose a reason for hiding this comment

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

@jonsimantov What about reuse "Update Android and iOS dependencies" workflow, and update the version here automatically?

@wu-hui wu-hui merged commit dcb0b3b into main Feb 26, 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: succeeded This PR's integration tests succeeded. labels Feb 26, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Feb 26, 2022
@firebase firebase locked and limited conversation to collaborators Mar 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip-release-notes Skip release notes check tests: succeeded This PR's integration tests succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants