Repository navigation
Keep the security smoke from waiting behind scans it caused - #1015
Conversation
While the smoke has scanning on, other staging deploys (kitchen-sink) get their own scan. Only one scan runs per @cf model, and turning the policy Off cancels queued scans only, so on the 1.13 release a 29-minute kitchen-sink scan held the next smoke scan in the queue for 26 minutes. The first run also started while staging was still deploying the same push, so the platform was replaced mid-scan. - CI waits until no staging deploy is running before the smoke starts. - The smoke cancels other projects' policy-driven scans that appear during its run, while its own scan waits and after it turns the policy Off. It turns the policy Off before deleting its project, and names other running scans it may wait for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 581dc3d206
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.
Updated: |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Slop Review:
|
…cked before Off. GitHub checks the permissions of every job in a called workflow, even skipped ones, so the staging deploy must grant the security job's `actions: read`. Cleanup picks the scans this run caused before it turns the policy Off, so a scan someone starts after Off is left alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 1.13 release spent about an hour on the staging security smoke (
scan_tglrq85sjqv2,scan_mw5gklue3p4j).What happened
Times come from the logs of both smoke runs and the two "Deploy Platform Staging" runs beside them. The smoke deletes its project, and the scan rows go with it, so which session made scan 1
run_incompletecan no longer be read.Changes
platform-deploy-staging.ymlrun is active (.github/scripts/wait-for-staging-deploys.ts,actions: read, timeout 270 min)deploy/recovery/exposure/sweep/backfill/fallbackscans, only while the policy still has the settings it applied. Gate, rescan and local scans are never touched.Not changed
Each scan still takes about 8–15 minutes. The proxy allows 10
@cfcalls a minute per model (call-ledger.ts:13, spec D24), so each call waits about 6 s, and a scan of the fixture makes about 90–150 calls. The default model allows 20 a minute (50 with prepaid gateway credits). Raising the guard is a product call and is left out of this PR.Tests
platform/packages/api/test/smoke-security-flow.test.ts: 25 pass, 7 new. The fake API now refuses calls with an aborted signal, as the real client does. The signal case fails when the bug is put back.🤖 Generated with Claude Code