GitHubivarvong

ply

main
ply7 git calls97 ms19 KiB4 cachedprotocol v2
46 lines2.4 KiBRaw
1name: Notify ply-web
3# ply-web deploys what this announces, so a commit is announced only after ci judged it green. `push` fired before
4# anything had run: on 2026-11-11 three red commits on main were each dispatched. workflow_run fires when a ci run
5# finishes; the job below sends only for a successful run of a push to this repository's main.
6on:
7 workflow_run:
8 workflows: [ci]
9 types: [completed]
11# The dispatch uses PLY_WEB_DISPATCH_TOKEN, not GITHUB_TOKEN.
12permissions: {}
14# One dispatch at a time per judged commit; a re-run of ci for the same commit queues behind the first.
15concurrency:
16 group: notify-ply-web-${{ github.event.workflow_run.head_sha }}
17 cancel-in-progress: false
19jobs:
20 dispatch:
21 # head_branch alone is not enough: a pull request from a fork's `main` also has head_branch main. The run must be
22 # a push, in this repository, to main, and it must have succeeded (cancelled, skipped and failure all stay silent).
23 if: >-
24 github.event.workflow_run.conclusion == 'success' &&
25 github.event.workflow_run.event == 'push' &&
26 github.event.workflow_run.head_branch == 'main' &&
27 github.event.workflow_run.head_repository.full_name == github.repository
28 runs-on: ubuntu-24.04
29 steps:
30 - name: Dispatch ply-main-updated
31 env:
32 PLY_WEB_DISPATCH_TOKEN: ${{ secrets.PLY_WEB_DISPATCH_TOKEN }}
33 # The commit ci judged. In a workflow_run workflow the default sha context is main's tip when this run
34 # starts, which may be a later commit that nothing has judged yet.
35 COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
36 run: |
37 set -euo pipefail
38 [[ "${COMMIT_SHA}" =~ ^[0-9a-f]{40}$ ]] || { echo "::error::head_sha is not a 40-hex commit id: '${COMMIT_SHA}'"; exit 1; }
39 if [ -z "${PLY_WEB_DISPATCH_TOKEN}" ]; then
40 echo "::notice title=ply-web not notified::PLY_WEB_DISPATCH_TOKEN is not set. Add a fine-grained PAT with Contents: Read and write on ivarvong/ply-web. ci passed for ${COMMIT_SHA} but repository_dispatch was not sent."
41 exit 0
42 fi
43 # COMMIT_SHA is the commit ci passed. ply-web resolves main itself.
44 GH_TOKEN="${PLY_WEB_DISPATCH_TOKEN}" gh api --method POST repos/ivarvong/ply-web/dispatches --input - <<EOF
45 {"event_type":"ply-main-updated","client_payload":{"sha":"${COMMIT_SHA}"}}
46 EOF
Diagnostics7 git calls · 97 ms
CallStatusSizeTime097 ms
discover200191 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=191
git.server.agent=git/github-9922ec520325-Linux
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch server-option object-format
git.server.fetch=shallow wait-for-done filter
git.protocol.version=2
git.pkt.frames=9
git.pkt.data=7
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=191
git.pkt.payload.max=36
ls-refs20012 KiB4 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=11990
git.response.cache=UPDATING
git.response.duration_ms=4
git.protocol.version=2
git.pkt.frames=152
git.pkt.data=151
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=11990
git.pkt.payload.max=122
git.ls_refs.count=151
git.ls_refs.head=refs/heads/main
fetchtree:0 · deepen 102004.2 KiB · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
git.response.bytes=4347
git.response.cache=HIT
git.response.duration_ms=2
git.fetch.filter=tree:0
git.fetch.wants=19912563f540228593df0c489082e5e2508e21e4
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=7
git.pkt.data=5
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=4347
git.pkt.payload.max=4247
git.sideband.band1.bytes=4247
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=10
git.pack.bytes=4247
git.pack.ofs_delta=0
git.pack.ref_delta=0
git.pack.chain.max=0
git.pack.trailer=a6caf8e129bea82c9bae4cbc7c130c9205add400
git.pack.full=10
Open pack map
fetchtree:0200919 B · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=919
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=tree:0
git.fetch.wants=800d30ba8923860bfc460ca884b7f9ba22083588
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=4
git.pkt.data=3
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=919
git.pkt.payload.max=892
git.sideband.band1.bytes=892
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=1
git.pack.bytes=892
git.pack.trailer=5323b9266eea5ded637285d1c5320699f12be76e
Open pack map
fetchtree:0200143 B · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
git.response.bytes=143
git.response.cache=HIT
git.response.duration_ms=2
git.fetch.filter=tree:0
git.fetch.wants=acaa5a302ae76735950954bedde15c5073911dff
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=4
git.pkt.data=3
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=143
git.pkt.payload.max=116
git.sideband.band1.bytes=116
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=1
git.pack.bytes=116
git.pack.trailer=14c5da7c3898ed3ab371e1548304ea110a893c7f
Open pack map
fetchtree:0200206 B · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=206
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=tree:0
git.fetch.wants=1d0ad94ed315cb03775b57547f074d530e4acc80
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=4
git.pkt.data=3
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=206
git.pkt.payload.max=179
git.sideband.band1.bytes=179
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=1
git.pack.bytes=179
git.pack.trailer=c9ad2e83a5acba191285d2448625f70de0746fab
Open pack map
fetch2001.2 KiB83 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=83
git.response.bytes=1238
git.response.cache=MISS
git.response.duration_ms=83
git.fetch.wants=7959112160205774a89ddd79d469285403bb4c79
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=4
git.pkt.data=3
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=1238
git.pkt.payload.max=1211
git.sideband.band1.bytes=1211
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://github.com/ivarvong/ply
Ref
refs/heads/main
Commit
19912563f540228593df0c489082e5e2508e21e4
cf-ray
a5e2dbce0a14c125
Request
a0cb6ea7…
Protocol
v2 · sha1
Agent
git/github-9922ec520325-Linux
Filter
advertised
Fetch
shallow wait-for-done filter
Capabilities
agent ls-refs fetch server-option object-format