Skip to content

Commit 29bb9a2

Browse files
committed
Merge remote-tracking branch 'origin/dev' into feature/experiment-logs-tab
2 parents f635ef8 + 8c4fcd8 commit 29bb9a2

1,305 files changed

Lines changed: 18518 additions & 58131 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.husky/pre-commit

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
npx lint-staged
55

66
# Typecheck Frontend
7-
cd frontend
8-
npm run typecheck
7+
yarn workspace upgrade-frontend typecheck
98

109
# Typecheck Backend Upgrade
11-
cd ../backend/packages/Upgrade
12-
npm start typecheck
10+
yarn workspace upgrade-backend typecheck

.jenkins/projectBuilder.Jenkinsfile

Lines changed: 20 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,29 @@ projectBuilderV5 (
22
buildAgent:[
33
taskDefinitionOverride: "upgrade-ci"
44
],
5-
5+
initScripts: [
6+
[
7+
script: 'npx yarn',
8+
log: 'yarn-install.log'
9+
]
10+
],
611
projects: [
7-
"types": [
8-
artifactType: "codeartifact",
9-
projectDir: "types",
10-
runInProjectDir: true,
11-
skipArtifactUpload: true,
12-
fileFilter: [
13-
include: ["types/.*"]
14-
],
15-
buildScripts: [
16-
[
17-
script: 'npm ci --no-audit',
18-
githubCheck: 'types npm ci --no-audit',
19-
log: 'types-npm-ci.log'
20-
]
21-
]
22-
],
2312
"upgrade-service":[
2413
artifactType: "ecr",
25-
projectDir: "backend",
14+
projectDir: ".",
2615
runInProjectDir: true,
2716
versioning: "branch",
2817
appInfrastructure: [
2918
[file: "cloudformation/backend/app-infrastructure.yml"]
3019
],
3120
s3Context: [
32-
glob: "backend/**/*,types/**/*,*.json"
33-
],
34-
fileFilter: [
35-
include: ["types/.*","cloudformation/backend/app-infrastructure.yml"]
21+
glob: "packages/backend/**/*,packages/types/**/*,packages/frontend/package.json,*.json,yarn.lock,.yarn*",
22+
exclude: "**/node_modules,**/node_modules/**,**/*.log,.git"
3623
],
3724
dockerConfig: [
38-
dockerFile: "backend/cl.Dockerfile",
25+
cpu: 2048,
26+
memory: 8192,
27+
dockerFile: "packages/backend/cl.Dockerfile",
3928
requiresCodeArtifactToken: true,
4029
],
4130
automatedBranchBuilds: [
@@ -45,30 +34,24 @@ projectBuilderV5 (
4534
],
4635
"upgrade":[
4736
artifactType: 'codeartifact',
48-
projectDir: 'frontend',
37+
projectDir: '.',
4938
runInProjectDir: true,
50-
artifactDir: 'dist/upgrade/browser',
39+
artifactDir: 'packages/frontend/dist/upgrade/browser',
5140
artifactPrefix: "upgrade",
5241
versioning: 'branch',
5342
oneArtifactPerEnvironment: true,
54-
dependencies: ["types"],
5543
buildScripts: [
5644
[
57-
script: 'npm ci --no-audit',
58-
githubCheck: '${projectName} npm ci --no-audit',
59-
log: '${projectName}-npm-ci.log'
60-
],
61-
[
62-
script: 'npm run test',
45+
script: 'npx yarn workspace upgrade-frontend test',
6346
githubCheck: "upgrade-frontend-test",
6447
log: "upgrade-frontend-test.log"
6548
],
6649
[
67-
script: 'npm run prebuild:project',
50+
script: 'npx yarn workspace upgrade-frontend prebuild:project',
6851
log: 'env-pre-build.log',
6952
],
7053
[
71-
script: 'npm run build:project',
54+
script: 'npx yarn workspace upgrade-frontend build:project',
7255
log: '${projectName}-build.log',
7356
githubCheck: '${projectName}-build'
7457
]
@@ -87,53 +70,17 @@ projectBuilderV5 (
8770
"upgrade-backend-tests": [
8871
artifactType: "codeartifact",
8972
versioning: "none",
90-
projectDir: "backend",
73+
projectDir: ".",
9174
runInProjectDir: true,
9275
skipArtifactUpload: true,
93-
dependencies: ["types"],
94-
fileFilter: [
95-
include: ["backend/packages/Upgrade/.*"]
96-
],
9776
buildScripts: [
9877
[
99-
script: 'npm run install:upgrade',
100-
log: '${projectName}-npm-ci.log'
101-
],
102-
[
103-
script: 'npm run test:upgrade',
78+
script: 'npx yarn workspace upgrade-backend test',
10479
githubCheck: '${projectName} test',
10580
log: '${projectName}-test.log'
10681
]
10782
]
10883
],
109-
"scheduler-lambda": [
110-
artifactType: "s3",
111-
versioning: "calendar",
112-
projectDir: "backend/packages/Scheduler",
113-
artifactDir: "dist",
114-
runInProjectDir: true,
115-
s3Config: [
116-
file: "scheduler-lambda.zip",
117-
path: "scheduler-lambda/"
118-
],
119-
buildScripts: [
120-
[
121-
script: 'npm ci --no-audit',
122-
githubCheck: '${projectName} npm ci --no-audit',
123-
log: '${projectName}-npm-ci.log'
124-
],
125-
[
126-
script: 'npm run build:prod',
127-
log: '${projectName}-build.log',
128-
githubCheck: '${projectName}-build'
129-
],
130-
[
131-
script: 'npm run postbuild',
132-
log: '${projectName}-post-build.log'
133-
]
134-
135-
]
136-
],
13784
],
13885
deployments: [
13986
UpgradeService: [
@@ -174,31 +121,13 @@ projectBuilderV5 (
174121
]
175122
]
176123
],
177-
"Scheduler-Lambda": [
178-
projects: ["scheduler-lambda"],
179-
automated: [
180-
[
181-
type: "defaultBranch",
182-
environment: "qa"
183-
]
184-
],
185-
jobs: [
186-
[
187-
job: "Upgrade-Scheduler-Lambda-Deploy"
188-
]
189-
]
190-
],
191124
],
192125
prChecks: [
193126
"checks": [
194127
"lint": [
195128
buildScripts: [
196129
[
197-
script: 'npm ci --no-audit',
198-
log: 'npm-ci.log'
199-
],
200-
[
201-
script: 'npm run lint',
130+
script: 'npx yarn lint',
202131
githubCheck: 'lint',
203132
log: 'lint.log'
204133
]

backend/.gitignore

Lines changed: 0 additions & 54 deletions
This file was deleted.

backend/Dockerrun.aws.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

backend/cl.Dockerfile

Lines changed: 0 additions & 30 deletions
This file was deleted.

backend/locust/cleanup_experiments.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)