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

264 Коммитов

Автор SHA1 Сообщение Дата
Dan Schomburg 454fc0469e
Merge pull request #17447 from mozilla/syncstorage-rs
task(all): Get new syncstorage-rs service running
2024-08-27 17:24:43 -07:00
dschom a3ae0fe74a
task(all): Get new syncstorage-rs service running
Because:
- Locally the sync service wasn't running.
- We couldn't test sync flows against a local sync server
- There's a new version of the sync server that uses rust

This Commit:
- Sets up a dockerfile for syncstorage-rs that is tailored to fxa's local stack
- Updates pm2 sync job to run this docker container and initialize its databases.
- Updates firefox config/profile to point at this service
- Starts firefox up with the FIREFOX_DEBUGGER=true env.
  - Useful for debugging sync
  - Useful for debugging FxA web channel messages
2024-08-27 09:57:20 -07:00
Jon Buckley 48f20d2189
feat(scripts): Support Github Actions environment variables for version.json 2024-08-21 15:04:31 -04:00
clouserw 0be0159d68
chore(scripts): add a pre-launch script 2024-08-19 09:54:51 -07:00
dschom 9a8b03ab79
bug(scripts): Not all ports were listed
Because:
- Two more ports were need to debug android

This Commit:
- Adds 8290 for graphql
- Adds 3000 for react app
2024-07-18 14:36:14 -07:00
dschom 640a3cc739
task(scripts): Update adb-reverse script
Because:
- Script was outdated
- More ports are needed to get this working with android emulator on localhost.

This Commit:
- Introduces a list of known ports
- Uses this list for adb-reverse.sh
- Uses this list for check-ports.sh
2024-07-15 17:52:45 -07:00
Reino Muhl 05d7265292
feat(many): add partial stack startup scripts
Because:

- During development it could be useful to start only parts of the stack
  needed for development on specific domains.

This commit:

- Provides additional stack startup options to only start specific parts
  of the stack, by using nx projects and tags.

Closes #FXA-9771
2024-06-04 11:41:51 -04:00
Jonathan Almeida 340aa11487
task(scripts): Add cirrus service in a dev environment
Co-authored-by: dschom <dschomburg@mozilla.com>
2024-05-30 22:16:08 -04: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
Lauren Zugai 6d8745a2f4
feat(react): Add React signin Sync web channel events for fx_desktop_v3 + oauth_webchannel_v1
Because:
* We are moving from Backbone to React and want to meet parity with Sync functionality

This commit:
* Tweaks config-fxios script since iOS changed directory nesting
* Adds firefox.fxaLogin and firefox.fxaOAuthLogin web channel events where needed; it should talk to the browser with a happy path login, signin_token_code flow, and signin_totp_code flow
* Return unwrapBKey as part of signin callback data for sync
* Always displays password input for Sync (no cached login)
* Adds temp 'hack' (tempHandleSyncLogin) to allow a hard navigate to CAD to work in these flows
* Fixes bug where we were sending fxaLogin instead of fxaCanLinkAccount. Removed these from signin and signup container pages because we send one on the index page and it's causing multiple Sync dialogs
* Renames signinLocationState in signintotpcode to signinState since it can be set to local storage values
* Tweaks when to display third party auth for Sync (only show in the Sync flow when user does not have a PW set)

closes FXA-9059
2024-03-27 09:35:27 -05:00
Reino Muhl f80ba7ff45
feat(l10n): update l10n ftl scripts for nx apps v2
Because:

* Fluent ftl files need to be added to apps in the nx apps/ directory.

This commit:

* Updates bundle and prime scripts to support the apps/ directory, without affecting existing packages apps.

Closes #FXA-8823
2024-03-14 10:41:02 -04:00
Reino Muhl a4cb70fa6c
Revert "feat(l10n): update l10n ftl scripts for nx apps" 2024-03-13 15:47:02 -04:00
dschom aaa625ce15
task(admin-panel): Hookup account delete
Because:
- We want to delete accounts from the admin panel

This Commit:
- Adds cloud task emulator pm2 service
- Creates cloud-task nx lib for interacting with cloud tasks
- Creates PageDeleteAccount in admin panel
- Adds ability to delete accounts to admin server's account resolver
- Fixes broken admin panel configuration
- Fixes broken admin server configuration
2024-03-13 11:26:09 -07:00
Reino Muhl 50c0e85430
feat(l10n): update l10n ftl scripts for nx apps
Because:

* Fluent ftl files need to be added to apps in the nx apps/ directory.

This commit:

* Updates bundle and prime scripts to support the apps/ directory,
  without affecting existing packages apps.

Closes #FXA-8823
2024-03-07 13:05:29 -05:00
Jon Buckley 99c80e7837
chore(mysql): Follow latest patch release of MySQL 8.0 2024-01-08 15:17:22 -08:00
Lauren Zugai 33a802c1bd
chore(script): Rework config-fxios script for iOS testing, remove replace-in-file
Because:
* The script has been broken since firefox-ios moved to Rust components and we want to do local iOS testing

This commit:
* Reworks the script that replaced several strings containing our endpoints to change a parameter used to call FxAConfig in the firefox-ios directory instead. On the Rust side we're now checking against the well-known file for these endpoints instead of using hard-coded values
* Removes replace-in-file in favor of fs since while this approach is still not robust, the new regex checks for a FxAConfig function call and replaces a specific parameter and replace-in-file does not seem to support regex/partial replacements like this

Closes FXA-2195
2023-12-06 09:25:35 -06:00
Dan Schomburg c7056a2c25
Merge pull request #16051 from mozilla/firestore-to-latest
task(scripts): Return firestore back to latest image version
2023-11-08 09:59:06 -08:00
dschom b0c3794496
task(scripts): Return firestore back to latest image version 2023-11-07 14:20:52 -08:00
dschom 27f893dd52
task(scripts): Update misleading comment 2023-11-07 13:30:27 -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
dschom dd1ca665cd
task(content): Update privacy policy document
Because:
- We now want to reference a privacy policy specific to Mozilla

This Commit:
- Starts using the `Mozilla_Accounts_Privacy_Notice.md` legal doc
2023-10-25 10:33:43 -07:00
Dan Schomburg e9ea50835f
Revert "task(content): Update privacy policy document" 2023-10-16 15:58:31 -07:00
dschom 70d03c1380
task(content): Update privacy policy document
Because:
- We now want to reference a privacy policy specific to Mozilla

This Commit:
- Starts using the `mozilla_privacy_policy.md` legal doc
2023-10-12 15:11:16 -07:00
Bianca Danforth 67512368ad
chore(scripts): increase check-url.sh RETRY value
Because:

* Mac M1 and M2 machines are slower to start up infrastructure like Redis and Firestore (which runs under emulation).

This commit:

* Doubles the RETRY period from 120 to 240s as most of the time, the __heartbeat__ response for fxa-auth-server and firestore processes responded between 140 - 190s.

Closes #No ticket
2023-09-06 10:59:27 -04:00
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
Reino Muhl 8a4ed3350a
feat(infra): wait for db patches on startup
Because:

* On stack startup, services start before mysql patches have completed,
  causing profile-server to fail on startup.

This commit:

* Adds script to check if patcher script has started and is still
  running.

Closes #
2023-07-20 12:08:34 -04:00
Lisa Chan d4bf24117c
chore(next): Add Next.js to fxa and initial setup 2023-07-19 14:57:15 -04:00
Dan Schomburg e3300d6d52
Merge pull request #15293 from mozilla/FXA-7333
task(many): Investigate adding auth to redis connection
2023-05-17 11:28:49 -07:00
dschom c7995188d0
task(many): Investigate adding auth to redis connection
Because:
- We want a poc that auth can be added to redis

This Commit:
- Configures all configs to support a redis password
- Sets the standard env for redis auth to REDIS_PASSWORD
- Creates a default redis password of 'fxa123' for local dev
- Starts redis container with --requirepass fxa123
2023-05-12 16:22:38 -07:00
dschom b4cfc9c325
chore(CI): Switch to multi stage docker build and clean up
Because:
- We want to clean up our docker build
- We no longer used our service specific images

This Commit:
- Switches to multi stage docker build
  - Removes unused building of individual services
  - Removes used script that sets environment variables.
  - Removes `workspaces focus` call that resulted in redundant installs
  - Removes trap on build logs.
  - Uses circleci DLC to get cache hits for fxa-utils and fxa-build-utils
- Removes scripts that build service specific images
- Cleans up naming conventions to reflect that only one image is being built
2023-05-11 17:13:06 -07:00
dschom 7f79c431d0
task(CI): Patch package.json version fields to reflect the git tag
Because:
- We want the package.json version to match the git tag being deployed.
- We don't want to commit a change on the package.json file to accomplish this.

This Commit:
- If there is a git tag, the code will send it into the docker build as a VERSION build arg.
- This build arg is then used to update the version field in all package.json files.
2023-05-05 12:13:46 -07:00
Wil Clouser f3eb8bd475
chore(build): remove unused legal-md-to-pdf script 2023-04-19 11:30:27 -07:00
dschom 261f58a299
task(ci): Allow docker build phase to happen in parallel
Because:
- We can build the docker image while tests are running
- This will cut down on deploy time

This commit:
- Builds the deployed docker images in parallel to tests
- Pushes temporary image to docker up
- Once tests finish re-tags temporary image and pushes to docker hub
- Removes temporary build image from docker hub
2023-04-12 08:31:08 -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 ba550558a0
chore(repo): delete pushbox service integration
Because:
 - the pushbox service has been decommissioned

This commit:
 - removes the pushbox service integration config and code from the
   auth-erver
2023-03-21 13:53:44 -05: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
Dan Schomburg 2fdd96107f
Merge pull request #15018 from mozilla/FXA-6463
task(many): Only clone l10n once and combine ftl files.
2023-03-15 12:47:03 -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
Barry Chen 2b2fada774
chore(repo): delete support panel from fxa
Because:
 - the support panel has been replaced by features in the admin panel

This commit:
 - deletes the support panel package
2023-03-14 10:49:43 -05:00
Valerie Pomerleau 7400b25168
refactor(fxa-settings): Use global branding file in fxa-settings
Because:

* We want to standardize the branding used across fxa packages. FXA-5994 set up a global branding file that was initially used only for fxa-auth-server, and we now want to expand this file to be used for fxa-settings too.

This commit:

* Move branding terms from fxa-settings/src/components/en.ftl to the global branding file in fxa-shared/l10n/.
* Update clone-l10n script to include branding.ftl in the fxa-settings locales folders.
* Update fxa-setting to include "branding" in the Fluent bundle.
* Update ftl-test paths to include branding.ftl and react ftl files.

Closes #FXA-5995
2023-02-17 08:44:06 -08:00
Lauren Zugai 586a46b9b8
feat(react): Reactify legal, legal/terms, legal/privacy
Because:
* We're refactoring our legacy tech stack to our preferred stack by extending settings

This commit:
* Adds a clone-legal-docs script so we always fetch latest rather than pin to commit
* Reworks the 'react groups' into separate server and router files; router.js needs access, but cannot have any reference to route definitions since they now contain server-side logic and imports
* Moves available content-server routes into a separate file that does not import route definitions
* Uses and accounts for the existing regex for legal, legal/terms, and legal/privacy
* Adds two helper packages to render the MDs once fetched

Closes FXA-6131
2023-02-15 13:02:04 -06: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 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