Page MenuHomeSoftware Heritage
Paste P1243

check docker-dev build request durations
ActivePublic

Authored by vsellier on Dec 14 2021, 9:46 AM.
#!/bin/bash
id=$1
echo Getting the logs...
wget -O /tmp/log https://jenkins.softwareheritage.org/job/swh-docker-dev/$id/consoleText
echo Extract storage logs
grep "swh-storage_1.*HTTP/" /tmp/log > /tmp/storage.log
echo Extract nginx logs
grep "nginx_1.*curl" /tmp/log > /tmp/nginx.log
echo "Requests >1s in storage"
grep -v " [0-9]\{1,3\}$" /tmp/storage.log
echo
echo
echo "Requests > 1s in nginx"
grep -v " 0\.[0-9]\{1,3\}$" /tmp/nginx.log