Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1243
check docker-dev build request durations
Active
Public
Actions
Authored by
vsellier
on Dec 14 2021, 9:46 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
#!/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
Event Timeline
vsellier
created this paste.
Dec 14 2021, 9:46 AM
2021-12-14 09:46:28 (UTC+1)
vsellier
mentioned this in
T3778: The docker-dev build is often failing
.
Dec 14 2021, 9:50 AM
2021-12-14 09:50:27 (UTC+1)
Log In to Comment