Skip to content

Update spec tests from changes in the firebase-js-sdk respository #1401

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 5 commits into from
Apr 3, 2020

Conversation

dconeybe
Copy link
Contributor

This change picks up changes to the spec tests, especially firebase/firebase-js-sdk#2790, which renamed the "limboDocs" key in the JSON objects to "activeLimboDocs".

@googlebot googlebot added the cla: yes Override cla label Mar 30, 2020
@dconeybe dconeybe requested a review from wilhuff March 30, 2020 20:22
@google-oss-bot
Copy link
Contributor

Coverage Report

Affected SDKs

SDKTypeBase (21f6adf)Head (03107cb)Diff
firebase-firestoreAbstractStream.java0.350.32-0.02 (-6.90%)
Metric Unit: percentage

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage. Report files are located at <product-build-dir>/reports/jacoco/.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 30, 2020

Binary Size Report

Affected SDKs

SDKTypeBase (21f6adf)Head (03107cb)Diff
firebase-inappmessagingapk (aggressive)601333.00601338.00+5.00 (+0.00%)
protolite-well-known-typesapk (aggressive)122384.00122377.00-7.00 (-0.01%)
firebase-segmentationapk (aggressive)1017151.001017134.00-17.00 (-0.00%)
firebase-commonapk (aggressive)82956.0082939.00-17.00 (-0.02%)
firebase-crashlytics-ndkapk (aggressive)1170706.001170704.00-2.00 (-0.00%)
firebase-databaseapk (aggressive)325607.00325613.00+6.00 (+0.00%)
firebase-crashlyticsapk (aggressive)583996.00584013.00+17.00 (+0.00%)
firebase-installationsaar55053.0055056.00+3.00 (+0.01%)
firebase-dynamic-linksapk (aggressive)327444.00327465.00+21.00 (+0.01%)
firebase-installations-interopapk (aggressive)61716.0061714.00-2.00 (-0.00%)
firebase-componentsapk (aggressive)10960.0010959.00-1.00 (-0.01%)
firebase-configapk (aggressive)395817.00395832.00+15.00 (+0.00%)
firebase-datatransportapk (aggressive)116364.00116347.00-17.00 (-0.01%)
firebase-inappmessaging-displayapk (aggressive)1603057.001603064.00+7.00 (+0.00%)
firebase-functionsapk (aggressive)393472.00393469.00-3.00 (-0.00%)
firebase-database-collectionapk (aggressive)313622.00313620.00-2.00 (-0.00%)
baseapk (aggressive)10676.0010678.00+2.00 (+0.02%)
Metric Unit: byte

Test Logs

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM with a question that may be something to address upstream?

}
}
},
"clientIndex": 0
"clientIndex": 1
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the generator isn't generating a stable order among client indexes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll look into this and reply back. There must have been a change between now and November 2019 (4 months ago) that affected this as the spec tests have not been regenerated since then.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update: The culprit is firebase/firebase-js-sdk#2693, discovered by performing a bisection. I'm continuing to investigate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like the change in the spec test is expected; however, in the culprit PR the spec tests for Android (and probably iOS) were not updated accordingly. I will create a separate PR to bring the spec tests up-to-date from the PR so that this PR can encompass only a single update to the spec tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've created a PR, firebase/firebase-js-sdk#2843, to produce stable JSON from generate_spec_json.js. I will hold off merging this PR until that PR is resolved so that a commit with a noisy diff in the spec tests can be limited to one commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update: commit 19ab883 was added to this PR with the stable JSON.

@wilhuff wilhuff assigned dconeybe and unassigned wilhuff Mar 30, 2020
@google-oss-bot
Copy link
Contributor

Coverage Report

Affected SDKs

SDKTypeBase (37721c0)Head (459eaa8)Diff
firebase-firestoreAbstractStream.java0.350.32-0.02 (-6.90%)
Metric Unit: percentage

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage. Report files are located at <product-build-dir>/reports/jacoco/.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 3, 2020

Binary Size Report

Affected SDKs

SDKTypeBase (37721c0)Head (459eaa8)Diff
firebase-segmentationapk (aggressive)1017148.001017155.00+7.00 (+0.00%)
firebase-storageapk (aggressive)325638.00325645.00+7.00 (+0.00%)
firebase-commonapk (aggressive)82954.0082953.00-1.00 (-0.00%)
firebase-crashlytics-ndkapk (aggressive)1170695.001170685.00-10.00 (-0.00%)
firebase-databaseapk (aggressive)325606.00325611.00+5.00 (+0.00%)
firebase-crashlyticsapk (aggressive)583646.00583653.00+7.00 (+0.00%)
firebase-installationsaar56405.0056401.00-4.00 (-0.01%)
firebase-installations-interopapk (aggressive)61703.0061717.00+14.00 (+0.02%)
firebase-componentsapk (aggressive)10949.0010963.00+14.00 (+0.13%)
firebase-abtapk (aggressive)85716.0085723.00+7.00 (+0.01%)
firebase-configapk (aggressive)395836.00395821.00-15.00 (-0.00%)
firebase-datatransportapk (aggressive)116361.00116365.00+4.00 (+0.00%)
firebase-inappmessaging-displayapk (aggressive)1813858.001813862.00+4.00 (+0.00%)
firebase-functionsapk (aggressive)393476.00393459.00-17.00 (-0.00%)
firebase-database-collectionapk (aggressive)313626.00313609.00-17.00 (-0.01%)
firebase-firestoreapk (aggressive)443188.00443178.00-10.00 (-0.00%)
baseapk (aggressive)10680.0010686.00+6.00 (+0.06%)
Metric Unit: byte

Test Logs

@dconeybe dconeybe merged commit f0bda45 into master Apr 3, 2020
@dconeybe dconeybe deleted the dconeybe/UpdateSpecTests branch April 3, 2020 15:14
@firebase firebase locked and limited conversation to collaborators May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants