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

339 Коммитов

Автор SHA1 Сообщение Дата
Lisa Chan c20c754e4e
feat(libs/payments): Implement customerChanged 2024-10-09 20:41:56 -04:00
Ankita Shrivastava 18bd695cc8
chore(functional_test): run playwright functional tests in chromium browser 2024-09-20 11:08:15 -04:00
Ankita Shrivastava 960affc4e0
fix nightly issue 2024-09-16 10:13:37 -04:00
Ankita Shrivastava 7eeee630de
chore(functional_test): update config to run merge reports with test failures 2024-09-13 09:36:52 -04:00
Ankita Shrivastava 40014719bf
remove HTML report job for smoke tests 2024-09-11 14:51:57 -04:00
Ankita Shrivastava 95f7bd2130
chore(functional_test): update config to merge reports with failed tests 2024-09-10 13:10:02 -04:00
Ankita Shrivastava 30995f9d38
chore(functional_tests): update CI image to add different browsers 2024-09-04 11:12:01 -04:00
Valerie Pomerleau 1184b7c45e
feat(content): Set up feature flag for email first routes
Because:

* We are preparing to enable react version of email first route

This commit:

* Adds feature flag

Closes #FXA-8638
2024-08-27 11:07:50 -07:00
Wil Clouser 9a41b775cf
Remove Jira. Github has same functionality now 2024-08-15 07:24:17 -07:00
dschom 3dec83d797
bug(CI): Fix missing assets in auth integration v2 job
This Commit:
- Fixes issue this.skip() in tests. Cannot use fat arrow function for test.
- Fixes test target names
- Makes sure keys are generated before running integration test
2024-08-09 15:19:21 -07:00
dschom ebbce9b980
bug(ci): Fix compile and lint jobs for nightly
Because:
- Compile job was failing in nightly
- Lint job was failing in nightly
- Unit test job was failing in nightly

This Commit:
- Add 'run-many' option, which is required when affected isn't present.
2024-08-09 09:58:11 -07:00
dschom e37ec803d7
bug(ci): Nightly should run all lints, builds, and unit tests not just affected ones 2024-08-06 09:59:04 -07:00
Ankita Shrivastava 01b57e087f
chore(config): add filters for smoke tests workflow 2024-08-01 19:15:53 -04:00
Ankita Shrivastava 7a4743b895
chore(functional_tests): add parallelism to smoke tests 2024-07-31 14:11:07 -04:00
Barry Chen a28d6a24c8
chore(metrics): remove the switch to call event metrics in auth-server
Because:
 - it's unwieldy

This commit:
 - calls the metric event record method based on the string event name
2024-07-18 12:41:53 -05:00
Ankita Shrivastava 79d1cc4ca8
chore(functional): integrate html reporting with smoke tests 2024-07-16 15:19:45 -04:00
Ankita Shrivastava f1d9ace06e
Merge pull request #17146 from mozilla/fix-html-report
fix(html_report): add if statement
2024-07-01 13:24:32 -04:00
Ankita Shrivastava eb39034db4
fix(html_report): add conditions for rename and merge reports 2024-06-28 18:57:08 -04:00
Reino Muhl f47d120d71
feat(libs): convert libs/* to esbuild and swc/jest
Because:

- ts-jest is consuming too much memory during unit test execution

This commit:

- Replace ts-jest with @swc/jest, which has better memory utilization
- Replace Nx TSC build executor with Nx esbuild build executor, for better performance.
- Reduce size of unit-test job instance size from large back to medium+

Closes #FXA-9879
2024-06-27 15:28:55 -04:00
Ankita Shrivastava 6b0e150597
chore(functional): integrate html reporting with Playwright 2024-06-17 22:27:45 -04:00
Lisa Chan f05d73021b
fix(libs): Refactor Stripe Plan usage to Stripe Price 2024-06-13 14:23:35 -04:00
Katrina Anderson 9187cc3a49
fix(functional-tests): no timings found for error in ci run-playwright-tests job
Because:

* the `--split-by=timings` default type `file` and alternative type `name` are unsupported for the playwright junit xml file

This commit:

* adds the `--split-by=classname` option

Closes #FXA-9720
2024-05-31 14:19:02 -04:00
Katrina Anderson 853e75034f
refactor(functional-tests): distribute functional tests across workers evenly (part 2)
Because:

* we want to execute the functional tests in CI as fast as possible

This commit:

* matches parallelism to the number of cores for a resource_class (4 for large and 8 for xlarge)
* splits and refactors the misc/keyStretchingV2.spec module into:
  * key-stretching-v2/totp.spec.ts
  * key-stretching-v2/signinBlocked.spec.ts
* splits the oauth/oauthPermissions.spec.ts module into:
  * oauth/oauthPermissionsSignin.spec.ts
  * oauth/oauthPermissionsSignup.spec.ts
* splits part of the oauth/signin.spec.ts module into oauth/signinBlocked.spec.ts
* splits part of the react-conversion/oauthResetPassword.spec.ts module into:
  * react-conversion/oauthResetPasswordRecoveryKey.spec.ts
  * react-conversion/oauthResetPasswordScopeKey.spec.ts
  * react-conversion/oauthResetPasswordSyncMobile.spec.ts
* splits part of the react-conversion/signup.spec.ts module into react-conversion/oauthSignup.spec.ts
* splits part of the settings/changeEmail.spec.ts module into settings/changeEmailBlocked.spec.ts
* splits part of the settings/changePassword.spec.ts module into settings/changePasswordValidation.spec.ts
* splits part of the subscription-tests/coupons-ui-tests/coupon.spec.ts module into:
  * subscription-tests/coupons-ui-tests/couponExpired.spec.ts
  * subscription-tests/coupons-ui-tests/couponForeverDiscount.spec.ts
  * subscription-tests/coupons-ui-tests/couponInvalid.spec.ts
  * subscription-tests/coupons-ui-tests/couponOneTimeDiscount.spec.ts
* splits part of the subscription-tests/coupons-ui-tests/resubscription.spec.ts module into subscription-tests/coupons-ui-tests/paymentMode.spec.ts
* splits part of the syncV3/fxDesktopHandshake.spec.ts module into syncV3/fxDesktopHandshakeNonSync.spec.ts
* splits part of the syncV3/fxDesktopV3ForceAuth.spec.ts module into syncV3/fxDesktopV3ForceAuthUnregistered.spec.ts
* splits part of the syncV3/signIn.spec.ts module into syncV3/oauthSignIn.spec.ts
* fixes confirmResetPasswordHeading error in react-conversion/resetPassword.spec.ts

Closes #FXA-9699
2024-05-24 08:28:29 -04:00
Wil Clouser 02202e0f63
Upgrade docker builds to medium+
Because:
- Nightly builds are failing
2024-05-14 06:06:42 -07:00
Barry Chen 2a5a357189
chore(build): let chokidar poll 2024-05-10 10:00:39 -05:00
Wil Clouser 6e9d462a2c
Testing circleci config w/ circleci support 2024-05-10 06:02:28 -07:00
Wil Clouser 96446ce0b9
try version: previous 2024-05-08 13:10:13 -07:00
Wil Clouser 87fbf65e27
Revert "Update config.yml" 2024-05-08 12:00:02 -07:00
Wil Clouser 62a8666621
Update config.yml 2024-05-08 11:04:39 -07:00
Wil Clouser 0ebf7aa0e2
Revert "Disable NX_DAEMON when building the container" 2024-05-08 09:10:35 -07:00
Wil Clouser 137a84ba4f
Disable NX_DAEMON when building the container 2024-05-08 08:15:33 -07:00
Wil Clouser d38f23b7f1
Add `provision` back to docker building steps
We're not sure what was going on with 06c207480c but we think this is breaking stuff.
2024-04-30 15:17:43 -07:00
Vijay Budhram 0e00017b0d
fix(cache): Remove memcache service and references to it
feat(sync): Return estimated sync devices in recovery key exist route
2024-04-30 15:08:47 -04:00
dschom 06c207480c
task(ci): update functional test executor 2024-04-25 15:28:43 -07:00
dschom d7c703f2fa
task(auth): Have auth-server use cloud-tasks nx lib
Because:
- We want to use the `cloud-tasks` nx lib that introduced last sprint

This commit
- Updates account end points to use the nx lib
- Updates CI to include cloud-task emulator

(cherry picked from commit 7c0c70d2a4)
2024-03-27 16:16:18 -07:00
Valerie Pomerleau 9b820bde13
Revert "task(auth): Have auth-server use cloud-tasks nx lib " 2024-03-27 13:23:46 -07:00
dschom 7c0c70d2a4
task(auth): Have auth-server use cloud-tasks nx lib
Because:
- We want to use the `cloud-tasks` nx lib that introduced last sprint

This commit
- Updates account end points to use the nx lib
- Updates CI to include cloud-task emulator
2024-03-26 15:43:57 -07:00
Ben Bangert c28b061257
chore: update Node to LTS 20, TypeScript, tsconfig
Because:

* We want to update to Node 20 LTS.
* We want to target the JS output of Node 20.
* We want to use the latest TypeScript 5.4

This commit:

* Updates the Node version to 20 LTS.
* Updates the TypeScript version and related TS libs
  to 5.4.
* Updates tsconfig for the new Node 20 target.
2024-03-14 11:54:20 -07:00
Jon Buckley 92b0827f7f
Merge pull request #15844 from mozilla/upgrade-to-mysql-8-0-31
chore(mysql): Upgrade to MySQL 8.0.31
2024-03-05 14:21:41 -05:00
Reino Muhl 2df7ca494a
chore(nx): upgrade to nx 18
Because:

* Want to migrate Nx to latest

This commit:

* Migrate nx to 18 using nx cli migrate latest
* Readd a few dev dependancies back into packages/**/package.json
  * Behavior of `npx nx...` commands seems to have changed, resulting in
    multiple "command not found: <library>" errors, where <library>
    refers to libaries used in packages/**/package.json scripts, such as
    tailwindcss, tsc-alias, nx, etc.
* Updates nx cache location for Circle CI

Closes #FXA-8880
2024-02-12 09:01:00 -05:00
dschom 1d9b18b3fa
task(auth): Support V2 credential format
Because:
- We want to add support for up coming changes to key stretching in the auth server first
- We want to ensure all changes are backwards compatible

This Commit:
- Updates test to use approach for the client side stretch where:
   - Stretch uses 650k iterations
   - Client salt uses random value instead of user's original email
- Updates tests to run using both V1 and V2 credentials
- Updates database to support new  columns for housing V2 credentials
- Updates account models accordingly
- Adds statsd metrics to track use of v2 credentials
- Updates CI tests to run remote integration tests for V2 credentials
2024-01-17 09:16:57 -08:00
Jon Buckley 99c80e7837
chore(mysql): Follow latest patch release of MySQL 8.0 2024-01-08 15:17:22 -08:00
dschom 1e455ec9c8
task(ci): Remove redis dev password from source
Because:
- We are cleaning up stray password even those just used for dev

This Commit:
- Removes the dev password, fxa123, from source
2023-11-03 14:24:07 -07:00
Valerie Pomerleau d6c798d361
refactor(content): Remove deprecated recovery key creation flows
Because:

* We have turned on the new account recovery key creation flow to 100% and now want to remove the old unused settings and content-server (post_verify/account_recovery) flows

This commit:

* Remove feature flag set up for old vs new account recovery key flow
* Remove all code related to old PageAddRecoveryKey in fxa-settings
* Remove all code related to old post_verify/acccount_recovery in content-server
* Test fixes

Closes #FXA-7419
2023-10-24 10:11:07 -07:00
dschom 9066d41089
task(CI): Increase resource class that deploys storybooks
Because:
- Deploys were getting flaky, and hitting memory limits

This commit:
- Changes `build-and-deploy-storybooks` from medium plus to large.
2023-10-13 18:01:35 -07:00
dschom 9dc8f44332
bug(CI): Fix missing CSS in auth server storybooks
Because:
- Styling in auth server storybooks was off

This Commit:
- Adds the email css folders to workspace
- Adds the locales folders to workspaces
- Updates the log level for gcp export so we can see what is being published
- Has `mozilla-fxa/storybook-gcp-publisher` to only publish, we now build ourselves with an nx command.
2023-10-13 08:53:42 -07:00
Ankita Shrivastava 8051e36ff8
config(functional): remove content-server-remote steps for old tests 2023-10-05 14:23:37 -04:00
Ben Bangert 1924d154ec
chore(deps): bump faker, nx, and next
Because:

* We want to keep up to date with the latest versions.

This commit:

* Updates the faker, nx, and next dependencies.
2023-09-26 19:26:14 -07:00
Dan Schomburg bcd5ad1c44
task(CI): Remove CI: false overrides
Because:
- We want to see if anything breaks
- Setting `CI: true` changes the behavior of tsc such that warnings result in a non-zero exit code

This Commit:
- Turns off overrides
2023-09-18 16:56:58 -07:00
Valerie Pomerleau f47ac31c2b
fix(content): Remove recovery key experimentation rules
Because:

* Experiment rollout to 100% of users was not working as expected
* We already have a feature flag that we can use to toggle the new flow on/off

This commit:

* Remove all code related to experiment rules for the new recovery key flow
* Keep feature flag for new flow
* Effectively rollout to 100% of traffic unless feature flag is turned off in an environment

Closes #FXA-8335
2023-09-15 11:07:08 -07:00