Skip to content

Sdk 6983 flush on signal v8 - #103

Merged
hamza-browserstack merged 4 commits into
sdk_v8_pre_prodfrom
SDK-6983-flush-on-signal-v8
Jul 27, 2026
Merged

Sdk 6983 flush on signal v8#103
hamza-browserstack merged 4 commits into
sdk_v8_pre_prodfrom
SDK-6983-flush-on-signal-v8

Conversation

@hamza-browserstack

Copy link
Copy Markdown
Contributor

What is this about?

Related Jira task/s

Release (mandatory for every PR — required for the ready-for-review label)

Version bump: (required — tick exactly one)

  • minor (backwards-compatible feature)
  • patch (bug fix or other small change)

Release notes type: (optional)

  • New Feature
  • Bug Fix
  • Other Improvement

Release notes (customer-facing): (optional but encouraged)

Release notes (internal): (required — engineer-facing; what actually changed / why)

Checklist

  • Ready to review
  • Has it been tested locally?

PR Validations

Run Tests: Comment RUN_TESTS to trigger sanity tests.

kamal-kaur04 and others added 4 commits July 24, 2026 10:45
Port of the v9 fix (SDK-6983-flush-on-signal): killed runs lose the
logs.tar.gz upload because it only runs in launcher.onComplete. Rescue it
from the exit-time detached cleanup (--uploadLogs, gated by a logsUploaded
flag), snapshot funnelData credentials before fireFunnelRequest redacts
them in place, and forward exitSignal/exitReason on StopBinSession so the
binary stamps finished_metadata (v8 already had signal capture, user_killed
funnel telemetry, and killSignal-aware stopBuildUpstream).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…aded on delivery

Signal listeners suppress Node's default termination, so a hung shutdown
never fires 'exit' and skips the cleanup rescue — force a 128+n exit after a
grace window. Only mark logsUploaded when the server actually accepted the
upload (a truthy response can still carry a non-success status).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hamza-browserstack
hamza-browserstack requested a review from a team as a code owner July 27, 2026 17:32
@hamza-browserstack
hamza-browserstack requested review from anish353 and yashdsaraf and removed request for a team July 27, 2026 17:32
@hamza-browserstack
hamza-browserstack merged commit 3912c82 into sdk_v8_pre_prod Jul 27, 2026
9 of 11 checks passed
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