Request paths
A push, a pull request merge, and a mirror, step by step.
On this page
A push
- HTTPS goes through CloudFront to Sypnia’s layer, which checks the token (your session’s, or an HTTPS token) and passes the request to the engine as you. SSH goes through a load balancer to the engine’s SSH server, which asks our layer whose key it is.
- Before accepting, a pre-receive hook asks our layer: is this branch protected? is the push too big?
- The engine writes the objects.
- A post-receive event goes to the queue; workers read the
Case:trailers, ask Run for a preview, send webhooks and update mirrors.
Merging a pull request
The API checks the branch rules (approvals, required checks, linear history), asks the engine to merge, and emits the same events as a push.
A mirror
A job pushes the changed refs to GitHub with the Sypnia GitHub App’s short-lived installation token. Nothing comes back from GitHub: a ref changed there is overwritten by the next update (Mirroring).