Skip to content

Conversation

@cabljac
Copy link
Collaborator

@cabljac cabljac commented Aug 18, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Aug 18, 2025

⚠️ No Changeset found

Latest commit: 2fbbe82

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@docs-page
Copy link

docs-page bot commented Aug 18, 2025

To view this pull requests documentation preview, visit the following URL:

docs.page/invertase/tanstack-query-firebase~205

Documentation is deployed and generated using docs.page.

@cabljac cabljac force-pushed the @invertase/fix-flaky-ci branch from a9bc657 to 2fbbe82 Compare August 18, 2025 14:27
@cabljac cabljac marked this pull request as ready for review August 18, 2025 15:46
Copilot AI review requested due to automatic review settings August 18, 2025 15:46
@cabljac cabljac merged commit f63bb65 into main Aug 18, 2025
20 of 22 checks passed
@cabljac cabljac deleted the @invertase/fix-flaky-ci branch August 18, 2025 15:46
Copy link
Contributor

Copilot AI left a 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 adds caching for Firebase emulators in CI workflows to improve build performance and reduces redundant downloads. It also adds support for the dataconnect emulator and updates the Firebase CLI version.

  • Adds Firebase emulator caching to both test and release workflows
  • Configures dataconnect emulator port in firebase.json
  • Updates Firebase CLI from version 14 to latest

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
firebase.json Adds dataconnect emulator port configuration
.github/workflows/tests.yaml Adds emulator caching and updates Firebase CLI version
.github/workflows/release.yml Adds emulator caching and updates Firebase CLI version

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

uses: actions/cache@v4
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('.github/workflows/tests.yaml') }}
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

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

The cache key includes a hash of the workflow file itself, which will invalidate the cache every time this workflow is modified. Consider using a more stable hash like package.json or firebase.json instead, as emulator binaries don't change with workflow modifications.

Suggested change
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('.github/workflows/tests.yaml') }}
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('package.json', 'firebase.json') }}

Copilot uses AI. Check for mistakes.
uses: actions/cache@v4
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('.github/workflows/release.yml') }}
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

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

The cache key includes a hash of the workflow file itself, which will invalidate the cache every time this workflow is modified. Consider using a more stable hash like package.json or firebase.json instead, as emulator binaries don't change with workflow modifications.

Suggested change
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('.github/workflows/release.yml') }}
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('firebase.json') }}

Copilot uses AI. Check for mistakes.
retry_wait_seconds: 60
max_attempts: 3
command: npm i -g firebase-tools@14
command: npm i -g firebase-tools@latest
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

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

Using @latest for firebase-tools in CI can lead to unpredictable builds when new versions are released. Consider pinning to a specific version or using a version range to ensure build reproducibility.

Suggested change
command: npm i -g firebase-tools@latest
command: npm i -g firebase-tools@12.4.3

Copilot uses AI. Check for mistakes.
retry_wait_seconds: 60
max_attempts: 3
command: npm i -g firebase-tools@14
command: npm i -g firebase-tools@latest
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

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

Using @latest for firebase-tools in CI can lead to unpredictable builds when new versions are released. Consider pinning to a specific version or using a version range to ensure build reproducibility.

Suggested change
command: npm i -g firebase-tools@latest
command: npm i -g firebase-tools@12.6.1

Copilot uses AI. Check for mistakes.
@cabljac cabljac restored the @invertase/fix-flaky-ci branch August 19, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants