Repo latency during uploads
took 0s Raw logs
Failed at Time git ls-remote and a REST call every half second for 3 minutes
Process completed with exit code 127.
: > lat.txt
while [ "$(date +%s)" -lt "$end" ]; do
t=$(date +%s.%N)
a=$( { /usr/bin/time -f %e git ls-remote -q "https://x-access-token:${GH_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" refs/heads/main >/dev/null; } 2>&1 | tail -1)
b=$(curl -s -o /dev/null -w '%{time_total}' -H "Authorization: Bearer $GH_TOKEN" "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/branches/main")
echo "$(printf '%.0f' "$t") $a $b" >> lat.txt
sleep 0.5
done
start=$(head -1 lat.txt | cut -d' ' -f1)
awk -v s="$start" '{ b=int(($1-s)/30)*30; n[b]++; g[b]+=$2; r[b]+=$3; if ($2>gm[b]) gm[b]=$2; if ($3>rm[b]) rm[b]=$3 }
END { for (k in n) printf "t+%3ds: %3d samples, ls-remote avg %.2fs max %.2fs, REST avg %.2fs max %.2fs\n", k, n[k], g[k]/n[k], gm[k], r[k]/n[k], rm[k] }' lat.txt | sort -t+ -k2 -n
env:
GH_TOKEN: ***Set up job
Diffinery runner: job latency (Repo latency during uploads) for codician/diffinery@0f4dbf9fee49Runner: image diffinery-runner:dfb768929ca5ce308febdab6, in mrs04, WEUR, container 6825e9357d512b24bbf23803991144a82f8f5de0171e2952d1fa7e36cb1d1afaRunner size: small (0.5 of a vCPU, 4 GiB of memory, 8 GB of disk), asked for by runs-onHost: AMD EPYC (family 25, model 17), 1 vCPUs, 2546 MHzWorkspace: /workspace/diffineryHost: 0% of the vCPUs' time went to other work on the host (steal)Job completed with conclusion: failureResources: 0.5 of 0.5 vCPUs busy on average (0.0 at the 95th percentile), peak memory 0.2 GiB of 4.1 GiB, peak disk 1.1 GB of 7.7 GB
Time git ls-remote and a REST call every half second for 3 minutes0s
##[group]Run end=$(( $(date +%s) + 180 )): > lat.txtwhile [ "$(date +%s)" -lt "$end" ]; do t=$(date +%s.%N) a=$( { /usr/bin/time -f %e git ls-remote -q "https://x-access-token:${GH_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" refs/heads/main >/dev/null; } 2>&1 | tail -1) b=$(curl -s -o /dev/null -w '%{time_total}' -H "Authorization: Bearer $GH_TOKEN" "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/branches/main") echo "$(printf '%.0f' "$t") $a $b" >> lat.txt sleep 0.5donestart=$(head -1 lat.txt | cut -d' ' -f1)awk -v s="$start" '{ b=int(($1-s)/30)*30; n[b]++; g[b]+=$2; r[b]+=$3; if ($2>gm[b]) gm[b]=$2; if ($3>rm[b]) rm[b]=$3 } END { for (k in n) printf "t+%3ds: %3d samples, ls-remote avg %.2fs max %.2fs, REST avg %.2fs max %.2fs\n", k, n[k], g[k]/n[k], gm[k], r[k]/n[k], rm[k] }' lat.txt | sort -t+ -k2 -nenv: GH_TOKEN: ***##[endgroup]##[error]Process completed with exit code 127.