Compare commits

...

1 Commits

Author SHA1 Message Date
Giacomo Guiulfo 7211dbd902 ci(main.yml): add mem-mulitple-mpu tests 2018-06-21 14:13:02 -07:00
2 changed files with 42 additions and 7 deletions

View File

@ -30,6 +30,10 @@ models:
S3BACKEND: "mem" S3BACKEND: "mem"
MPU_TESTING: "yes" MPU_TESTING: "yes"
S3METADATA: mongodb S3METADATA: mongodb
- env: &mem-multiple-mpu-vars
S3BACKEND: "mem"
S3DATA: "multiple"
MPU_TESTING: "yes"
- env: &multiple-backend-vars - env: &multiple-backend-vars
S3BACKEND: "mem" S3BACKEND: "mem"
S3DATA: "multiple" S3DATA: "multiple"
@ -44,13 +48,16 @@ models:
command: bash eve/workers/build/credentials.bash command: bash eve/workers/build/credentials.bash
haltOnFailure: True haltOnFailure: True
- ShellCommandWithSecrets: &npm-install - ShellCommandWithSecrets: &npm-install
name: install modules name: Install modules
command: npm install command: npm install
haltOnFailure: True haltOnFailure: True
- ShellCommand: &s3-log - ShellCommand: &s3-log
name: s3 logs name: s3 logs
command: cat /artifacts/s3.log || exit 0 command: cat /artifacts/s3.log || exit 0
- ShellCommandWithSecrets: &wait_for_local_port
name: Wait for S3 to listen
command: bash wait_for_local_port.bash 8000 40
haltOnFailure: True
stages: stages:
pre-merge: pre-merge:
worker: worker:
@ -67,6 +74,7 @@ stages:
- linting-coverage - linting-coverage
- multiple-backend-test - multiple-backend-test
- mongo-ft-tests - mongo-ft-tests
- mem-multiple-mpu-test
waitForFinish: True waitForFinish: True
haltOnFailure: True haltOnFailure: True
@ -108,7 +116,7 @@ stages:
aggressor: eve/workers/build aggressor: eve/workers/build
s3: "." s3: "."
vars: vars:
aggressorMemLimit: "1Gi" aggressorMemLimit: "1536Mi"
s3MemLimit: "2Gi" s3MemLimit: "2Gi"
env: env:
<<: *multiple-backend-vars <<: *multiple-backend-vars
@ -117,12 +125,12 @@ stages:
- Git: *clone - Git: *clone
- ShellCommandWithSecrets: *credentials - ShellCommandWithSecrets: *credentials
- ShellCommand: *npm-install - ShellCommand: *npm-install
- ShellCommand: *wait_for_local_port
- ShellCommandWithSecrets: - ShellCommandWithSecrets:
command: | command: |
bash -c " bash -c "
source /root/.aws/exports &> /dev/null source /root/.aws/exports &> /dev/null
set -ex set -ex
bash wait_for_local_port.bash 8000 40
npm run multiple_backend_test" npm run multiple_backend_test"
env: env:
<<: *multiple-backend-vars <<: *multiple-backend-vars
@ -157,16 +165,43 @@ stages:
- Git: *clone - Git: *clone
- ShellCommandWithSecrets: *credentials - ShellCommandWithSecrets: *credentials
- ShellCommand: *npm-install - ShellCommand: *npm-install
- ShellCommand: *wait_for_local_port
- ShellCommandWithSecrets: - ShellCommandWithSecrets:
command: | command: |
. /root/.aws/exports &> /dev/null
bash wait_for_local_port.bash 8000 40
npm run ft_test npm run ft_test
env: env:
<<: *mongo-vars <<: *mongo-vars
<<: *global-env <<: *global-env
- ShellCommand: *s3-log - ShellCommand: *s3-log
mem-multiple-mpu-test:
worker:
type: kube_pod
path: eve/workers/pod.yaml
images:
aggressor: eve/workers/build
s3: "."
vars:
aggressorMemLimit: "2Gi"
s3MemLimit: "1Gi"
env:
<<: *global-env
<<: *mem-multiple-mpu-vars
steps:
- Git: *clone
- ShellCommandWithSecrets: *credentials
- ShellCommand: *npm-install
- ShellCommand: *wait_for_local_port
- ShellCommandWithSecrets:
command: |
bash -c "
set -ex
source /root/.aws/exports &> /dev/null
npm run ft_awssdk"
env:
<<: *global-env
<<: *mem-multiple-mpu-vars
- ShellCommand: *s3-log
post-merge: post-merge:
worker: worker:
type: local type: local

View File

@ -56,7 +56,7 @@ spec:
cpu: 200m cpu: 200m
memory: 1Gi memory: 1Gi
limits: limits:
cpu: 500m cpu: 1000m
memory: {{ vars.s3MemLimit }} memory: {{ vars.s3MemLimit }}
volumeMounts: volumeMounts:
- name: creds - name: creds