From f822e4c9380350ecea95ca9a8c93be5ad74a525b Mon Sep 17 00:00:00 2001 From: Anthony Lukach Date: Mon, 27 Jul 2026 14:27:38 -0700 Subject: [PATCH] ci: retry smoke tests to absorb Cloudflare edge propagation flakes Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/deploy.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e3462e9..dbeadbc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -144,4 +144,11 @@ jobs: - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 - name: Run smoke tests - run: uvx --with pytest,boto3,requests pytest tests/smoke/ -v + # A freshly deployed script propagates per edge machine, not per + # hostname: for a few seconds after deploy some requests to the same + # workers.dev host are answered by a machine that doesn't have it yet + # and get Cloudflare's HTML "Page not found" 404, while neighbouring + # requests in the same second succeed. No probe loop in the deploy job + # can gate on that (it may keep hitting warm machines), so retry here. + # A real regression still fails every rerun. + run: uvx --with pytest,boto3,requests,pytest-rerunfailures pytest tests/smoke/ -v --reruns 4 --reruns-delay 5