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

17 Коммитов

Автор SHA1 Сообщение Дата
dschom d96797ae6a
task(CI): Improve nx caching for CI pipelines
Because:
- Not all CI operations where taking advantage of NX caches

This Commit:
- Adjusts nx.json config to ensure correct caching behavior
- Adjusts nx.json config to ensure proper target chains. ie build is dependent on pre-build
- Uses nx to directly run integration tests
- Uses nx to directly run unit tests
- Phases out dependency on generated .list files
- Ensures 'start up' for services for functional tests is done with nx and uses nx caches.
- Creates nx tags to facilitate test commands
- Fixes linter errors encountered
- Updates docker images to nx for builds
- Updates nx ignore files
2023-08-29 11:19:54 -07:00
Julian Poyourow 1faa33a353
feat(payments/paypal): add subs/paypal library
Because:

* Nx gives us the ability to break things up into smaller libraries with
  individual responsibilities.
* Paypal logic can exist in a standalone library for reusability in SP3

This commit:

* Moves PayPalClient and associated utils/typings to a library named
  `subs/paypal`. It can be imported via `@fxa/payments/paypal` in any
  TypeScript code.

Closes FXA-7610
2023-06-07 11:40:10 -07:00
Meghan Sardesai c00009a3f3
test(metrics): add functional test helpers to track metrics
Because:

* We have little in the way of metrics tests in our functional tests currently.

This commit:

* Adds test helpers to assert our events are being recorded as expected.

Closes FXA-7363
2023-05-23 22:29:12 -04:00
Danny Coates 60ca05cb81
chore(deps): update typescript to 4.5.2
* refactor(ts): use builtin Awaited type

* maybe make tests more stable
2021-11-18 23:25:28 -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 02d7b5f54f
feat(debug): add new vscode extension recommendations and launch config 2021-05-17 10:18:01 -07:00
Bianca Danforth 5e34e991f3
fix: Use relative imports within the same package.
Because:

* The prod package build works different from stage in terms of yarn workspaces and namespaces.

This commit:

* Prevents VSCode from automatically using absolute imports in this situation.
2021-04-13 12:21:54 -05:00
Jared Hirsch 0dba8fe52c
feat(settings): connected services disconnect flow
Closes #5101.
2020-11-12 09:26:33 -08:00
Ben Bangert 2adce3f77d
fix(event-broker): include lbheartbeat and dev check
Because:

* Development mode is used on a deployed stack that doesn't use a
  local SQS testing instance.
* lbheartbeat was missing from the health routes.

This commit:

* Checks that the SQS URL includes localhost before turning on the
  local SQS dev mode flags.
* Includes a lbheartbeat route.
2020-09-10 21:05:02 -07:00
Danny Coates 81575019a9
refactor(packages): use workspace references 2020-05-21 10:57:21 -07:00
Ben Bangert 3643654af0
feat(graphql-api): initial base project
Because:

* New graphql-api server doesn't exist yet.

This commit:

* Duplicates the admin-server project, with admin-server specific bits
  removed.
* Links in necessary build portions to circleci.

Closes #4812
2020-04-22 11:47:46 -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
Danny Coates a4b3996349
refactor(npm-scripts): refactored npm scripts for better ergonomics
1. renamed _scripts/*.sh to use kebab-case
2. linted _scripts with shellcheck
3. added _dev directory and moved pm2 json files there
4. added nps and package-scripts.js
  - this allows us to do nice things like: `npm start debug firefox`
  - I'd like to expand this further but it's a start
5. refactored the install scripts to make `npm install` nicer
6. renamed pm2 process names for easier control
  - can use `pm2 logs auth` instead of the id
2020-04-13 16:17:36 -07:00
Ben Bangert 5d3747e384
feat: add pm2 debug servers and add'l debug scripts
Because:

* It can be useful to debug multiple services at once.

This commit:

* Adds a pm2 config that starts 4 of the servers using start-dev-debug
  with unique inspect ports so that they can be debugged all at the
  same time.
* Updates the package.json files for these services so they don't choose
  the same port.
* Documents the ports used for debugging.
* Add's an attach debug for VS Code that lets one choose which process
  to debug.
2020-03-06 10:33:20 -08:00
Ben Bangert 21bccd703a
feat(auth-server): direct stripe API usage
Because:

* Sub Plat Architecture 2.0 has FxA using Stripe direcly.
* Remaining Arch 2.0 issues all require the same base API functionality
  created here.

This commit:

* Implements direct Stripe API calls for the subscription routes.
* Skips the unfinished tests for the direct integration as the other
  issues are blocked and unblocking them is a priority.

Issue #3809

Co-authored-by: Jackie Munroe <jackiemunroe@users.noreply.github.com>
Co-authored-by: Les Orchard <lorchard@mozilla.com>
2020-01-15 16:26:46 -08:00
Ben Bangert dac5e8b988
feat: add vscode tasks for running tests and debugger
Closes #2666
2019-10-01 17:27:41 -07:00
Ben Bangert cc8f2d897d
feat: add vscode settings and extensions, update docs for docker-ce
Update docs to reflect usage of docker-ce vs. outdated docker.io.

Closes #1072.
2019-07-04 08:47:34 -07:00