Skip to content

Close webchannel instances on terminate #9041

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MarkDuckworth
Copy link
Contributor

@MarkDuckworth MarkDuckworth commented May 14, 2025

CI logs showed that some WebChannel connections were being left open after tests. This change implements the terminate() method on the WebChannelConnection class to ensure that any open WebChannelConnections are closed when the SDK terminates.

Copy link

changeset-bot bot commented May 14, 2025

🦋 Changeset detected

Latest commit: 8bd74f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/firestore Patch
firebase Patch
@firebase/firestore-compat Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_vertexai_responses.sh should be updated to clone the latest version of the responses: v13.0

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 14, 2025

Size Report 1

Affected Products

  • @firebase/firestore

    TypeBase (799de59)Merge (80b2770)Diff
    browser385 kB385 kB+151 B (+0.0%)
    module385 kB385 kB+151 B (+0.0%)
    react-native385 kB386 kB+151 B (+0.0%)
  • bundle

    TypeBase (799de59)Merge (80b2770)Diff
    firestore (CSI Auto Indexing Disable and Delete)280 kB280 kB+151 B (+0.1%)
    firestore (CSI Auto Indexing Enable)280 kB280 kB+151 B (+0.1%)
    firestore (Persistence)311 kB311 kB+151 B (+0.0%)
    firestore (Query Cursors)256 kB256 kB+151 B (+0.1%)
    firestore (Query)254 kB254 kB+151 B (+0.1%)
    firestore (Read data once)242 kB242 kB+151 B (+0.1%)
    firestore (Read Write w Persistence)335 kB336 kB+151 B (+0.0%)
    firestore (Realtime updates)244 kB244 kB+151 B (+0.1%)
    firestore (Transaction)221 kB221 kB+151 B (+0.1%)
    firestore (Write data)220 kB220 kB+151 B (+0.1%)
  • firebase

    TypeBase (799de59)Merge (80b2770)Diff
    firebase-compat.js802 kB802 kB+149 B (+0.0%)
    firebase-firestore-compat.js347 kB347 kB+149 B (+0.0%)
    firebase-firestore.js449 kB449 kB+151 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/kAOEozX8W6.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 14, 2025

Size Analysis Report 1

Affected Products

  • @firebase/firestore

    • addDoc

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size135 kB135 kB+151 B (+0.1%)
      size-with-ext-deps211 kB211 kB+151 B (+0.1%)
    • deleteDoc

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size125 kB125 kB+151 B (+0.1%)
      size-with-ext-deps201 kB201 kB+151 B (+0.1%)
    • disableNetwork

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size113 kB113 kB+151 B (+0.1%)
      size-with-ext-deps190 kB190 kB+151 B (+0.1%)
    • enableIndexedDbPersistence

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size189 kB189 kB+151 B (+0.1%)
      size-with-ext-deps266 kB266 kB+151 B (+0.1%)
    • enableMultiTabIndexedDbPersistence

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size226 kB226 kB+151 B (+0.1%)
      size-with-ext-deps302 kB302 kB+151 B (+0.0%)
    • enableNetwork

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size113 kB113 kB+151 B (+0.1%)
      size-with-ext-deps190 kB190 kB+151 B (+0.1%)
    • executeWrite

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size124 kB124 kB+151 B (+0.1%)
      size-with-ext-deps200 kB200 kB+151 B (+0.1%)
    • getAggregateFromServer

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size121 kB121 kB+151 B (+0.1%)
      size-with-ext-deps197 kB197 kB+151 B (+0.1%)
    • getCountFromServer

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size121 kB121 kB+151 B (+0.1%)
      size-with-ext-deps197 kB198 kB+151 B (+0.1%)
    • getDoc

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size156 kB156 kB+151 B (+0.1%)
      size-with-ext-deps232 kB232 kB+151 B (+0.1%)
    • getDocFromServer

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size156 kB156 kB+151 B (+0.1%)
      size-with-ext-deps232 kB232 kB+151 B (+0.1%)
    • getDocs

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size157 kB157 kB+151 B (+0.1%)
      size-with-ext-deps234 kB234 kB+151 B (+0.1%)
    • getDocsFromServer

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size157 kB157 kB+151 B (+0.1%)
      size-with-ext-deps233 kB234 kB+151 B (+0.1%)
    • loadBundle

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size123 kB123 kB+151 B (+0.1%)
      size-with-ext-deps199 kB199 kB+151 B (+0.1%)
    • memoryLocalCache

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size107 kB108 kB+151 B (+0.1%)
      size-with-ext-deps184 kB184 kB+151 B (+0.1%)
    • onSnapshot

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size158 kB158 kB+151 B (+0.1%)
      size-with-ext-deps234 kB234 kB+151 B (+0.1%)
    • onSnapshotsInSync

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size147 kB147 kB+151 B (+0.1%)
      size-with-ext-deps223 kB223 kB+151 B (+0.1%)
    • persistentLocalCache

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size185 kB185 kB+151 B (+0.1%)
      size-with-ext-deps262 kB262 kB+151 B (+0.1%)
    • persistentMultipleTabManager

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size221 kB221 kB+151 B (+0.1%)
      size-with-ext-deps298 kB298 kB+151 B (+0.1%)
    • persistentSingleTabManager

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size185 kB185 kB+151 B (+0.1%)
      size-with-ext-deps261 kB262 kB+151 B (+0.1%)
    • runTransaction

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size135 kB135 kB+151 B (+0.1%)
      size-with-ext-deps211 kB211 kB+151 B (+0.1%)
    • setDoc

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size134 kB134 kB+151 B (+0.1%)
      size-with-ext-deps210 kB210 kB+151 B (+0.1%)
    • updateDoc

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size134 kB134 kB+151 B (+0.1%)
      size-with-ext-deps211 kB211 kB+151 B (+0.1%)
    • waitForPendingWrites

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size114 kB114 kB+151 B (+0.1%)
      size-with-ext-deps190 kB190 kB+151 B (+0.1%)
    • writeBatch

      Size

      TypeBase (799de59)Merge (80b2770)Diff
      size136 kB136 kB+151 B (+0.1%)
      size-with-ext-deps212 kB213 kB+151 B (+0.1%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/ihyv5uyD8p.html

@MarkDuckworth MarkDuckworth marked this pull request as ready for review May 14, 2025 20:38
@MarkDuckworth MarkDuckworth requested review from a team as code owners May 14, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants