Skip to content

Commit

Permalink
chore: track bazel server memory usage after test task (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Apr 25, 2024
1 parent 98aff25 commit 74f95b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .aspect/workflows/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ tasks:
command: vmstat -a -S M -t 1 2>&1 > vmstat.out &
- type: after_task
command: cat vmstat.out
- type: after_task
command: |
SERVER_PID=$(bazel --nohome_rc --bazelrc=.aspect/workflows/bazelrc info --aspect:lock_version --config=workflows server_pid)
ps -p $SERVER_PID -o pid,vsz=MEMORY -o user,group=GROUP -o comm,args=ARGS
cat /proc/$SERVER_PID/status
artifact_paths:
- vmstat.out
coverage: true
Expand Down

0 comments on commit 74f95b2

Please sign in to comment.