Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 2 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
npx lint-staged

# Typecheck Frontend
cd frontend
npm run typecheck
yarn workspace ab-testing typecheck

# Typecheck Backend Upgrade
cd ../backend/packages/Upgrade
npm start typecheck
yarn workspace ab_testing_backend typecheck
114 changes: 23 additions & 91 deletions .jenkins/projectBuilder.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,32 @@ projectBuilderV5 (
buildAgent:[
taskDefinitionOverride: "upgrade-ci"
],

initScripts: [
[
script: 'npx yarn',
log: 'yarn-install.log'
]
],
projects: [
"types": [
artifactType: "codeartifact",
projectDir: "types",
runInProjectDir: true,
skipArtifactUpload: true,
fileFilter: [
include: ["types/.*"]
],
buildScripts: [
[
script: 'npm ci --no-audit',
githubCheck: 'types npm ci --no-audit',
log: 'types-npm-ci.log'
]
]
],
"upgrade-service":[
artifactType: "ecr",
projectDir: "backend",
projectDir: ".",
runInProjectDir: true,
versioning: "branch",
fileFilter: [
include: ["packages/backend/.*"]
],
appInfrastructure: [
[file: "cloudformation/backend/app-infrastructure.yml"]
],
s3Context: [
glob: "backend/**/*,types/**/*,*.json"
],
fileFilter: [
include: ["types/.*","cloudformation/backend/app-infrastructure.yml"]
glob: "packages/backend/**/*,packages/types/**/*,packages/frontend/package.json,*.json,yarn.lock,.yarn*",
exclude: "**/node_modules,**/node_modules/**,**/*.log,.git"
],
dockerConfig: [
dockerFile: "backend/cl.Dockerfile",
cpu: 2048,
memory: 8192,
dockerFile: "packages/backend/cl.Dockerfile",
requiresCodeArtifactToken: true,
],
automatedBranchBuilds: [
Expand All @@ -45,30 +37,24 @@ projectBuilderV5 (
],
"upgrade":[
artifactType: 'codeartifact',
projectDir: 'frontend',
projectDir: '.',
runInProjectDir: true,
artifactDir: 'dist/upgrade/browser',
artifactDir: 'packages/frontend/dist/upgrade/browser',
artifactPrefix: "upgrade",
versioning: 'branch',
oneArtifactPerEnvironment: true,
dependencies: ["types"],
buildScripts: [
[
script: 'npm ci --no-audit',
githubCheck: '${projectName} npm ci --no-audit',
log: '${projectName}-npm-ci.log'
],
[
script: 'npm run test',
script: 'npx yarn workspace ab-testing test',
githubCheck: "upgrade-frontend-test",
log: "upgrade-frontend-test.log"
],
[
script: 'npm run prebuild:project',
script: 'npx yarn workspace ab-testing prebuild:project',
log: 'env-pre-build.log',
],
[
script: 'npm run build:project',
script: 'npx yarn workspace ab-testing build:project',
log: '${projectName}-build.log',
githubCheck: '${projectName}-build'
]
Expand All @@ -87,53 +73,17 @@ projectBuilderV5 (
"upgrade-backend-tests": [
artifactType: "codeartifact",
versioning: "none",
projectDir: "backend",
projectDir: ".",
runInProjectDir: true,
skipArtifactUpload: true,
dependencies: ["types"],
fileFilter: [
include: ["backend/packages/Upgrade/.*"]
],
buildScripts: [
[
script: 'npm run install:upgrade',
log: '${projectName}-npm-ci.log'
],
[
script: 'npm run test:upgrade',
script: 'npx yarn workspace ab_testing_backend test',
githubCheck: '${projectName} test',
log: '${projectName}-test.log'
]
]
],
"scheduler-lambda": [
artifactType: "s3",
versioning: "calendar",
projectDir: "backend/packages/Scheduler",
artifactDir: "dist",
runInProjectDir: true,
s3Config: [
file: "scheduler-lambda.zip",
path: "scheduler-lambda/"
],
buildScripts: [
[
script: 'npm ci --no-audit',
githubCheck: '${projectName} npm ci --no-audit',
log: '${projectName}-npm-ci.log'
],
[
script: 'npm run build:prod',
log: '${projectName}-build.log',
githubCheck: '${projectName}-build'
],
[
script: 'npm run postbuild',
log: '${projectName}-post-build.log'
]

]
],
],
deployments: [
UpgradeService: [
Expand Down Expand Up @@ -174,31 +124,13 @@ projectBuilderV5 (
]
]
],
"Scheduler-Lambda": [
projects: ["scheduler-lambda"],
automated: [
[
type: "defaultBranch",
environment: "qa"
]
],
jobs: [
[
job: "Upgrade-Scheduler-Lambda-Deploy"
]
]
],
],
prChecks: [
"checks": [
"lint": [
buildScripts: [
[
script: 'npm ci --no-audit',
log: 'npm-ci.log'
],
[
script: 'npm run lint',
script: 'npx yarn lint',
githubCheck: 'lint',
log: 'lint.log'
]
Expand Down
54 changes: 0 additions & 54 deletions backend/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions backend/Dockerrun.aws.json

This file was deleted.

30 changes: 0 additions & 30 deletions backend/cl.Dockerfile

This file was deleted.

18 changes: 0 additions & 18 deletions backend/locust/cleanup_experiments.py

This file was deleted.

Loading