Skip to content

Commit

Permalink
DEVPROD-14939: Log e2e mongo output to file (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon authored Feb 27, 2025
1 parent 7944801 commit 4ba4674
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .evergreen/attach.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ functions:
permissions: public-read
display_name: restore-logs

attach-mongod-logs:
command: s3.put
type: system
params:
aws_key: ${AWS_ACCESS_KEY_ID}
aws_secret: ${AWS_SECRET_ACCESS_KEY}
aws_session_token: ${AWS_SESSION_TOKEN}
local_file: "ui/evergreen/bin/mongod-logs.txt"
remote_file: ${build_variant}/${task_id}/${execution}/mongod-logs.txt
bucket: evg-bucket-evergreen-ui
content_type: text/plain
permissions: public-read
display_name: mongod-logs


attach-source-map:
command: s3.put
type: system
Expand Down
1 change: 1 addition & 0 deletions .evergreen/evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ post:
- func: attach-cypress-results
- func: attach-email
- func: attach-logkeeper-logs
- func: attach-mongod-logs
- func: attach-restore-logs
- func: attach-source-map
- func: attach-storybook
Expand Down
7 changes: 5 additions & 2 deletions .evergreen/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,17 @@ functions:
MONGOSH_DECOMPRESS: ${decompress}
working_dir: ui/evergreen
command: make get-mongosh
- command: subprocess.exec
- command: shell.exec
type: setup
params:
background: true
# Turn off silent to enable DB logging for debugging purposes
silent: true
working_dir: ui/evergreen
command: make start-mongod
shell: bash
script: |
mkdir -p bin
make start-mongod > bin/mongod-logs.txt 2>&1
- command: subprocess.exec
type: setup
params:
Expand Down

0 comments on commit 4ba4674

Please sign in to comment.