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

83 Коммитов

Автор SHA1 Сообщение Дата
Vincent 03e1a0b43d
Update to Node 18.18
Recent version of Next.js specify 18.17.0 as the minimum version,
as indicated when running `npm install`:

> npm WARN EBADENGINE Unsupported engine {
> npm WARN EBADENGINE   package: 'next@14.0.2',
> npm WARN EBADENGINE   required: { node: '>=18.17.0' },
> npm WARN EBADENGINE   current: { node: 'v18.12.1', npm: '8.19.2' }
> npm WARN EBADENGINE }

This upgrade should be relatively safe, since Node is only used in
the build process.

I also pinned npm to the version bundled with this version of Node,
as suggested by Volta after pinning the Node version:

>   note: this version of Node includes npm@9.8.1, which is higher than your pinned version (8.19.2).
>      To use the version included with Node, run `volta pin npm@bundled`
2023-11-13 10:09:44 +01:00
John Whitlock e6ccda8817
Update to Python 3.10.13
Released Aug. 24, 2023
2023-10-16 10:08:27 -05:00
John Whitlock 395d46ab27
CircleCI: Use PostgreSQL v14.7
This matches the version used in dev, stage and production
2023-09-01 11:30:28 -05:00
John Whitlock e56bbdb0b5
Run Jest tests in a single process
CircleCI tests run 8x slower than on my laptop (M2 Pro). Try the
suggested mitigation from https://jestjs.io/docs/troubleshooting
2023-08-16 09:02:19 -05:00
John Whitlock dcc7a4161d
Update to Python 3.10.11 2023-06-05 10:43:28 -05:00
groovecoder 0778ad8699
fix urls and circle jobs 2023-03-09 16:14:57 -06:00
groovecoder 3f56d04401
fix report file-name of the circle IQ-enabled test job 2023-03-09 16:14:56 -06:00
groovecoder aa21d76723
add IQ_ENABLED=1 job to circle 2023-03-09 16:14:56 -06:00
John Whitlock bf8132add5
CircleCI: create empty staticfiles directory
Some tests runs show a warning if this directory does not exist.
2023-02-24 11:29:48 -06:00
John Whitlock 32735c2d7d
MPP-2881: Run tests with Django 4.2 2023-02-24 11:29:33 -06:00
John Whitlock 71f0f26c12
circleci: Use --workspace instead of app-dir
Run commands with "--workspace frontend" instead of setting app-dir to
frontend, so that the CircleCI node orb will see package-lock.json in
the root folder when caching dependencies.
2023-02-16 10:15:28 -06:00
John Whitlock 95bcbf5f93
circleci: Only store pytest results 2023-02-16 10:05:42 -06:00
Vincent 8ae0af80ac
Upgrade to Node 18, the current LTS release 2023-02-01 11:38:03 +01:00
John Whitlock 3d828935da Upgrade to Python 3.10 2023-01-11 08:28:11 -06:00
Vincent c5c19f959b Use correct l10n checkout when testing migrations
When switching to the version of the code that's currently in
production, make sure to also switch to the version of the l10n
repository that's currently in production. Otherwise, if strings
have been removed from the l10n repository that are still being
referenced in production, the tests would start failing despite
nothing being broken.
2022-12-19 11:45:26 +01:00
John Whitlock d127e9b435 Build static files for API docs 2022-11-16 18:27:18 -06:00
Se Yeon Kim 2d53223e09
Create folder to temporarily store email trackers
and attache the persisted workspace in Docker image to copy the trackers to the Docker image
2022-11-10 14:34:06 -06:00
Se Yeon Kim 6eb9c5eca4
Build email tracker list before build test backend 2022-11-07 10:07:05 -06:00
Se Yeon Kim f42c486b6d
Store email tracker lists in persistated worskspace
then move to dock folder
2022-11-07 09:22:19 -06:00
Se Yeon Kim 6693b3230a
Remove unused statements on CircleCI 2022-11-04 15:14:10 -05:00
Se Yeon Kim a7b408f0bd
Use proper yaml grammar 2022-11-04 15:10:50 -05:00
Se Yeon Kim a335cc11a9
Remove template CI parameters
and move generated tracker lists to docker project
2022-11-04 15:03:32 -05:00
Se Yeon Kim eaf5b4312d
Remove circular dependency 2022-11-03 18:02:13 -05:00
Se Yeon Kim 1143ef3b43
Set default env and run tracker list job before backend test 2022-11-03 18:02:13 -05:00
Se Yeon Kim 6365dcbe55
Use the defined job from above 2022-11-03 18:02:13 -05:00
Se Yeon Kim df65d6de78
Build email tracker lists with CI version 2 2022-11-03 18:02:13 -05:00
Se Yeon Kim 699e3e5bf2
Move email tracker list building to CI job 2022-11-03 18:02:13 -05:00
John Whitlock f96a0ac1c5
Upgrade to python 3.9.15 2022-10-25 14:18:55 -05:00
John Whitlock 4c28909aea
Update to node 14.20.1 2022-10-03 17:34:10 -05:00
John Whitlock 34e072fc60
Fix CircleCI Postgres job for tags 2022-09-07 09:08:56 -05:00
Vincent 9c0fa9e7db Fix CircleCI job failing when pushing tags
The CircleCI job that tests migrations would try to compare against
the branch that CircleCI was running against. However, when pushing
a tag, there is no known branch (i.e. $CIRCLE_BRANCH is unset,
whereas $CIRCLE_TAG is). To check out the actual relevant commit
regardless of whether we're running for a branch of a tag, checking
$CIRCLE_SHA1 should work.
2022-09-07 11:18:53 +02:00
John Whitlock 26d95f2b4e
Break build on black / mypy errors 2022-08-30 14:36:42 -05:00
John Whitlock 3d6cd2a190
Add test for PHONES_ENABLED=0 2022-08-23 14:59:15 -05:00
John Whitlock be9e71ccc0
Test branch migrations on production
Test if there will be database errors when the current production code
runs against the new migrations during the next deploy.
2022-08-22 11:06:15 -05:00
John Whitlock fbcb3da4d4
Deploy to Heroku/dev with CircleCI 2022-08-19 09:55:57 -05:00
groovecoder be3cf25dad
enable phones during Circle docker build 2022-08-10 17:13:30 -05:00
groovecoder 84e4520c30 use PHONES_ENABLED env var to better separate phones app 2022-07-19 20:24:56 -05:00
luke crouch c1fbb56497
Merge pull request #2026 from mozilla/start-phone-api
Start phone api
2022-07-19 10:02:28 -05:00
groovecoder 7bac878943 pass TWILIO env vars from Circle to container 2022-07-01 07:17:18 -05:00
John Whitlock 2792f9c9c1
Update to Python 3.9.13 2022-06-30 14:15:31 -05:00
John Whitlock 182e88d6a1
Add mypy --strict 2022-06-29 12:59:37 -05:00
John Whitlock 19ce16b5f2
Copy .env-dist in generic job 2022-06-29 12:59:36 -05:00
John Whitlock ad780db645
Add generic Python jobs, and mypy test
Add a generic python_job that checks out the project, runs a command
that may fail, and upload results if it generates them. This can be used
for formatting and linting checks later.

Use the python_job for a mypy test that is allowed to fail for now.
2022-06-29 12:58:49 -05:00
John Whitlock 7de0f68628
Add test with PostgreSQL 11.13
Test against similar database to that used in deployments
2022-05-17 11:03:04 -05:00
John Whitlock 3d9b0861ed
Update Python to 3.9.12 2022-05-17 11:03:03 -05:00
John Whitlock c69dfae94a
Add generic Python jobs, and black test
Add a generic python_job that checks out the project, runs a command
that may fail, and upload results if it generates them. This can be used
for other formatting and linting checks later.

Use the python_job for a black formatting check that is allowed to fail for now.
2022-05-09 08:16:51 -05:00
John Whitlock a87160b276
Add circleci checkout_with_submodules
Add a command that combines the commands to checkout fx-private-relay
with updated submodules.

Remove submodule checkout from coverage upload, where it is unneeded.
2022-05-09 08:16:51 -05:00
John Whitlock f5715603e4
Tweak test step
* Remove unneeded parenthesis
* Use a different environment variable name in and out of Docker
2022-04-13 16:24:40 -05:00
John Whitlock e1a64fdab3
Fix test exit code capture 2022-04-13 12:32:08 -05:00
John Whitlock 0d2c913e08
Fail build_test_backend when a test fails 2022-04-13 10:56:47 -05:00