Skip to content

Run setup-java for Firestore emulator in GitHub Actions #975

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 1 commit into from
May 30, 2022

Conversation

dconeybe
Copy link
Contributor

Fix a problem where the Firestore integration tests were flakily failing in GitHub Actions runners due to the Firestore emulator failing to start.

If the GitHub Actions runner selected for integration testing had JDK 8 installed then the Firestore emulator would fail to start because recent releases of the Firestore emulator require JDK 11 or newer. This would cause the tests that attempt to communicate with the Firestore emulator to understandably fail.

The fix is to explicitly install JDK 11 (or newer) on GitHub Actions runners using the setup-java action, instead of relying on the java version that happened to be installed on the runner.

Googlers can see b/233751585 for details.

@dconeybe dconeybe added api: firestore skip-release-notes Skip release notes check labels May 30, 2022
@dconeybe dconeybe self-assigned this May 30, 2022
@dconeybe dconeybe added the tests-requested: quick Trigger a quick set of integration tests. label May 30, 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 May 30, 2022
@github-actions
Copy link

github-actions bot commented May 30, 2022

✅  Integration test succeeded!

Requested by @dconeybe on commit 5c42ab6
Last updated: Mon May 30 12:41 PDT 2022
View integration test log & download artifacts

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label May 30, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label May 30, 2022
@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label May 30, 2022
@dconeybe dconeybe removed the tests: failed This PR's integration tests failed. label May 30, 2022
@dconeybe dconeybe requested a review from wu-hui May 30, 2022 15:03
@dconeybe dconeybe removed their assignment May 30, 2022
@dconeybe dconeybe assigned dconeybe and unassigned wu-hui May 30, 2022
@dconeybe dconeybe merged commit 5c42ab6 into main May 30, 2022
@dconeybe dconeybe deleted the dconeybe/JavaForFirestoreEmulatorInGitHubActions branch May 30, 2022 16:49
@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 May 30, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label May 30, 2022
@firebase firebase locked and limited conversation to collaborators Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: firestore 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