Skip to content

Commit

Permalink
fix: increase image class size and compress logs (IN-1169) (#251)
Browse files Browse the repository at this point in the history
fix: increase image class size and compress logs (IN-1169)
  • Loading branch information
edison-vflow committed Jun 6, 2024
1 parent b016572 commit c973cc4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/executors/node/smoke-executor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docker: # run the steps with Docker
docker: # run the steps with Docker.
- image: 168387678261.dkr.ecr.us-east-1.amazonaws.com/ci-e2e-image:v1
user: root
aws_auth:
Expand All @@ -11,3 +11,4 @@ docker: # run the steps with Docker
MKCERT_VERSION: v1.4.0
NODE_VERSION: v20.10.0
NODE_OPTIONS: --max_old_space_size=8192
resource_class: xlarge
14 changes: 13 additions & 1 deletion src/jobs/e2e/collect-e2e-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,19 @@ steps:
last_component=${components[${#components[@]}-1]}
kubectl describe pod $component -n $DEV_ENV_NAME >> "${LOG_DIR:?}/${KUBE_STATE_DIR:?}/${last_component}-k8-state.log"
- run:
name: Compress logs
environment:
LOG_DIR: *log_dir
command: |
mkdir -p /tmp/logs/compressed
cp -r ${LOG_DIR:?} /tmp/logs/compressed
tar -czf /tmp/logs.tar.gz /tmp/logs/compressed
- store_artifacts:
name: Store Logs
name: Store uncompressed logs
path: *log_dir
destination: logs
- store_artifacts:
name: Store compressed logs
path: /tmp/logs.tar.gz
destination: compressed-logs.tar.gz

0 comments on commit c973cc4

Please sign in to comment.