Skip to content

Unblock the release and sync docs with main - #641

Open
Winify wants to merge 4 commits into
mainfrom
chore/release-prep
Open

Winify wants to merge 4 commits into
mainfrom
chore/release-prep

Conversation

@Winify

@Winify Winify commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Clears the way to cut a release from main. The npm release was blocked, and some docs had drifted from the code. This PR changes only changesets, Markdown and one workflow comment; no source code.

Release readiness (audit of main @ 257e7fb)

  • npm release: blocked, fixed here. .changeset/attempt-end-time-and-queued-scenario-feature.md named the private @wdio/devtools-core, so pnpm changeset status exited 1 ("Mixed changesets … not allowed"). release.yml runs changeset version, which fails the same way. Core is bundled into the service and selenium packages, which the changeset already names.
  • Missing changesets, added here: 85b5d9c (the service's own injection calls open no driver window) and ada9fd5 / 8a001dd (Nightwatch opens a driver window only for commands that call back).
  • Manifest bump stays minor. This is a deliberate choice; the changeset body already says the manifest format changed incompatibly.
  • Python 0.5.0 must follow the npm release. The native-element-tree fragment needs a backend that is not on npm yet (BACKEND_NPM_VERSION is still 2.2.0).
  • Already fine: CI green on main, no pre.json, npm latest matches every published package.json, capability tables in sync.

Changes

Commit 1: changesets and workflow

  • Remove the @wdio/devtools-core line from the mixed changeset.
  • Add service-no-driver-window-injection.md and nightwatch-no-driver-window.md (patch).
  • python-release.yml: correct the header comment. The job bumps __version__ itself with changes.py apply.

Commit 2: docs synced with the code

  • Broken commands: examples/nightwatch/README.md (pnpm example does not exist; now pnpm demo:nightwatch). packages/selenium-devtools/README.md (example:* scripts are package-scoped; now pnpm --filter). The truncated example: mentions in ARCHITECTURE.md and examples/README.md now list the real scripts.
  • Stale paths: examples/MOBILE.md (removed config file), packages/elements/ROADMAP.md (element-filter.ts now lives in trace).
  • Gaps: an otel entry in ARCHITECTURE.md and the PR template (with conformance). A manifest v2 note and the typing-read frame hold (at most 2 s) in README.md. A telemetry and artifacts-manifest section for adapter authors in docs/ADAPTERS.md. DEVTOOLS_CAPTURE_TIMING in the service, selenium and nightwatch READMEs.
  • File-size debt in the package CLAUDE.md files, updated to current wc -l counts.

Release steps after merge

  1. Merge this PR.
  2. Run Manual NPM Publish (release.yml). Expected bumps: minor for @wdio/devtools-backend, @wdio/devtools-service, @wdio/nightwatch-devtools, @wdio/selenium-devtools and @wdio/opentelemetry (first release, 0.1.0); patch for @wdio/devtools-app and @wdio/elements.
  3. Merge the backend pin-bump PR that release.yml opens. Bump BACKEND_NPM_VERSION and add ACTION_SNAPSHOT_PAGE_SOURCE_KEY to REQUIRED_BACKEND_NAMES in check_backend_pin.py (.claude/rules/releasing.md). If the PR was opened with GITHUB_TOKEN, close and reopen it to get checks.
  4. Run python-release.yml: selenium-devtools-py 0.5.0 (changes.py next-version), 7 fragments. Tag py-v0.5.0 only after the publish succeeds.
  5. Mirror the user-facing README changes to webdriverio/webdriverio website/docs/devtools/** (.claude/rules/capability-tables.md). This is not done in this PR.

Follow-ups, not in this PR

  • Bump levels worth a second look: native-page-source-capture (patch, but adds a capture) and the cucumber manifest-entry changesets (patch, but they change the manifest contract).
  • @wdio/devtools-app and @wdio/devtools-script are published to npm with no README.

Verification

  • pnpm changeset status: exit 0 (was 1 on main)
  • pnpm docs:capabilities --check: exit 0
  • pnpm typecheck: exit 0
  • pnpm lint: 0 errors (existing max-lines warnings only)
  • Every command, path, symbol and line count added was checked against source and package.json in a close-out review.

🤖 Generated with Claude Code

Winify and others added 2 commits November 29, 2026 14:02
changeset status failed on a changeset naming the private
@wdio/devtools-core package, which would also fail changeset version
in release.yml. Core is bundled into the adapters that already carry
the entry. Adds changesets for the driver-window fixes in service
(85b5d9c) and nightwatch (ada9fd5, 8a001dd), and corrects the
python-release.yml header, which still told maintainers to bump
__version__ by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes commands that do not exist (nightwatch example, root-level
selenium example scripts) and stale paths, adds the otel package to
ARCHITECTURE.md and the PR template, documents manifest v2, the
typing-read frame hold, the adapter telemetry/manifest contract and
DEVTOOLS_CAPTURE_TIMING, and refreshes file-size debt counts.

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

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
devtools Ready Ready Preview Dec 1, 2026 1:16pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed changes appear safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

Updates release metadata and brings documentation closer to the current code.

  • Release notes now name the public packages and driver-window updates.
  • Adapter guides now explain how telemetry manifests reach the OpenTelemetry exporter.
  • The password guide explains how reads hold JavaScript frames.
  • Example guides now show commands that match the repository scripts.
  • Adapter guides now explain where capture timing reports appear.
  • Maintainer notes now name current project areas and file-size counts.

Reviews (3) · Last reviewed commit: "Address review feedback on the release-p..." · Reviewed by Greptile

Comment thread examples/nightwatch/README.md Resolved
The example config traces by default, so the plain demo command
produced a trace file instead of the UI the section promises.

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

@vishnuv688 vishnuv688 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The release unblock is right: removing the private @wdio/devtools-core from the mixed changeset is what changeset version needs. My comments are about doc and changelog accuracy.

Two points that don't attach to a diff line:

  • Pre-existing, but this release would ship it: .changeset/otel-attempt-trace-ids.md says the manifest "now carries ... the cwd" and per-attempt trace ids, while manifest-relative-artifact-paths.md says the absolute cwd is gone and every attempt of a test shares one trace id. Both will land in the same CHANGELOG entry. Since this is the release-prep PR, could otel-attempt-trace-ids.md be reworded to describe the final state?
  • Website mirror: the user-facing README changes (manifest v2, the typing-read frame hold, DEVTOOLS_CAPTURE_TIMING) need the matching webdriverio/webdriverio website/docs/devtools/** update. .claude/rules/capability-tables.md asks for that in the same change, and deferring it means the docs site will be missing these when the release goes out.

Comment thread docs/ADAPTERS.md

`mode` is `'live' | 'trace' | 'telemetry'` (`DevToolsMode`, `packages/shared/src/types.ts`). `startsBackend(mode)` (`packages/shared/src/mode-traits.ts`) says whether a backend and window start. Telemetry starts neither and writes no zips, so the manifest is its only output.

An adapter does not write the manifest itself. It builds a `TraceExportContext` and awaits core's `finalizeTraceExport(ctx)` at the end of the run; the service's `#traceContext` and Selenium's `buildTraceExportContext` are the two examples. The call writes `devtools-artifacts-<sessionId>.json` (`artifactsManifestFilename`, `buildArtifactsManifest` and `writeArtifactsManifest` in `packages/core/src/artifacts-manifest.ts`) in every mode where the manifest is enabled, always in telemetry, and does not throw.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important: This guide is written for adapters in languages that can't import the TypeScript packages, so a Java or Ruby author can't build a TraceExportContext or call finalizeTraceExport. As written, §2e doesn't say what such an adapter has to do for telemetry or the manifest. Python, the guide's worked example, writes no manifest at all.

Suggestion: describe the manifest contract a non-JS adapter must produce (filename, manifestVersion, required fields), or say that telemetry and the manifest are JS-only today and the Python adapter doesn't write one.

Also, the "Field-level reference" pointer two lines down (examples/o11y/README.md) has no field reference; see my comment on README.md.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 6cf52a9: §2e now says telemetry and the manifest are JS-only today (the Python adapter writes none), and points at packages/shared/src/artifacts-manifest.ts as the schema.

'@wdio/nightwatch-devtools': patch
---

The filmstrip no longer holds its poll for a Nightwatch command that never calls back from the driver, such as `browser.element()`, `actions()` or a custom command that never calls its `done` callback. A driver window now opens only for input commands, commands the trace maps to an action, and known driver reads.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The filmstrip driver-window gate this fixes was added in 573a886, after the last npm release (c3b6242), and filmstrip-poll-queue.md, which introduces it, is still pending. The CHANGELOG would announce that a hold users never had "no longer" happens, right next to the entry that adds the gate. Same for service-no-driver-window-injection.md ("used to hold the filmstrip's poll"). Could both be folded into filmstrip-poll-queue.md?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 6cf52a9: both folded into filmstrip-poll-queue.md.

Comment thread README.md Outdated

To export telemetry, install [`@wdio/opentelemetry`](packages/otel/README.md) and push the manifests after the run, with `OTEL_EXPORTER_OTLP_ENDPOINT` set: `npx wdio-otel push test-results/devtools-artifacts-*.json`. Each test attempt becomes a span. Its attributes let you slice the spans by commit and branch, CI pipeline (detected on GitHub Actions and GitLab CI, or set in `OTEL_RESOURCE_ATTRIBUTES`), browser, spec and session.

The manifest is format version 2 (`manifestVersion: 2`). Artifact paths are relative to the manifest's directory, so the directory can move. The attempt that decided a test carries `final: true`. The absolute `cwd` field is gone. Without a `TRACEPARENT`, every attempt of one test shares a trace id derived from `DEVTOOLS_RUN_ID` and the test's uid. Field-level reference: [examples/o11y/README.md](examples/o11y/README.md).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Two things in this paragraph:

  1. "Field-level reference: examples/o11y/README.md": that README covers the wdio-otel CLI, Tempo queries and bucket setup. It never mentions manifestVersion, final, attempts[] or relative paths. packages/shared/src/artifacts-manifest.ts is the actual schema (same pointer in docs/ADAPTERS.md).
  2. "The absolute cwd field is gone" describes a change rather than current state. A first-time reader never saw a cwd. The changeset already records the removal, so this could read "The manifest carries no absolute paths" or be dropped.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 6cf52a9: the reference now points at packages/shared/src/artifacts-manifest.ts. On the cwd wording: a specFile outside the working directory still stays absolute, so the README says that rather than "no absolute paths".

Comment thread README.md Outdated
**Passwords and credentials are redacted by default.** Before a test types into an `<input type="password">` (WebdriverIO `setValue` / `addValue`, Selenium `sendKeys`, Nightwatch `setValue` / `setPassword` / `sendKeys` / `updateValue`, Python `send_keys`), the adapter reads the field's type and, for a password field, adds the typed value to the run's redaction set, so the row that types it already carries `••••`, a fixed placeholder that hides its length. From then on the value is replaced in everything the adapter sends or writes: every row, result and error (the Actions list, step titles once re-sent, the Log and Errors sections), `transcript.md` and the trace's action events, console lines and captured stdout, network URLs, headers and bodies, the DOM anchor and every mutation, the element and accessibility captures, the test source, the suite tree and the run's metadata. Independently of any typing, the values of `Authorization`, `Proxy-Authorization`, `Cookie` and `Set-Cookie` are replaced in every network row's `headers`, `requestHeaders` and `responseHeaders` and so in the trace's HAR, keeping the header names; each cookie's value in a navigation row's `cookies` (`document.cookie`) is replaced, keeping its name, and so is the `value` of every cookie object a command returns (`getCookies`). All of this follows `maskInputs`: `maskInputs: false` turns it off with the page masking.

The field-type read is one driver round trip per typing command whose value is 4 characters or more and not already known, taken before the keys are sent. WebdriverIO starts it in `beforeCommand` of the `elementSendKeys` that `setValue` / `addValue` issue (reading the element's `type` property) without holding that hook, and waits for it only before the row is recorded; Selenium awaits `getProperty('type')` on the element before `sendKeys` reaches the driver; Nightwatch queues a `perform` ahead of the typing command that runs one script over the raw WebDriver transport, resolving the selector as a WebDriver find does: its first match, by the call's `using` argument or the definition's `locateStrategy`, else the client's strategy (`useXpath()` / `useCss()` as the test last called them, then the `use_xpath` setting), CSS or XPath only; Python reads `getElementProperty` before `sendKeysToElement` runs. Each read is capped at 2 s and never holds the command back. A read that fails or times out, or a field the adapter cannot locate to read (on Nightwatch, one located by a strategy other than CSS or XPath, or with no selector), counts as a password field: the typed value is redacted, since redacting a value that was not a password is the safer error, and the run logs one warning that names no value. Nightwatch's `setPassword` is taken as a password without a read. In Python a session whose read timed out reads no more, since the abandoned read is still on the session, and what it types afterwards is redacted the same way. A field that answers with no type at all (an element that is not a form control) is not a password field, except on a WebdriverIO Appium mobile-web session, whose direct read cannot tell that answer from a failed one and redacts. Native app sessions skip it on every adapter; on an Appium mobile-web session WebdriverIO reads straight from the driver rather than through `browser`, as its other in-hook probes do.
The field-type read is one driver round trip per typing command whose value is 4 characters or more and not already known, taken before the keys are sent. WebdriverIO starts it in `beforeCommand` of the `elementSendKeys` that `setValue` / `addValue` issue (reading the element's `type` property) without holding that hook, and waits for it only before the row is recorded; Selenium awaits `getProperty('type')` on the element before `sendKeys` reaches the driver; Nightwatch queues a `perform` ahead of the typing command that runs one script over the raw WebDriver transport, resolving the selector as a WebDriver find does: its first match, by the call's `using` argument or the definition's `locateStrategy`, else the client's strategy (`useXpath()` / `useCss()` as the test last called them, then the `use_xpath` setting), CSS or XPath only; Python reads `getElementProperty` before `sendKeysToElement` runs. Each read is capped at 2 s and never holds the command back. Frames the adapter sends while a read is in flight are held until it settles, at most 2 s, so none can carry a password before it is learned. A read that fails or times out, or a field the adapter cannot locate to read (on Nightwatch, one located by a strategy other than CSS or XPath, or with no selector), counts as a password field: the typed value is redacted, since redacting a value that was not a password is the safer error, and the run logs one warning that names no value. Nightwatch's `setPassword` is taken as a password without a read. In Python a session whose read timed out reads no more, since the abandoned read is still on the session, and what it types afterwards is redacted the same way. A field that answers with no type at all (an element that is not a form control) is not a password field, except on a WebdriverIO Appium mobile-web session, whose direct read cannot tell that answer from a failed one and redacts. Native app sessions skip it on every adapter; on an Appium mobile-web session WebdriverIO reads straight from the driver rather than through `browser`, as its other in-hook probes do.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This paragraph covers all four adapters, but only the JS core holds frames during the read (session-capturer.ts / secret-redaction.ts). Nothing in the Python adapter does. Since it's a redaction guarantee, could it say the hold applies to the JS adapters (where WebdriverIO's read runs alongside the typing), and that the Python and Selenium adapters finish the read before sending the keys?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 6cf52a9: the hold is scoped to the JS adapters (core SessionCapturerBase), Selenium awaits its read before sendKeys, and Python has no hold.

Point the manifest field reference at the shared schema and state that only the JS adapters write it. Scope the secret-read frame hold to the JS adapters, fold the two changesets for an unreleased fix into the filmstrip one, record eslint line counts, and install before building in the Nightwatch example.

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

This branch has not been deployed

No deployments
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