Skip to content

Merge feat/driver-init-failure-event-v9 - #417

Merged
bsautomation merged 13 commits into
sdk_v9_pre_prodfrom
feat/driver-init-failure-event-v9
Dec 4, 2026
Merged

bsautomation merged 13 commits into
sdk_v9_pre_prodfrom
feat/driver-init-failure-event-v9

Conversation

@bsautomation

@bsautomation bsautomation commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Merge into sdk_v9_pre_prod :by automationbs

kamal-kaur04 and others added 13 commits December 1, 2026 15:20
When the WebDriver new-session request fails or hits connectionRetryTimeout,
the WDIO runner calls the service's `after` hook without ever calling
`before`. Detect that in the worker (same path for the CLI and direct flows,
since only the client sees the outcome) and send one `DriverInitFailure`
sdk_events record to EDS, keyed by the TestHub build uuid, with the same
payload shape as the Node SDK. The send is bounded, resent only when EDS
sheds it with 429/503, and never throws into the run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…_day formatter

The awaited send in the worker after hook could hold teardown for about
29s (4 attempts x 5s timeout plus backoff). All attempts now share a 10s
deadline: each attempt's timeout is capped at the time remaining, a
backoff that would overrun it is skipped, and sending stops once it is
spent. Resends stay limited to 429/503 and at most 4 attempts.

formatCreatedDay moves to its own module so performance-tester can use
it without an import cycle through funnelInstrumentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…runcation within the byte cap

Truncation now backs off to the last whole code point so the message stays
valid UTF-8 and never exceeds 8000 bytes. URL userinfo and the access key and
username values are masked before the message is logged or sent, and a failed
send logs only the error message. The uploadEventsData test restores
fsPromises.access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… coverage

Cap the message before scrubbing and anchor the userinfo pass on the
scheme delimiter so a long input cannot stall the failure path. Also mask
Basic/Bearer values, key-style parameters, the base64 and URL-encoded
credential forms, and match the username only as a whole token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wdio exposes the session creation error only on runner:end, after the
service's after() hook, so a small always-on reporter now sends the
event from onRunnerEnd and holds the reporter sync until it settles.
The request webdriver appends to the error, whose capabilities carry
the credentials, is cut before the existing scrub. The send deadline
follows reporterSyncTimeout. When the reporter is absent or the runner
error is empty, the previous synthetic message is sent instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bsautomation
bsautomation requested a review from a team as a code owner December 4, 2026 13:00
@bsautomation
bsautomation requested review from AdityaHirapara and dandonarahul2002 and removed request for a team December 4, 2026 13:00
@coderabbitai

coderabbitai Bot commented Dec 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto (fallback from Default branch)
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML (base), Organization UI (inherited), Workspace UI (inherited); Enforced overrides: Organization
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: f2ffae3f-3ea1-4ba4-93ff-6850574a47df

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@bsautomation
bsautomation merged commit f54ae28 into sdk_v9_pre_prod Dec 4, 2026
23 of 27 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