Skip to content

Merge feat/SDK-7358-version-nudges - #229

Merged
bsautomation merged 7 commits into
sdk_v9_pre_prodfrom
feat/SDK-7358-version-nudges
Sep 24, 2026
Merged

bsautomation merged 7 commits into
sdk_v9_pre_prodfrom
feat/SDK-7358-version-nudges

Conversation

@bsautomation

Copy link
Copy Markdown

Merge into sdk_v9_pre_prod :by automationbs

shivamku-BS and others added 7 commits September 16, 2026 13:33
…7358)

The binary returns CustomerVisibleSummaryEntry items on StopBinSessionResponse
for end-of-build messages such as the SDK version nudge. The service had neither
the proto field nor a renderer, so those messages were dropped for every wdio
customer running through the CLI path.

Adds the proto field and a renderer that writes `body` verbatim, picks the
stream from `severity` (warn/warning/error -> stderr, everything else including
unknown -> stdout so a malformed severity cannot trip CI stderr watchers), and
archives a copy to the log file for runners that keep only the log directory.

Deliberately does not branch on `entry_type`, so future entry types need no
further service change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…e (SDK-7358)

Two changes to the end-of-build summary rendering added in this PR.

Colour: a warn entry (an outdated SDK) is tinted yellow and an error entry
(a deprecated one) red, with the block's first line of text emphasised.
Lines are wrapped and reset individually rather than the block as a whole,
so a truncated or interleaved write cannot leave the customer's terminal
stuck in colour. Applied to the stream copy only — the archived copy stays
plain, because escape codes reach a log file as literal bytes and break
anchored searches over it.

Archiving: switch from the info/warn/error helpers to logToFile. Those
helpers also call @wdio/logger, which writes to the console, so the
customer saw the block twice — once raw from the stream write, once
prefixed by the logger. logToFile writes to the log file only.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…over attachment fields

Review follow-up on SDK-7358.

1. renderCustomerVisibleSummary wrapped the whole `for (const entry of
   entries)` loop in one try/catch, so a stream that rejected entry N
   aborted the loop: entries N+1.. were neither written nor archived.
   Only one entry exists today (the version nudge), but the proto is
   explicitly built for more entry types, so the gap widens as they are
   added. The catch now sits inside the loop body, and the archived copy
   is written before the stream write so archival no longer depends on
   the write succeeding. The outer catch stays — stopBinSession rethrows,
   so a throw escaping this method would cost the caller its response.

   This is the same defect and fix as the v8 port (#201).

2. Adds the missing test for the fileName/fileSize/filePath passthrough
   in logCreatedEvent. Those fields are unrelated to the summary-entry
   feature and arrived in this PR undocumented and uncovered; this locks
   their behaviour rather than leaving an untested drive-by. Whether the
   change belongs in its own PR is still worth a call.

Both new tests fail without their respective fix.

Package suite on Node 25: 56 files, 1259 tests, 0 failures.
tsc --noEmit exit 0, eslint exit 0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bsautomation
bsautomation requested a review from a team as a code owner September 24, 2026 13:22
@bsautomation
bsautomation requested review from anish353 and yashdsaraf and removed request for a team September 24, 2026 13:22
@coderabbitai

coderabbitai Bot commented Sep 24, 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

Configuration used: Central YAML (base), Organization UI (inherited), Workspace UI (inherited)

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 9fad0ad7-0c20-49b9-8fd7-0eb884240c80

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

Comment @coderabbitai help to get the list of available commands.

@bsautomation
bsautomation merged commit 2cf5d5f into sdk_v9_pre_prod Sep 24, 2026
19 of 21 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.

3 participants