-
Notifications
You must be signed in to change notification settings - Fork 612
dataconnect: use firebase-tools to launch fdc emulator instead of launching it directly #6896
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
dataconnect: use firebase-tools to launch fdc emulator instead of launching it directly #6896
Conversation
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Vertex AI Mock Responses Check
|
Size Report 1Affected ProductsNo changes between base commit (bd2cb5f) and merge commit (ee82191).Test Logs |
Coverage Report 1Affected Products
Test Logs |
…e version used for codegen diff --git a/.github/workflows/dataconnect.yml b/.github/workflows/dataconnect.yml index a9e895d..0e77b04 100644 --- a/.github/workflows/dataconnect.yml +++ b/.github/workflows/dataconnect.yml @@ -174,14 +174,24 @@ jobs: - name: Start Firebase Emulators run: | set -xveuo pipefail + + # Use the same dataconnect binary as was used for code generation in gradle assemble + DATACONNECT_EMULATOR_BINARY_PATH="$(find "$PWD"/firebase-dataconnect/connectors/build/intermediates/dataconnect/debug/executable -type f)" + if [[ -n $DATACONNECT_EMULATOR_BINARY_PATH ]] ; then + echo "INTERNAL ERROR v7kg2dfhbc: unable to find data connect binary" >&2 + exit 1 + fi + export DATACONNECT_EMULATOR_BINARY_PATH + export FIREBASE_DATACONNECT_POSTGRESQL_STRING='postgresql://postgres:[email protected]:5432?sslmode=disable' - export DATACONNECT_EMULATOR_BINARY_PATH="$PWD"/firebase-dataconnect/connectors/build/intermediates/dataconnect/debug/executable/dataconnect-* cd firebase-dataconnect/emulator ${{ env.FDC_FIREBASE_COMMAND }} emulators:start --only=auth,dataconnect >firebase.emulators.log 2>&1 & - name: Start Logcat Capture continue-on-error: true - run: "$ANDROID_HOME/platform-tools/adb" logcat >logcat.log 2>&1 & + run: | + set -xveuo pipefail + "$ANDROID_HOME/platform-tools/adb" logcat >logcat.log 2>&1 & - name: Gradle connectedCheck id: connectedCheck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Firebase Tools version to v14.2.0 in the CI workflows and refactors the emulator startup process to use firebase-tools instead of directly downloading the emulator binary.
- Update Firebase Tools version in both workflow files
- Refactor emulator startup commands to locate and launch the dataconnect binary
- Rename steps (e.g. "Data Connect Emulator Start" → "Start Firebase Emulators") for better clarity
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
.github/workflows/dataconnect_demo_app.yml | Updated FDC_FIREBASE_TOOLS_VERSION to v14.2.0 |
.github/workflows/dataconnect.yml | Updated Firebase Tools version, removed restore-gradle-cache step, and refactored emulator start commands |
Files not reviewed (1)
- firebase-dataconnect/gradleplugin/plugin/src/main/resources/com/google/firebase/dataconnect/gradle/plugin/DataConnectExecutableVersions.json: Language not supported
No description provided.