-
Notifications
You must be signed in to change notification settings - Fork 926
Update the integration test to verify that bloom filter averted full requery #7095
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
Update the integration test to verify that bloom filter averted full requery #7095
Conversation
…loom filter without a false positive
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (530,201 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
…'t appear in common/api-review/firestore.api.md. Also do a tiny bit of cosmetic changes.
…ist of copied files This may fix the following error: ``` [tsl] ERROR in /home/runner/work/firebase-js-sdk/firebase-js-sdk/integration/firestore/temp/test/integration/api/query.test.ts(76,50) TS2307: Cannot find module '../util/testing_hooks_util' or its corresponding type declarations. ``` https://github.com/firebase/firebase-js-sdk/actions/runs/4351236611/jobs/7602696515
…smatchInfoFromRaw() to help debug this error: ``` TypeError: Cannot read properties of undefined (reading 'existenceFilter') ``` https://github.com/firebase/firebase-js-sdk/actions/runs/4355588983/jobs/7612412525
…terMismatch()' callbacks
…and/or excluded from minified code
…y 'ignoreUndefinedProperties' does not exist on type '{ host: string; ssl: boolean; }' See https://github.com/firebase/firebase-js-sdk/actions/runs/4367447223/jobs/7638769445
… Property 'ignoreUndefinedProperties' does not exist on type '{ host: string; ssl: boolean; }'" This reverts commit c1437bc. Importing @firestore/types didn't work in CI... ugh.
…: Property 'ignoreUndefinedProperties' does not exist on type '{ host: string; ssl: boolean; }' See https://github.com/firebase/firebase-js-sdk/actions/runs/4367447223/jobs/7638769445
…erComplexIntegrationTest
@milaGGL I'm not sure why the "Test All Packages / Node.js and Browser (Chrome) Tests (push)" check is failing. It's failed for two completely different reasons in a row. Can you review despite that failure? |
…unt to be less confusing, since I've already confused myself with this naming
…rgeting non-master branches. This is a cherry-pick of #7110
// it sends ExistenceFilter messages. Some day the emulator _may_ | ||
// implement this logic, at which time this short-circuit can be | ||
// removed. | ||
if (USE_EMULATOR) { |
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.
can we remove the (USE_EMULATOR ? it.skip : it)(
on line 2071, since we are passing the test here if it is emulator?
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.
Instead of skipping the entire test I made a modification later on in the test to ignore the erroneous snapshot when the query is resumed. With that, the test can run, and pass, against the emulator. It doesn't really test much, but it at least tests what it can.
@@ -192,7 +192,7 @@ export async function withTestDbsSettings( | |||
} | |||
|
|||
try { | |||
await fn(dbs); | |||
return await fn(dbs); |
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.
If we return here, can it go to the finally
block?
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.
Yes, it will still execute the finally
block.
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.
LGTM
Update the integration test for the bloom filter to also verify that Watch specified a bloom filter that could be used to avert the full requery.
Googlers see b/271205722 for more details.
Ported to Android in firebase/firebase-android-sdk#4768.