Commit 5ef19b3
feat(async-config-poll): add BLOCK_BOOT_ON_WATCH to block boot on the config watch (#148)
Env-gated (replay-only) mode: init() does a synchronous GET
/v1/buckets/app-config?watch=true and blocks boot until it returns, the
shape a synchronously-blocking config client hits. Lets the keploy
async-config-poll e2e reproduce the boot deadlock — the old anchor-hold
async engine parks the poll (app never ready) while the value-epoch engine
serves the startup epoch immediately (app boots). When unset (default /
record path, and the periodic + httppoll scenarios) the watch keeps running
on the background daemon, unchanged.
Pairs with keploy/keploy#4379.
Signed-off-by: Aditya Sharma <aditya282003@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4b3b4fc commit 5ef19b3
1 file changed
Lines changed: 18 additions & 2 deletions
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
| |||
0 commit comments