Skip to content

Stage->Prod - #547

Merged
parthlambdatest merged 2 commits into
prodfrom
stage
Aug 4, 2026
Merged

Stage->Prod#547
parthlambdatest merged 2 commits into
prodfrom
stage

Conversation

@shrinishLT

Copy link
Copy Markdown
Contributor

No description provided.

shrinishLT and others added 2 commits July 31, 2026 16:06
… hang the build

On rate-limited/WAF-protected sites the target can crash mid-capture (page.goto:
Page crashed / setViewportSize: Target crashed). page.close()/context.close()
then never resolve on the dead target, so the capture promise never settles,
Promise.allSettled never returns and finalizeBuild is unreachable — the build
stays 'running' until the job times out (seen as ~30 minute scans). Evidence
from an instrumented run: 12 'closing page/context' vs 11 'page/context closed'.

Race the teardown against BROWSER_CLOSE_TIMEOUT (15s) and continue if it does
not return; closeBrowsers() force-kills the browser process afterwards.

Scope: this fixes only the hang, so the build completes quickly. Screenshots may
still show Access Denied after the first few captures — that is the customer's
WAF rate limiting and is resolved only once the HYE VMs are whitelisted.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix(TE-23055): bound page/context teardown so a crashed target cannot hang the web scanner build
@parthlambdatest
parthlambdatest merged commit 8bd312c into prod Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants