35 Commits
Author SHA1 Message Date
Yifan YangandGitHub fcf49b5007 Update the URL for the Metric Service (#8261)
The custom domain "firebase-sdk-health-metrics.com" currently
associated with the Metric Service will be deprecated eventually,
due to the acquisition of Google Domains by Squarespace.

Switching to the original URL created by Google Cloud Run (which
hosts the Metric Service) to avoid service disruption.

See b/303931111 for more details.
2024-07-01 11:00:41 -07:00
Yifan YangandGitHub 46fdeedb35 Resolve warnings on GitHub Actions (#6104) 2022-03-31 13:34:25 -07:00
Yifan YangandGitHub d2ae69766e [bundle-size][firestore] Refine bundle definition (#5773) 2021-12-03 17:32:49 -08:00
Yifan YangandGitHub 09035db4a5 [bundle][storage] Refine bundle definition (#5780) 2021-12-03 16:48:42 -08:00
Yifan YangandGitHub 9028acf646 [bundle-size][database] Refine bundle definition (#5772) 2021-12-03 16:44:43 -08:00
Yifan YangandGitHub 4bec357fd9 [bundle-size][auth] Refine bundle definition (#5765) 2021-12-03 16:43:58 -08:00
Yifan YangandGitHub a3deaf3b80 Add GHA workflow for submitting tags to metric service. (#5602) 2021-11-12 15:16:09 -08:00
Yifan YangandGitHub 9ff01d1ad2 Add bundle definitions and its measurement script. (#5706) 2021-11-12 08:54:42 -08:00
Yifan YangandGitHub 6259519b46 Migrate to the new GCP action for setting up gcloud. (#5198) 2021-07-23 17:06:31 -07:00
Yifan YangandGitHub 694370237c Increase v8 heap size to 4GB for health metric tests. (#4908) 2021-05-14 16:28:17 -07:00
Yifan YangandGitHub 0fb11db9a0 Align comments in example code snippets. (#4436) 2021-02-09 11:04:14 -08:00
Yifan YangandGitHub aa82d70e66 Refactor binary size script. (#4399)
Fixes the issue where the size job fails silently on CI due to unhandled promises.
2021-02-05 18:36:32 -08:00
Yifan YangandGitHub f799558b28 Adjust to new size anslysis implementation that returns 200 (OK) for success. (#4300) 2021-01-15 11:22:56 -08:00
Yifan YangandGitHub 7f5e31392a Remove duplicate dependency. (#3673) 2020-08-24 11:25:03 -07:00
Yifan YangandGitHub 5c073e9e57 Disable health-metrics test in pull requests from forked repo. (#2819) 2020-03-30 10:53:22 -07:00
Yifan YangandGitHub 259222b3ae Include branch information in metrics uploading. (#2821) 2020-03-30 10:37:05 -07:00
4200b02674 Report binary size metrics on GitHub pull requests. (#2744)
* size presubmit check

* add missing semicolons

* report github action url

* Upload size report to the metrics service.

* Cosmetic change.

* get size without comments and whitespaces for NPM scripts (#2777)

* get size without comments and whitespaces for NPM scripts

* use single quotes

* update lock file

Co-authored-by: Feiyang1 <[email protected]>
Co-authored-by: Feiyang <[email protected]>
2020-03-24 09:37:15 -07:00
Yifan YangandGitHub f03cc968b8 Replace database tests that hit production with emulator test. (#1540)
* Replace current database test that hits production with emulator test.

* Adjust emulator startup wait time to 30s normally, and 100s when on Travis.
2019-02-22 13:20:53 -08:00
Yifan YangandGitHub 5c8c1ff7bb Do not print duplicate error messages to stdout. (#1468)
* Do not print duplicate error messages to stdout.

* Upgrade to latest lerna version (v3.10.5).
2019-01-18 10:32:10 -08:00
Yifan YangandGitHub 1176a372e9 Upgrade yarn from v1.10.1 to v1.13.0. (#1481) 2019-01-17 12:33:43 -08:00
Yifan YangandGitHub 78c5891a91 Consolidate mocha configurations into config file. (#1469)
* Consolidate mocha configurations into config file.
2019-01-16 13:47:35 -08:00
Yifan YangandGitHub 12a1299090 Change downloaded emulator file mode to 'rwxr-xr-x'. (#1465)
* Change downloaded emulator file mode to 'rwxr-xr-x'.

The firestore emulator binary file cannot be started by 'java -jar' with
permission 'rw-r--r--' on Google corp workstation (Debian). The reason
why we didn't notice this before is that the emulator can run on macbook
(macOS Mojave) and Travis VM (Ubuntu Trusty) perfectly without this
change though.

* Add comments explaining the change of file permission.
2019-01-09 16:35:16 -08:00
Yifan YangandGitHub cae895d873 Upgrade firestore emulator version to v1.2.3. (#1454) 2019-01-04 15:09:22 -08:00
Yifan YangandGitHub b2c98b6a76 Add code for managing emulators and running database/firestore emulator tests via yarn commands. (#1435)
Refactor code for managing database/firestore emulators.

Add yarn commands for running database/firestore tests with their emulators.
2018-12-20 15:00:53 -08:00
Yifan YangandGitHub 8d7760c71f Enable database test with local emulator. (#1414)
* Fix flaky database transaction test. (#1408)

* Change getFreshRepo() to only take a path, and use the DATABASE_URL constant. (#1410)

* Enable Database SDK test with local emulators.

* Address review feedback.

* Address review comments.

* Make whether to use emulator depend on whether env variable for emulator port is present or not.

* Address pr feedback.
2018-12-06 17:38:15 -08:00
Yifan YangandGitHub 50aaacb430 Upgrade mocha version to 5.2.0 in all packages. (#1375)
We are trying to consolidate flags passed to mocha test
into mocha.opts (a mocha config file). In order for mocha
to support comments in this file, mocha needs to be upgraded
to its latest version (5.2.0 as of 11/09/2018).
2018-11-20 13:49:00 -08:00
Yifan YangandFeiyang 7e0882b660 Lockdown the version of yarn to 1.10.1 in our Travis environment. (#1351)
The latest yarn (1.12.1 as of Nov 1st) appears to hang the CI build.
2018-11-01 16:32:07 -07:00
Yifan YangandGitHub c12ccb137b Merge pull request #894 from firebase/yifany-browser-version
Update Chrome and Safari version in cross-browser test.
2018-06-01 15:47:50 -07:00
Yifan Yang 7b9b851b3c Allow failures from SauceLabs tests. 2018-06-01 14:08:41 -07:00
Yifan Yang 0934b683fe Update Chrome and Safari version in cross-browser test. 2018-06-01 13:31:04 -07:00
Yifan YangandJosh Crowther 71996f50ff Saucelabs (#795)
* Enable WebSocket transport and disable karma retry.

* Reduce karma log verbosity.

* Enable database and firestore saucelabs test.

* fix

* Enable database and firestore tests on multi-browsers including IE11.

* Make test of database and firestore non-blocking due to their flakiness.
2018-05-22 14:48:23 -07:00
Yifan YangandJosh Crowther 4af444709e Enable IE11 testing on SauceLabs. (#821)
* Enable IE11 testing on SauceLabs.

* Use babel preset env instead of plugins.
2018-05-16 15:40:11 -07:00
Yifan YangandJosh Crowther 61cc680562 Skip deployment if it is not master build in main repo. (#685) 2018-04-13 16:26:54 -07:00
Yifan YangandJosh Crowther 9e024e23e0 Fix deployment procedures. (#682)
Install stage was mistakenly set to be skipped by PR #674.
2018-04-12 19:24:39 -07:00
Yifan YangandJosh Crowther 17918656ea Expand browsers support (#674)
* Add karma config for running all tests with SauceLabs.

IE11 is not supported due to the compatibility issue. It will be
enabled once the issue is resolved.

Currently these tests are excluded for saucelabs testing:

  'packages/database/*',
  'packages/firestore/*',
  'packages/messaging/*',
  'integration/firestore/*',
  'integration/messaging/*'.

Database and firestore tests appear to be flaky on saucelabs and
tend to take much longer time than running in local browsers. Message
tests use service worker functionality which is not supported by Safari
and Edge currently. They will be included later on when these problems
are resolved.

* Group Travis jobs for different test commands into one test stage.

Deployment starts only after all jobs in test stage have succeeded.

* Add karma Firefox launcher to each applicable package.

In case of a pull request build on Travis where saucelabs testing
is not available, tests will run locally in Chrome and Firefox on
Travis VMs instead.

https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions

* fix nit
2018-04-12 15:35:42 -07:00