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

192 Коммитов

Автор SHA1 Сообщение Дата
Julian Poyourow d07236bcd8
chore(build): upgrade nx to v16
Because:

* Nx released v16!

This commit:

* Upgrades Nx to v16 using `nx migrate`

Closes FXA-7622
2023-06-01 13:21:44 -07:00
dependabot[bot] f3a2814557
chore(deps-dev): bump stylelint-config-recommended-scss
Bumps [stylelint-config-recommended-scss](https://github.com/stylelint-scss/stylelint-config-recommended-scss) from 11.0.0 to 12.0.0.
- [Release notes](https://github.com/stylelint-scss/stylelint-config-recommended-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-config-recommended-scss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-config-recommended-scss/compare/v11.0.0...v12.0.0)

---
updated-dependencies:
- dependency-name: stylelint-config-recommended-scss
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-24 07:05:46 +00:00
Julian Poyourow 565ebb89c9
chore(build): initial nx implementation
Because:

* We want to introduce nx to the repository

This commit:

* Adds nx with working builds

Closes: FXA-7341

Co-authored-by: dschom <dschomburg@mozilla.com>
2023-05-23 08:37:47 -07:00
Barry Chen 2c0d552881
Merge pull request #15317 from mozilla/dependabot/npm_and_yarn/stylelint-15.6.2
chore(deps-dev): bump stylelint from 15.2.0 to 15.6.2
2023-05-17 07:56:38 -05:00
dependabot[bot] 68fd60d980
chore(deps-dev): bump stylelint-config-recommended-scss
Bumps [stylelint-config-recommended-scss](https://github.com/stylelint-scss/stylelint-config-recommended-scss) from 8.0.0 to 11.0.0.
- [Release notes](https://github.com/stylelint-scss/stylelint-config-recommended-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-config-recommended-scss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-config-recommended-scss/compare/v8.0.0...v11.0.0)

---
updated-dependencies:
- dependency-name: stylelint-config-recommended-scss
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-17 07:04:21 +00:00
dependabot[bot] 2038d18559
chore(deps-dev): bump stylelint from 15.2.0 to 15.6.2
Bumps [stylelint](https://github.com/stylelint/stylelint) from 15.2.0 to 15.6.2.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/15.2.0...15.6.2)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-17 07:02:56 +00:00
Barry Chen cc75ad3372
chore(deps): upgrade mocha in eslint-plugin-fxa
This commit also resolves `flat` in pm2's dependency graph to a newer
version.
2023-05-15 09:01:16 -05:00
Barry Chen 4a0ca7e040
Merge pull request #15104 from mozilla/fxa-5186-local-eslint-fxa
chore(lint): move eslint-plugin-fxa into the monorepo
2023-04-06 13:03:24 -07:00
Barry Chen b6b445cd6d
chore(lint): move eslint-plugin-fxa into the monorepo
Because:
 - we don't want to maintain the fxa eslint plugin in another repo

This commit:
 - move the plugin into the monorepo

Co-authored-by: Peter deHaan <peter@deseloper.com>
2023-03-29 11:30:03 -05:00
Barry Chen 218b49e88b
Revert "chore(lint): move eslint-plugin-fxa into the monorepo" 2023-03-28 12:47:03 -07:00
Barry Chen 5b09bdf667
Merge pull request #15073 from mozilla/fxa-5186-local-eslint-fxa
chore(lint): move eslint-plugin-fxa into the monorepo
2023-03-28 10:51:15 -07:00
dschom b843d2bb94
task(settings): Move legal doc query to gql
Because:
- We want to move our legal doc query to the server side so it can be made with a single call.

This Commit:
- Changes to clone script:
  - Use the provided state.json provided by l10n repo
  - Moves download to external folder
- Changes to settings:
  - Use gql to fetch legal doc
- Changes to gql
  - Adds ability to resolve a legal document.
2023-03-27 18:02:43 -07:00
Barry Chen fbb5f0f5bc
chore(lint): move eslint-plugin-fxa into the monorepo
Because:
 - we don't want to maintain the fxa eslint plugin in another repo

This commit:
 - move the plugin into the monorepo

Co-authored-by: Peter deHaan <peter@deseloper.com>
2023-03-22 16:12:11 -05:00
dependabot[bot] 1c1c325b2e
chore(deps): bump pm2 from 5.2.2 to 5.3.0
Bumps [pm2](https://github.com/Unitech/pm2) from 5.2.2 to 5.3.0.
- [Release notes](https://github.com/Unitech/pm2/releases)
- [Changelog](https://github.com/Unitech/pm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Unitech/pm2/compare/5.2.2...5.3.0)

---
updated-dependencies:
- dependency-name: pm2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 17:18:31 +00:00
Barry Chen a5dad11653
Merge pull request #14985 from mozilla/FXA-6314-node18
chore(deps): upgrade to node.js 18
2023-03-20 12:28:27 -07:00
Barry Chen da11e63832
chore(deps): upgrade to node.js 18
Because:
 - we want to use the latest node LTS major version

This commit:
 - upgrades FxA to use node 18, with two workarounds
   - Webpack uses a hash algorithm that's no longer supported by default
     in node 17+, causing build failures; --openssl-legacy-provider is
     used as the workaround
   - dns.lookup in node 17+ by default returns the results in the same
     order as they are from the resolver, which could lead to
     'localhost' resolving to ::1; --dns-result-order=ipv4first is used
     as the workaround
2023-03-20 13:28:10 -05:00
dependabot[bot] af28197687
chore(deps): bump lint-staged from 13.1.3 to 13.2.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.1.3 to 13.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/commits/v13.2.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 18:09:30 +00:00
dschom 76ad8cb534
task(many): Fix issues with l10n:clone failing on postinstall
Because:
- We are hitting race conditions using postinstall
- If two packages invoke l10n:clone at the same time in their post install git will error out

This Commit:
- Adds a git checkout hook, so the l10n folder is regularly updated
- Remove l10n:clone and l10n:prime commands from the post install
- Moves the l10n:prime command into build and tests commands
- Adds clean script so blank slates can be tested locally
- Adds respective l10n-bundle and l10n-prime scripts per workspace
- Moves the creation of the git-head.txt to the prime step and avoids creating an change on the l10n repo

Co-authored-by: Peter deHaan <peter@deseloper.com>
2023-03-20 11:23:00 -05:00
Meghan Sardesai 5eee424611
Revert "Train 254.2" 2023-03-16 17:00:51 -04:00
dschom 0d828216d3
fix(ci): Don't clone on postinstall create lists after base install. 2023-03-15 17:01:21 -07:00
dschom 1d709000fe
task(many): Only clone l10n once and combine ftl files.
Because:
- We want to avoid redundant git clone operations
- We want to reduce the number of ftl bundles requested on the client side.

This Commit:
- Adds _scripts/l10n/*.sh for conducting l10n build operations
- Bundles ftl files together into ftl main
- Removes bundle prop on AppLocalizer, so that it uses the default, [main.ftl]
- Replace - with _ in locale names when resolving ftl files
- Removes clone-l10n.sh
2023-03-15 11:30:44 -07:00
dependabot[bot] 4a20611e1a
chore(deps): bump eslint-plugin-jest from 27.1.3 to 27.2.1
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.1.3 to 27.2.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v27.1.3...v27.2.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-10 07:01:36 +00:00
Barry Chen cd4a550fac
Merge pull request #14961 from mozilla/dependabot/npm_and_yarn/lint-staged-13.1.2
chore(deps): bump lint-staged from 13.0.3 to 13.1.2
2023-03-06 07:06:12 -08:00
dependabot[bot] 3ed94eb197
chore(deps): bump lint-staged from 13.0.3 to 13.1.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.0.3 to 13.1.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.0.3...v13.1.2)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 07:15:20 +00:00
dependabot[bot] 551f164e57
chore(deps-dev): bump stylelint from 14.14.0 to 15.2.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 14.14.0 to 15.2.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/14.14.0...15.2.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 07:05:02 +00:00
dependabot[bot] 96a9900a96
chore(deps-dev): bump eslint-plugin-react from 7.31.10 to 7.32.2
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.31.10 to 7.32.2.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.31.10...v7.32.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 18:34:45 +00:00
Julian Poyourow cdd25a2e71
feat(auth): geoip, parallelization for automatic tax
Because:

* We need to geoip before saving the customer rather than using their IP
  address with Stripe directly.
* Parallelization speeds up the conversion process significantly

This commit:

* Geocodes IP addresses prior to saving using fxa-geodb.
* Adds parallelization with rate limiting.
* Writes results to output CSV.

Closes FXA-6581
Closes FXA-6810
2023-02-28 14:33:57 -08:00
dschom a620922422
task(CI): build, unit test, and integration test jobs
Because:
- We wanted to run a few preliminary checks before proceeding to more
  expensive CI jobs. Checks include:
    - Compiling typescript in commonly referenced workspace packages
    - Linting code that has changed
    - Executing Unit Tests for code that has changed
- We wanted to partition test operations into unit tests, and
   integration tests. Unit tests can be run relatively quickly and
   require no additional infrastructure. Integration tests require
   additional infrastructure and generally have longer execution
   times. Now that jobs are blocked from running until preliminary
   checks pass, one of which is unit tests, it is important to draw a
   distinction between these two types of tests.
- We want to avoid unnecessary yarn installs and typescript
  compilations, which are time consuming.
- We want to make sure that test results are published and failing tests
   can be easily viewed in the CI.

This Commit:

- Creates a build-and-validate job in the CI that builds, lints, and
  unit tests code prior to running any other jobs.
- Creates unit-test job in CI config
- Creates integration-test job in CI config
- Removes redundant calls to compile workspace packages. These
  are now built up front, cached, and restored as needed for future
  runs.
- Extends the create-lists script functionality to generate commands
  that can be executed with the parallel command.
- Removes unnecessary yarn install operations. Invoking yarn workspace
   focus results in a yarn install. In the case of running tests this is largely
   unnecessary, because we already do a yarn install in the base-install
   step.
- Make sure test results are exported as junit xml so the CI can report
  back on tests that were failing. This was done for a couple workspace
  packages, but many were lacking the capability. All test:unit and
  test:integration npm scripts now export this data.
- Fixes the following issues encountered along the way:
        - Adds logs to monitor heap usage of jest tests. Some
          jest tests are still using a lot of memory.
        - Moves a few slow / long running tests from unit test to
          integration tests.
        - Ensures that jest.transform for ts-jest is always instructed
           to have the config option isolateModules is set to true. This
           definitely decreases memory overhead and resolves some
           of the OOM errors we were hitting. It was configured in
           some places but not everywhere.
        - Exports test results files for all tests
        - Exports all test artifacts
        - Uses gnu parallel to run tests in parallel. Turns out yarn
          workspaces foreach would give a false positive when an OOM
          was encountered. Fortunately, the parallel command offered an
          acceptable work around, and even offers some nice features
          like the load argument, which allows to control test execution a
          bit more efficiently.
2023-01-10 12:52:01 -08:00
dschom acf3c82590
task(ci): Use docker base image
Because:
- We want to speed up pipeline startup.

This Commit:
- Optimizes docker base image builds for the smallest images possible.
- Enables hard links for yarn cache
- Enables global yarn cache
- Avoids needlessly installing playwright browsers.
- Avoids needlessly running yarn install.
- Uses mozilla/fxa-circleci:ci-base-latest image for running test pipelines
- Uses mozilla/fxa-circleci:ci-base-browsers image for running functional tests pipelines
- Creates configurable executors that can be reused across pipelines
- Upgrades to yarn 3.3.0
- Enabled direct check out of PR code to test, which is faster than circle ci’s checkout command.
- Upgrades functional test to X-Large. This was already the case for playwright tests, but is now extended to content server tests too. This decision was made due to running lots of pipelines and realizing flakiness was largely due to CPU or memory hitting 100% for long periods of time.
- Turns off tracing, since it saves a bit of runtime.
2022-12-15 15:48:16 -08:00
Barry Chen 95cded6e96
chore(typescript): convert more of fxa-shared to TS
Because:
 - there were some JS in fxa-shared in fxa-shared that can be converted
   to TS

This commit:
 - convert some shared JS to TS
2022-11-30 17:31:23 -06:00
Barry Chen 303be33e66
Merge pull request #14485 from mozilla/deps-elliptic
chore(deps): update elliptic
2022-11-17 10:36:59 -06:00
Barry Chen c5c059da59
Merge pull request #14479 from mozilla/deps-node-forge
chore(deps): resolve node-forge to >=1.3.0
2022-11-16 16:59:33 -06:00
Barry Chen b4ec5deb53
chore(deps): update elliptic
Because:
 - elliptic is in the browserid-verifier's dependency tree and it's
   causing security warnings

This commit:
 - resolve elliptic to >= a patched version
2022-11-16 15:29:33 -06:00
dependabot[bot] 14aa97ff94
chore(deps): bump node-fetch from 2.6.1 to 2.6.7
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 20:16:42 +00:00
Barry Chen 614cbfd774
chore(deps): resolve node-forge to >=1.3.0
Because:
 - security alerts

This commit:
 - resolve node-forge to >= the min fixed version
2022-11-16 12:49:54 -06:00
Barry Chen 5212eb6332
chore(deps): resolve to a newer version of plist
Because:
 - xmldom was a dependency of plist, which is a dependency of
   i18n-abide, and xmldom was causing a security alert

This commit:
 - resolve plist to a newer version that does not have the xmldom dep
2022-11-15 15:27:41 -06:00
Barry Chen cf2d25733e
chore(deps): resolve to newer versions of terser
Because:
 - older versions of terser are causing security alerts

This commit:
 - resolve terser to patched versions
2022-11-15 15:11:29 -06:00
Barry Chen e32f03d04f
Merge pull request #14455 from mozilla/deps-underscore
chore(deps): resolve underscore to newer versions
2022-11-15 14:53:19 -06:00
Barry Chen 06ae2ed961
chore(dep): resolve protobufjs to a newer version
Because:
 - some older versions of protobufjs 6.x are causing a security alert

This issue:
 - resolve protobufjs 6.x to a fixed version or newer
2022-11-15 11:45:56 -06:00
Barry Chen d977ecaf58
chore(deps): resolve underscore to newer versions
Because:
 - older versions of underscore is causing security alerts

This commit:
 - resolve underscore to patched versions
2022-11-14 10:33:37 -06:00
Barry Chen cf5bc69d5c
chore(deps): resolve moment to a patched version
Because:
 - older versions of moment are causing security alerts

This commit:
 - resolve moment 2.x to a >= a patched version
2022-11-10 15:44:15 -06:00
Julian Poyourow 872626e663
Merge pull request #14391 from mozilla/FXA-6136
chore(auth-server): enable typescript-eslint
2022-11-04 13:32:25 -07:00
Julian Poyourow 76ef507b26
chore(auth-server): enable typescript-eslint
Because:

* We aren't currently linting TS files in auth-server

This commit:

* Enables and fixes linting issues in auth-server

Closes FXA-6136
2022-11-04 10:43:26 -07:00
Barry Chen 72cbb56d12
Merge pull request #14349 from mozilla/dependabot/npm_and_yarn/replace-in-file-6.3.5
chore(deps): bump replace-in-file from 6.1.0 to 6.3.5
2022-10-28 12:52:43 -05:00
dependabot[bot] 608a3edd35
chore(deps): bump eslint-plugin-jest from 24.5.2 to 27.1.3
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 24.5.2 to 27.1.3.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v24.5.2...v27.1.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-28 06:37:48 +00:00
dependabot[bot] 1ebffd7e48
chore(deps): bump replace-in-file from 6.1.0 to 6.3.5
Bumps [replace-in-file](https://github.com/adamreisnz/replace-in-file) from 6.1.0 to 6.3.5.
- [Release notes](https://github.com/adamreisnz/replace-in-file/releases)
- [Changelog](https://github.com/adamreisnz/replace-in-file/blob/main/CHANGELOG.md)
- [Commits](https://github.com/adamreisnz/replace-in-file/compare/v6.1.0...v6.3.5)

---
updated-dependencies:
- dependency-name: replace-in-file
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-27 15:46:30 +00:00
Vijay Budhram 6941fd4d64
Merge pull request #14341 from mozilla/dependabot/npm_and_yarn/stylelint-config-recommended-scss-8.0.0
chore(deps-dev): bump stylelint-config-recommended-scss from 7.0.0 to 8.0.0
2022-10-27 11:30:45 -04:00
dependabot[bot] 601231d67b
chore(deps): bump pm2 from 5.1.2 to 5.2.2
Bumps [pm2](https://github.com/Unitech/pm2) from 5.1.2 to 5.2.2.
- [Release notes](https://github.com/Unitech/pm2/releases)
- [Changelog](https://github.com/Unitech/pm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Unitech/pm2/compare/5.1.2...5.2.2)

---
updated-dependencies:
- dependency-name: pm2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-26 16:10:38 +00:00
dependabot[bot] 5a2870d716
chore(deps-dev): bump stylelint-config-recommended-scss
Bumps [stylelint-config-recommended-scss](https://github.com/stylelint-scss/stylelint-config-recommended-scss) from 7.0.0 to 8.0.0.
- [Release notes](https://github.com/stylelint-scss/stylelint-config-recommended-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-config-recommended-scss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-config-recommended-scss/compare/v7.0.0...v8.0.0)

---
updated-dependencies:
- dependency-name: stylelint-config-recommended-scss
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-26 14:30:05 +00:00
dependabot[bot] 1941c2717d
chore(deps-dev): bump stylelint from 14.13.0 to 14.14.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 14.13.0 to 14.14.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/14.13.0...14.14.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-26 06:23:38 +00:00