Artifactspublic-v0

ply

main
ply4 git calls232 ms40 KiB2 cachedprotocol v2
33 lines3.9 KiBRaw
1// What each error code means and where it comes from. Documentation for humans and tooling; the runtime table is
2// errors.ts (RETRY); `satisfies` makes the table exhaustive over Code at compile time, test/pure.test.js at run time.
3import type { Code } from './errors.js';
5export type CodeDoc = { readonly where: 'local' | 'remote' | 'net' | 'content'; readonly what: string };
6export const CODE_DOCS: Readonly<Record<Code, CodeDoc>> = Object.freeze({
7 bad_request: { where: 'local', what: 'an argument is malformed (ref, ident, path, oid, message, find, files: a duplicate or file/directory path; checkout: a non-empty dir, or a path that collides or would pass through a symlink)' },
8 unsupported: { where: 'remote', what: 'the server lacks a capability we need (sha256 repo, no filter, push-options not advertised, no protocol v2: what "protocol version")' },
9 network: { where: 'net', what: 'connection failed or dropped before a response was complete' },
10 timeout: { where: 'net', what: 'a request stalled past limits.firstByteTimeoutMs or limits.idleTimeoutMs, a consumer held a chunk past limits.heldTimeoutMs, or ran past an opt-in limits.requestTimeoutMs; `what` names the limit' },
11 aborted: { where: 'local', what: 'the caller\'s AbortSignal fired' },
12 http: { where: 'remote', what: 'an HTTP status we do not classify further, including any 3xx: redirects are not followed (status, location)' },
13 auth: { where: 'remote', what: '401/403' },
14 not_found: { where: 'remote', what: 'repository, ref, path or commit does not exist; miss.kind says which' },
15 rate_limited: { where: 'remote', what: 'HTTP 429; retry after a delay' },
16 upstream_5xx: { where: 'remote', what: 'HTTP 5xx' },
17 not_git: { where: 'remote', what: 'the endpoint is not a git smart-HTTP server (wrong content-type)' },
18 protocol: { where: 'remote', what: 'malformed pkt-line / v2 framing from the server; reason empty_response for a fetch answer with nothing in it' },
19 pack_corrupt: { where: 'remote', what: 'a pack or object failed verification (hash, size, zlib, delta; an unwanted object; a tree naming one entry twice)' },
20 remote_error: { where: 'remote', what: 'the server said ERR / band 3; reason not_our_ref when the text is upload-pack\'s not-our-ref' },
21 limit_exceeded: { where: 'local', what: 'a limits.* bound was hit before allocation, or a remote receive-pack rejected the request as too large (what, got, max; a byte budget charges LIMIT_OBJECT_OVERHEAD per object on top of its bytes)' },
22 match_count: { where: 'content', what: 'find matched 0 or >1 times (exactly-one-match contract)' },
23 lfs_pointer: { where: 'content', what: 'the blob is a Git LFS pointer (pass allowLfsPointer to edit it)' },
24 cas_conflict: { where: 'remote', what: 'the ref moved under us (receive-pack compare-and-swap lost)' },
25 push_rejected: { where: 'remote', what: 'a hook or policy refused the push; see hookOutput / remote messages' },
26 push_partial: { where: 'remote', what: 'a non-atomic multi-ref push was partly applied: `landed` lists the refs updated, `rejected` the refs refused with their reasons' },
27 merge_conflict: { where: 'content', what: 'both sides changed a path; `conflicts` lists them' },
28 not_fast_forward: { where: 'content', what: 'fastForwardOnly was requested and a merge commit would be needed, or the server refuses non-fast-forward updates (receive.denyNonFastForwards) and the pushed commit does not descend from the old oid, or pushRepo / syncRef refused one before sending (no force)' },
29 unrelated_histories: { where: 'content', what: 'no common ancestor within the search depth' },
30 not_linear: { where: 'content', what: 'a merge commit in a chain that must be linear (rebase, pick)' },
31 ambiguous: { where: 'remote', what: 'the push was sent and may have been applied, but no trustworthy confirmation was obtained' },
32 internal: { where: 'local', what: 'an invariant of this library failed; please report' },
33} satisfies Record<Code, CodeDoc>);
Diagnostics4 git calls · 232 ms
CallStatusSizeTime0232 ms
discover200152 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200145 B · hit3 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=145
git.response.cache=HIT
git.response.duration_ms=3
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=145
git.pkt.payload.max=76
git.ls_refs.count=2
git.ls_refs.head=refs/heads/main
fetchblob:none · deepen 1020038 KiB · hit7 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=222
git.response.bytes=38434
git.response.cache=HIT
git.response.duration_ms=7
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
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=6
git.pkt.data=4
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=38434
git.pkt.payload.max=38339
git.sideband.band1.bytes=38338
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=63
git.pack.bytes=38338
git.pack.ofs_delta=0
git.pack.ref_delta=8
git.pack.chain.max=8
git.pack.trailer=0bc36ab7adf82d3109177f11f1ea93f1ce071f77
git.pack.full=55
Open pack map
fetch2001.8 KiB222 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1824
git.response.cache=MISS
git.response.duration_ms=222
git.fetch.wants=f54e9b1dcaa7d2e97ed557a48eb0cbe5de14d321
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=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=1824
git.pkt.payload.max=1803
git.sideband.band1.bytes=1802
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://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/ply.git
Ref
refs/heads/main
Commit
19912563f540228593df0c489082e5e2508e21e4
cf-ray
a5e2dbc6dd5dc125
Request
895b99cd…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format