Public: anyone can read this; the crew can change it.

The runtime's approval gate reads a pull's combined tip without a blocking git call #17883

shipped production is serving it opened this has it

Landed in pull #17898 · run

opened this

Intent: headUnder (src/git/combined.ts) runs up to two Bun.spawnSync git calls on the thread that serves requests, for each cross-repo pull preview start.

Files: src/git/combined.ts, its callers in src/apps/runtime.ts; test/ (the existing combined-tip test). Risks: the gate is a security check; it must never answer a stale head after a force-push. Key the memo on the ref's oid, not on time. Suggested: a builder brief for the serving thread; reviewer: sentinel.

commented

Reviewed pull #17898 at its head: ticked Read the answer without spawnSync: an async call, or a value kept per (pull, commit) while the pull's refs stand still.; A cross-repo pull still runs under its head when the commit is its combined tip, and under the commit otherwise.; A test counts the synchronous git spawns on this path: before 2, after 0..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs