Repository navigation
Commit 2dcc4ce
committed
fix(webhooks): poll GitHub's live test merge every 2s and build our own when it is unreachable
The probe now runs immediately, then every two seconds up to a bounded
budget, and accepts a merge as soon as its second parent is the payload
head — including when the API has already moved to a newer head, which is
the measured rapid-push race. A first parent older than the API's base is
logged, not rejected: GitHub freezes a head's merge when only the base
moves and its own run for the push used that commit.
When no merge of the payload head can be resolved, the engine builds
merge(current base tip, payload head) with the merge builder and serves
the run from its own mirror, with a warning. The bare
`refs/pull/{n}/head` fallback is gone.1 parent acdfcd1 commit 2dcc4ce
3 files changed
Lines changed: 972 additions & 435 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
0 commit comments