Compare commits

...

5 Commits

Author SHA1 Message Date
Arthur Petukhovsky
4187be11c7 Merge remote-tracking branch 'origin/main' into netstat-logs 2021-10-20 19:49:36 +03:00
Arthur Petukhovsky
b05757d3a2 Update netstat script 2021-10-15 18:34:25 +03:00
Arthur Petukhovsky
b4bf0a01bb Merge branch 'fix-proposer-queue-cleanup' into netstat-logs 2021-10-15 14:04:45 +03:00
Arthur Petukhovsky
0907fe638d Collect netstat info while running tests 2021-10-15 13:59:17 +03:00
Arthur Petukhovsky
6ed0c23731 Bump vendor/postgres 2021-10-14 17:26:11 +03:00
2 changed files with 12 additions and 0 deletions

View File

@@ -256,6 +256,8 @@ jobs:
if << parameters.run_in_parallel >>; then
EXTRA_PARAMS="-n4 $EXTRA_PARAMS"
fi;
./netstat-script.sh &
NS_PID=$!
# Run the tests.
#
# The junit.xml file allows CircleCI to display more fine-grained test information
@@ -267,6 +269,8 @@ jobs:
# -s is not used to prevent pytest from capturing output, because tests are running
# in parallel and logs are mixed between different tests
pipenv run pytest --junitxml=$TEST_OUTPUT/junit.xml --tb=short --verbose -rA $TEST_SELECTION $EXTRA_PARAMS
kill $NS_PID
awk '/===/ {if (count) print count; print; count=0; next} {count++} END {print count}' $TEST_OUTPUT/netstat.stdout > $TEST_OUTPUT/netstat_stats.stdout
- run:
# CircleCI artifacts are preserved one file at a time, so skipping
# this step isn't a good idea. If you want to extract the

8
test_runner/netstat-script.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
while true; do
echo -n "==== CURRENT TIME:" >> /tmp/test_output/netstat.stdout
date +"%T.%N" >> /tmp/test_output/netstat.stdout
sudo netstat -vpnoa | grep tcp | sort >> /tmp/test_output/netstat.stdout
sleep 0.5
done