From 415b591d179f8e2056370153f4d959b88f70e18a Mon Sep 17 00:00:00 2001 From: peterstone2017 <12449837+YunchuWang@users.noreply.github.com> Date: Sat, 6 Jan 2024 22:25:05 -0500 Subject: [PATCH] Update perf-testing-setup.yml --- .github/workflows/perf-testing-setup.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/perf-testing-setup.yml b/.github/workflows/perf-testing-setup.yml index de7761c8..3695f7f2 100644 --- a/.github/workflows/perf-testing-setup.yml +++ b/.github/workflows/perf-testing-setup.yml @@ -95,6 +95,8 @@ jobs: echo "Tests completed, terminating py-spy..." echo "Py-Spy pid is $py_spy_id" # docker exec $container_id sh -c "kill -2 $py_spy_id" + py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}') + echo "Py-Spy pid is $py_spy_id" docker exec $container_id sh -c "ls -ltr /home/site/wwwroot" docker exec $container_id sh -c "ls -ltr" sleep 40