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

52 Коммитов

Автор SHA1 Сообщение Дата
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
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 9493dd2655
task(ci): Tag unit tests
Because:
- We want to separate unit tests and integrations tests

This Commit:
- Tags all unit tests, i.e. tests that can run without infrastructure and in a fairly short amount of time, with #unit.
- Adds a test:unit npm command to each package
- Adds a test:integration npm command to each package, and adds '#integration' tags to jest tests since jest has no --invert option like mocha.
2022-12-09 17:26:27 -08:00
dependabot[bot] 946cb34a1b
chore(deps): bump express from 4.17.2 to 4.17.3
Bumps [express](https://github.com/expressjs/express) from 4.17.2 to 4.17.3.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.2...4.17.3)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 20:25:51 +00: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] 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
dependabot[bot] cc2621d804
chore(deps-dev): bump stylelint from 14.9.1 to 14.13.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 14.9.1 to 14.13.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.9.1...14.13.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-14 06:14:00 +00:00
dependabot[bot] 98f1a3dda6
chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.3
Bumps [stylelint-config-prettier](https://github.com/prettier/stylelint-config-prettier) from 8.0.2 to 9.0.3.
- [Release notes](https://github.com/prettier/stylelint-config-prettier/releases)
- [Commits](https://github.com/prettier/stylelint-config-prettier/compare/v8.0.2...v9.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-12 06:23:29 +00:00
Peter deHaan 8a2b9d8637
chore(lint): Fix fortress ESLint config 2022-07-13 11:10:12 -07:00
dschom 8dec1ce9ec
fix(fortress): Fix CI tests by temporarily disabling stylelint
Because:
- Stylelint was failing in fortress and blocking release.

This Commit:
- Temporarily removes lint:style from the lint script.
2022-06-22 13:26:55 -07:00
dependabot[bot] e6433d1de6
chore(deps): bump express from 4.17.1 to 4.17.2 (#11509)
* chore(deps): bump express from 4.17.1 to 4.17.2

Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.17.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.17.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): updated yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fxa-bananafox[bot] <70546514+fxa-bananafox[bot]@users.noreply.github.com>
2022-01-05 10:12:32 -05:00
Danny Coates a62532cc50
chore(ci): slow down pm2 startup (#11084)
* feat(cli): add 'yarn delete services' command

sometimes you may want to leave all your DBs running but completely start over with fresh services. The pm2 restart command doesn't fully reset the environment and sometimes that's what you want. Delete lets us remove the service from pm2 so we can start it fresh.

* chore(ci): slow down pm2 startup

I've noticed ci failures where the services don't even get started up completely happening more frequently. During the brief time that circleci showed resource graphs the pm2 startup pegged both cpu and memory. If we wait for the services that have a lot of building at startup to finish before starting the next service maybe we'll have better stability.

* chore(tests): remove support-panel from functional test startup
2021-11-19 11:52:33 -08:00
Danny Coates f57031d152
chore(deps): updated dependencies (#10638) 2021-10-06 15:38:39 -07:00
Danny Coates 89e549a742
chore(deps): update pm2; dedupe (#10557) 2021-09-29 14:01:10 -07:00
Danny Coates 694ff5f6af
chore(deps): update deps and start ignoring @types/* in dependabot 2021-06-23 08:11:07 -07:00
Danny Coates 5d7653fa60
chore(deps): update pm2 / dedupe 2021-06-14 10:12:10 -07:00
Danny Coates fa895572ce
chore(deps): updated some deps 2021-06-08 14:03:22 -07:00
Danny Coates 34704ba146
chore(deps): updated pm2 2021-06-08 13:54:51 -07:00
Danny Coates 6fce48032b
chore(deps): update some deps 2021-05-24 14:42:33 -07:00
Danny Coates 952e4f3885
chore(deps): added "yarn outdated" plugin + updated some deps 2021-05-24 12:44:48 -07:00
Danny Coates 0847e25457
chore(deps): updated pm2 2021-05-03 11:12:40 -07:00
Danny Coates 7cf502be2f
chore(deps): update eslint to v7 2021-01-08 11:45:40 -08:00
Danny Coates 6c2b253c11
chore(deps): update node version to 14 2020-10-27 10:21:05 -07:00
dependabot[bot] 6ecd6a016b
chore(deps): bump client-sessions from 0.6.0 to 0.8.0
Bumps [client-sessions](https://github.com/mozilla/node-client-sessions) from 0.6.0 to 0.8.0.
- [Release notes](https://github.com/mozilla/node-client-sessions/releases)
- [Changelog](https://github.com/mozilla/node-client-sessions/blob/master/ChangeLog)
- [Commits](https://github.com/mozilla/node-client-sessions/compare/v0.6.0...v0.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-19 05:20:22 +00:00
Danny Coates b32addf864
chore(deps): fixed yarn dependency warnings 2020-09-17 13:53:43 -07:00
Danny Coates da2e99729c
chore(deps): update yarn version and root level deps 2020-08-21 17:06:03 -07:00
johngruen 69994084b8
chore(styles): fortress and payments ui improvements 2020-06-30 13:35:36 +02:00
Danny Coates 27cd24c63d
chore(deps): update deps 2020-06-29 10:18:16 -07:00
Danny Coates 3fa9529194
chore(deps): updated dependencies
chore(deps): updated aws-sdk

chore(deps): remove raven and update @sentry/*

chore(deps): updated mysql deps

chore(deps): updated eslint-plugin-fxa

chore(deps): updated bluebird

chore(deps): updated request

chore(deps): use jest 24.9.0 (same as react-scripts)

chore(deps): update convict

chore(deps): update morgan

chore(deps): update eslint-plugin-jest

chore(deps): update babel-eslint

chore(deps): removed nodemon

chore(deps): update @types/convict

chore(deps): set @types/jest to match jest version

chore(deps): set @babel/core to ^7.9.0

chore(deps): set @babel/preset-env to 7.9.0

chore(deps): update hapi
2020-06-22 17:11:50 -07:00
Jared Hirsch 2c5630adbf
chore(pm2): Add ISO timestamp to pm2 log lines 2020-06-17 17:01:16 -07:00
Danny Coates c3780546b6
fix(local-dev): added fxa-shared and fxa-react to pm2
In order to keep the typescript shared modules up to date for their dependents to use while running locally this adds them to pm2 so that a `tsc --watch` can run alongside the other services.

Note, this DOES NOT automatically restart dependent javascript service processes.

This change refactors pm2-all.sh in order to start processes in dependency topological order. This requires an update to most pm2.config.js files in order to set PATH correctly while running under yarn.
2020-06-03 10:05:02 -07:00
Danny Coates cc595fc2b4
chore(format): mass reformat with prettier 2 and single config 2020-05-24 10:51:57 -07:00
Danny Coates 81575019a9
refactor(packages): use workspace references 2020-05-21 10:57:21 -07:00
Jared Hirsch b548779111
fix(deps): Add exception for yargs-parser nsp advisory 1500 2020-05-11 11:40:27 -07:00
johngruen 2dcf49e8d1
chore(subscriptions): make fortress an upgradable sub 2020-05-07 17:59:44 -05:00
Jody Heavener 099163e947
docs(all): update readmes across all packages to improve testing documentation 2020-05-06 12:02:21 -04:00
Danny Coates 4dd0b00076
feat(build): add a default dockerfile template to build.sh
This reduces the boilerplate when all your package
needs is to copy the contents of it's own directory to /app
and a pm2.config.js file exists

To allow more packages to use the default, /fxa-geodb and
/fxa-shared are included in the fxa-node base image.

Custom images can still be made by having a Dockerfile as before.
2020-04-23 07:40:31 -07:00
Danny Coates d4da8a3606
feat(docker): created fxa-builder docker image
This adds a base node image and builder image so
that all our service images can share the same
common base, be smaller, and require less customization.
2020-04-22 16:27:22 -07:00
Danny Coates 1dd1b038d4
refactor(config): replace 127.0.0.1 with localhost
why, after all these years?

because there's a few annoying cases where the loopback
makes dev harder. When you try to test a flow from a not
local machine, like a tv, mobile device, or a saucelabs
proxy session. With localhost it's easy enough to forward
but loopback not so much

enough is enough
2020-04-15 13:55:42 -07:00
Danny Coates 3a054dfc3f
refactor(pm2): restructure our pm2 configs
why: several reasons...

- to have a unified approach and pattern for:
  - debugging
  - fs watching for local dev
  - running services in dev
  - configuring services in dev

- to improve the initial clone and subsequent `npm ci` experience
- to make future work on tooling easier
2020-04-14 14:38:38 -07:00
Dave Justice 33e59c64d4
feat(payment-server): mobile payments flow for fpn
- fixes #4145

task(payments-server): add details component for new payment
 flow

- fixes #4142

task(payment-server): add payment confirmation component

- added cc brand to customer object in auth server
- added latest_invoice to subscription object in auth
- fixes #4143

task(payments-server): update payment form for new mobile flow

- fixes #4144

task(auth-server): remove lingering subhub references

task(payment-server): add payment confirmation component

- added cc brand to customer object in auth server
- added latest_invoice to subscription object in auth
- fixes #4143

task(payments-server): new subscription create page

- refs #3929

task(payment-server): adding payment confirmation page

- refs #3929

fix(payments-server): fix failing product route tests

- refs #3929
- refs #4311

task(123done): update links to stripe products

task(payments-server): listen for resize in product/index

task(payment-server): final cleanups for confirmation flow

feat(auth-server + payments-server): add billing_name to customer response

- updated the getCustomer response to include the billing_name
- updated tests and validators

fixes #4612

updated broken tests

task(payment-server): adding payment confirmation page

- refs #3929

fix(payments-server): fix failing product route tests

- refs #3929
- refs #4311

task(payments-server): payment and confirmation view follow ups

- fixes #4529
- fixes FXA-1382

task(payments-server): attempt at fix for confirm view height on tablet

task(payments-server): attempt at fix for confirm view height on tablet

task(payments-server): add interval_count to confirmation story

task(auth-server): add app links to download email

- fixes #3872

fix(styles): Minor FPN mobile enhancements tweaks

task(payments-server): svgo and l10n fallback tweak
2020-04-09 20:30:21 +00:00
Jared Hirsch a5649db185
chore(deps): Updates to address nsp advisory 1179 2020-03-19 10:42:24 -07:00
Ben Bangert d5fa1d9968
Merge pull request #4399 from mozilla/auth-server-build-fix
fix(auth-server): update default node version for hapi upgrade
2020-03-10 08:14:33 -07:00
Jared Hirsch e47bc55ba4
chore(deps): Updates to address nsp advisory 1488 2020-03-06 17:00:40 -08:00
Dave Justice 0f2d540716
fix(monorepo): update default node version across packages 2020-03-06 22:54:44 +00:00
Lauren Zugai fb3afee237
fix(viewport): Update viewport metatag to include minimum-scale, and make value consistent across all instances 2020-02-03 15:26:27 -06:00
Jody Heavener a238c3d277
refactor(git): merge all package gitignores into single root-level gitignore 2020-01-07 15:12:25 -05:00
Danny Coates 7169a367e4
chore(node): updated node to v12 2019-12-12 14:34:45 -08:00
Danny Coates ccd3c2b07e
feat(audit): run npm audit on push instead of in ci
It's pretty disheartening when your PR fails in ci because of an
npm advisory unrelated to your changes. We still need to be aware
of them but have the ability to more easily keep doing other work.

Running the audit on git push allows us all to see advisories
quickly, but allows us to override and push with --no-verify so
work can continue and the advisory addressed on its own.
2019-11-19 12:02:22 -08:00
Dave Justice 0a5e3950f8
task(monorepo): eslint consolidation
- fixes #3082
- remove grunt when can be replaced with only eslint
- update to new eslint config using prettier rules
- fix linting errors
2019-11-15 23:24:09 +00:00