Граф коммитов

222 Коммитов

Автор SHA1 Сообщение Дата
dschom 12779b14ee
bug(CI): test-content-server-remote must not have parameters
Because:
- We cannot add parameters to job triggered through circleci's API

This Commit:
- Removes parameters from the `test-content-server-remote` job
2022-12-22 10:15:55 -08:00
Valerie Pomerleau 499a41a410
refactor(l10n): Ensure shared FTL strings not duplicated on Pontoon
Because:

- Concatenating shared FTL strings into multiple packages before sending for localization created duplication of localization work, and we want each string to only be translated once.

This commit:

- Remove concatenation of shared files (branding.ftl, fxa-react ftl files) from grunttasks
- Add grunttasks in fxa-react to concatenate fxa-react FTL files into one react.ftl file
- Add grunt to fxa-react dev dependencies
- Update fxa-react scripts to run l10n and ftl tasks
- Update clone-l10n script to distribute react.ftl to packages
- Bundle branding and shared into AppLocalizationProvider

Closes #FXA-6388
2022-12-08 15:45:34 -08:00
Dan Schomburg 26bfd5bf07
Merge pull request #14578 from mozilla/fix-firestore
task(pm2): Fix firefstore startup failure
2022-12-01 11:39:05 -08:00
dschom fa4ac145b6
task(pm2): Fix firefstore startup failure
Because:
- Something in the 'latest' tag on the firestore image is preventing startup

This Commit:
- Rolls back to a known good tag
2022-12-01 11:04:35 -08:00
Barry Chen b04f0d7118
chore(l10n): fix clone script for masOS post-Ventura
Because:
 - `realpath` is now in macOS but it does not have a `-m` option

This commit:
 - add minimal extra check for the `-m`
2022-11-28 11:22:26 -06:00
Valerie Pomerleau d79c30d50a
feat(l10n): Split payments-server single FTL file into per-component files
Because

* Organizing l10n strings in per-component files aligns payments-server with the setup used for auth-server and settings. Splitting the FTL files also improves maintability by more tightling coupling the strings with the components where the strings are used.

This commit

* Create a temporary branding file in fxa-payments-server/src
* Create a gruntfile with tasks for FTL concatenation and watching
* Rename the destination file from main.ftl to payments.ftl
* Switch payments-server's default locale from en-US to en and update all references of en-US to en
* Create individual FTL files per component and move messages to their respective component FTL file
* Add a l10n entry in the package readme
* Update clone-l10n.sh to copy 'payments' ftl files instead of 'main'
* Update AppLocalizationProvider to use 'payments' bundles
* Replace setupFluentLocalizationTest with getFtlBundle/getFtlFromPackage from fxa-react
* Remove setupFluentLocalizationTest function (no longer used in fxa-settings)
* Add merge-ftl:test task to package.json start and test:frontend scripts
* Remove legacy strings from FTL files
* Update currency and date formats to use 'en' as default locale
* Remove legacy paths from .gitignore files in payments-server
* Move remaining paths to global .gitignore
* Delete .gitignore files in payments-server

Closes #FXA-5996 and #FXA-6255
2022-11-09 13:26:40 -08:00
dschom 1ab4ba501b
task(shared): Fix docker network error with otel
Because:
- When starting tracing with open telemetry the network name would sometimes collide and result in error.

This Commit:
- Sets an 'fxa' network name
- Applies this network to services
- Allows services to communicate by their names
2022-11-04 16:22:11 -07:00
Reino Muhl 4b11cd35fc
Merge pull request #14264 from mozilla/fxa-5100-pull-legal-pdfs
feat(scripts): pull pdfs from legal-docs
2022-10-21 12:49:47 -04:00
Reino Muhl 9fc1193385
feat(scripts): pull pdfs from legal-docs
Because:

- We need to pull the latest pdfs from legal-docs into the fxa
  assets folder.

This commit:

- Create a script to copy the latest pdfs into assets/legal.
- Create a Github Action to automatically pull in the pdfs from
  legal-docs, and open a pull request to move pdfs into assets/legal.

Closes #fxa-5100
2022-10-20 18:22:29 -04:00
Ben Bangert ecb1a7f5ea
fix: tweaks for test all to pass
Because:

* Test all didn't run in parallel to take advantage of more cores and
  a few older tests were flakey.
* Tests would hang as packages had a default test that was in watch
  mode.

This commit:

* Updates several flakey tests and runs the test all in parallel for a
  shorter completion time.
* Updates settings and payment-server packages to have new watch command
  and deafult test command that runs the tests.

Closes #FXA-6096
2022-10-18 15:26:45 -07:00
Ben Bangert 41d19078b1
fix(auth): test for proper mysql response
Because:

* We updated the local mysql to a version that doesn't pass auth-server
  tests.

This commit:

* Drops the local mysql to a version that the test passes.

Closes #FXA-6068.
2022-10-12 12:19:49 -07:00
dschom bdcd59ff70
task(content): Add support for tracing on client side
Because:
- We want to start trace capture at client side
- We can't report trace data directly to cloud trace

This Commit:
- Adds support for client side tracing in tracing/browser-tracing.ts
- Some refactors to fxa-shared/tracing to ensure code is reused
- Cleans up tests
- Introduces traceparent header and tracestate html headers
- Opens up OTLP ports on jaeger
- Introduces a clientName to trace config
- Adds an open telemetry collector service (otel-collector)
- Uses this services for all trace capture
- Adds flow id to trace id headers so traces can be validated
2022-10-11 16:00:03 -07:00
dschom 923bbf6e00
task(content): Add support for tracing on client side
Because:
- We want to start trace capture at client side

This Commit:
- Adds support for client side tracing in tracing/browser-tracing.ts
- Some refactors to fxa-shared/tracing to ensure code is reused
- Cleans up tests
- Introduces traceparent header and tracestate html headers
- Opens up OTLP ports on jaeger
- Introduces a clientName to trace config
2022-10-10 14:14:32 -07:00
Reino Muhl 6d3dcc8140
docs(legal): upload sub services legal docs
Because:

- Subscription Services is prepareing for initial release

This commit:

- Adds initial set of Subscription Services legal documents.

Closes #FXA-6036
2022-10-05 13:12:56 -04:00
Reino Muhl 580f888bd0
docs(legal): upload hubs legal docs
Because:

- Hubs is preparing for initial release

This commit:

- Adds initial set of hubs legal documents

Closes #
2022-09-22 09:26:44 -04:00
dschom e8ae3388d0
fix(infrastructure): Improve Jaeger startup behavior
Because:
- When not enabled Jaeger was exiting with an 'error' status which was confusing.

This commit:
- Adjust infrastructure.config.js so that Jaeger exists cleanly with a 'stopped' status.
- Reports a better log message so that it's clear Jaeger is not required to run FxA.
2022-09-07 16:29:49 -07:00
dschom f14a2dc923
task(auth): Enable open telemetry on auth server
Because:
- We want to be able to see trace information
- We want to be able to export trace information to google cloud

This Commit:
- Adds utility class to fxa-shared for configuring and initializing open telemetry
- Initializes open telemetry in the auth server
- Forces resolution of google-gax.
- Forces resolution of @grpc/grpc-js.
- Adds the jaeger docker container for viewing traces locally. This is accessible on localhost:16686.

Note, adding @google-cloud/opentelemetry-cloud-trace-exporter resulted
in a version conflicts for google-gax and @grpc/grpc-js, which caused
runtime failures when interacting with @google-cloud/firestore. After
many experiments, this seems to do the trick.
2022-09-02 17:54:41 -07:00
Julian Poyourow ec67ad4d63
chore(db): development mysql version
Because:
MySQL version 8.0.29 was pulled by MySQL due to a critical issue (see here: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-29.html) and is no longer available for download. Attempting to run the _scripts/mysql.sh file will fail due to the lack of any 8.0.29 tag (https://hub.docker.com/r/mysql/mysql-server).

This commit:
Bumps MySQL to 8.0.30 as recommended by MySQL here https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-29.html.

Closes: no corresponding issue
2022-08-22 20:47:05 -07:00
Bianca Danforth b39c91b7d0
fix(scripts): don't remove first line of 'yarn workspaces list' output
Because:
- Some affected packages were not being compiled

This pull request
- Includes the first line output by 'yarn workspaces list', so that the package is included in subsequent checks.

[skip ci]
2022-08-18 17:15:23 -04:00
Barry Chen af4c552523
Merge pull request #13778 from mozilla/l10n_main
chore(l10n): replace references to master with main in l10n automation
2022-07-29 13:48:30 -07:00
Francesco Lodolo b8d38f30e4
chore(l10n): replace references to master with main in l10n automation
Because:

* The fxa-content-server-l10n is still using master as default branch, and we want to update it to main.

This commit:

* Updates references from master to main in automation
* Fixes or removes master references in docs
* Fixes a few typos
2022-07-28 07:13:55 +02:00
Barry Chen 544e8b0b3b
chore(db): upgrade to mysql 8 for local dev
Because:
 - we want to upgrade to mysql 8

This commit:
 - upgrade mysql for local dev
 - start mysqld with default auth set to native password for backwards
   compat with the 'mysql' module
2022-07-21 09:07:51 -05:00
Bianca Danforth ddba42afd4
chore(all): run TS compiler as part of test-many job
Because:

* We should be informed about TS errors before a patch merges into main.

This commit:

* Adds a new script to run as the first task in the test-many job that compiles any modified back-end Typescript packages and any packages that depend on them.

Closes #12823

Co-authored-by: Barry Chen <bchen@mozilla.com>
2022-06-15 08:11:16 -04:00
郭佳慧 1d5d90db81
Update syncserver.sh
remove http://
check-url.sh would add http. so no need http in here.
2022-06-02 19:50:36 +08:00
Vijay Budhram 00198a053c
fix(configs): Do a clean install of fxa-auth-client when doing `yarn install` 2022-05-27 14:49:33 -04:00
Florian Dieminger 2ec2261a81
add mdn plus legal docs (#11955)
- updating the legal-md-to-pdf script
- adding English terms and privacy for mdn plus
2022-02-16 09:36:55 -06:00
Wil Clouser 119f0c8a7f
refactor(scripts): removing old unused scripts
Because:

* `gh-pages.sh` and `upload-assets-to-cdn.sh` are no longer used

This commit:

* removes them.  Once this lands I will update the documentation as
well.
2022-01-24 09:21:04 -08:00
Danny Coates 50e124b518
feat(services): remove fxa-auth-db-mysql, fxa-email-event-proxy, and fxa-email-service
and fxa-metrics-processor
2022-01-13 16:23:22 -08:00
Danny Coates dfb1cd9517
feat(event-broker): wire up events from auth-server through event-broker to webhooks in local dev 2021-12-15 16:00:50 -08:00
Jody Heavener 0c7eb471f0
fix(admin-server): move ts-morph to dependencies (#11240)
* fix(admin-server): move ts-morph to dependencies

* chore(ci): add pm2 logs to playwright test artifacts

* chore(ci): add startup waits to auth, profile, gql

* chore(ci): extend check-url.sh timeout

* chore(ci): use large instance for playwright tests... debugging

Co-authored-by: Danny Coates <dannycoates@gmail.com>
2021-12-03 17:10:25 -08:00
Danny Coates 1ea7fdd312
chore(dev): wait for containers on 'yarn start' (#11119)
On M1 we currently sometimes need to 'yarn restart services' after a 'yarn start' before things start working. Maybe if we wait for the containers to be responsive before starting services we can avoid this. The important one seems to be mysql.
2021-11-22 16:58:30 -08:00
Danny Coates 833326ad59
feat(tests): implement prod smoke tests in playwright
There's an ADR for why Playwright
2021-11-17 10:19:19 -08:00
Danny Coates c14d4aac4e
feat(metrics): filter backbone metrics when opted-out (#10832)
closes #9083
2021-10-27 11:51:39 -07:00
Barry Chen 8f23a2c787
chore(assets): update subscriptions legal docs 2021-10-25 11:19:49 -05:00
Danny Coates 45a399e8cf
feat(dev): add firebase emulator ui visit http://localhost:9299 2021-10-15 16:48:06 -07:00
Danny Coates a95f1270af
refactor(build): use esbuild instead of ts-node (#10639) 2021-10-07 09:57:36 -07:00
Jody Heavener f17a4fa121
chore(auth): set up auth server to generate dist FTL file, clone/import existing FTL locales
Because:

- We want to be able to generate a single FTL file for fxa-content-server-l10n to pick up
- We want to be able to pull in existing auth locales from fxa-content-server-l10n

This commit:

- Adds a new grunt task for generating a single FTL file, placing it in a location fxa-content-server-l10n will find it
- Updates the clone-l10n script to check for auth server locales in the fxa-content-server-l10n repo
2021-09-14 09:40:45 -03:00
Danny Coates 9e78144188
refactor(db): created a new package for all db migrations
In order to decomission fxa-auth-db-mysql we need a new place for its migrations. Since we've also got other dbs and migrations scattered around, now is a good opportunity to bring them all together since they don't live in separate repos anymore.

In local dev the patcher now runs as part of the mysql docker process startup.
2021-09-08 13:10:38 -07:00
Barry Chen dec5c97f8f
Merge pull request #7769 from eNote-GmbH/feature/improved-download-l10n
Enhance L10N handling
2021-04-06 11:03:29 -05:00
Barry Chen d51624babf
chore(legal): update downloadable VPN legal docs 2021-03-29 10:48:08 -05:00
Michael Kane Juncker f2900398ac
Enhance L10N handling to allow commit pinning at build time and local copy support
This refactoring fixes checkout of the official L10N Git repository by using the
existing environment variable FXA_L10N_SHA. By default, the commit history depth
for checkout into a specific commit is set to 1000 but can be increased with
environment variable FXA_L10N_DEPTH.

New features include:
* checkout a different repository (e.g. a fork) with variable FXA_L10N_REPO
* checkout a branch other than "master" with variable FXA_L10N_BRANCH
* symlink to an existing local checkout instead with variable FXA_L10N_COPY_FROM
* clone to/link from a different in-package directory with variable FXA_L10N_DOWNLOAD_PATH
* skipping the clone/update with variable FXA_L10N_SKIP

Current behavior is retained, the default values for the above variables are:

FXA_L10N_REPO          = https://github.com/mozilla/fxa-content-server-l10n.git
FXA_L10N_BRANCH        = master
FXA_L10N_COPY_FROM     = <empty>
FXA_L10N_DOWNLOAD_PATH = fxa-content-server-l10n
FXA_L10N_SKIP          = <empty>

Closes: #7767
2021-03-26 19:37:53 +01:00
lesley b635856266
Revert Mozilla VPN legal docs file pattern 2021-03-11 11:52:04 -06:00
lesleyjanenorton 780d604cba
Update legal-md-to-pdf.sh script and add resulting localized PDFs. 2021-03-09 15:09:36 -06:00
Dave Justice 8948be2535
Merge pull request #7077 from mozilla/6902-legal-doc-restructuring-adjustments
task(fxa-content-server): account for legal-docs new format
2021-02-09 15:03:17 -05:00
Dave Justice f4597eaa0a
task(fxa-content-server): account for legal-docs new format
- update scripts to account for legal-docs repo changes coming in
https://github.com/mozilla/legal-docs/tree/restructure
2021-02-09 19:45:23 +00:00
Barry Chen 37887cf115
chore(l10n): combine the download l10n scripts
Because:
 - we have multiple similar scripts that pull translations from the
   fxa-content-server-l10n repo
 - we need that functionality for new settings

This commit:
 - combine the scripts into a single one
2021-02-08 12:51:42 -06:00
Danny Coates 3f4b700cf4
chore(deps): bump local mysql docker to 5.7 2021-01-22 12:03:25 -08:00
Michael Kane Juncker 2130334955
Fix base-docker.sh to print out errors logs from yarn install 2021-01-15 13:10:23 +01:00
Michael Kane Juncker 3c978d9d00
Allow environment variable customizations in Docker builds - refs #7118 2021-01-07 14:44:10 +01:00
Michael Kane Juncker a8e4f00151
Dump npm logs to console in Docker builds for troubleshooting 2021-01-07 14:39:42 +01:00