fix(tracing): Adjust trace-artifact granularity and grouping in @wdio/devtools-service#234
Open
Winify wants to merge 2 commits into
Open
fix(tracing): Adjust trace-artifact granularity and grouping in @wdio/devtools-service#234Winify wants to merge 2 commits into
Winify wants to merge 2 commits into
Conversation
- Add @changesets/cli for per-package versioning - Replace workflow_dispatch release.yml with changesets/action (Version Packages PR on push to main → publish on merge) - releaseType input is replaced by changeset files: pnpm changeset picks which packages + what bump - Only packages with pending changesets get published
…/devtools-service - Correct `lastSelector` when different tests bleed through it - Introduce `spec-level` tracing (both artifact and ndjson-directory) - Intorduce it() grouping in traces
b4b8563 to
9d397c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Three tracing fixes/features for
@wdio/devtools-service:Bug fix —
lastSelectorbleed-through across tests. Element-scoped commands (click,setValue, etc.) in test B could silently inherit the selector from test A's last$()/findElementcall. Fixed by resetting the selector cache inbeforeTest()viaSessionCapturer.resetLastSelector().Feature —
traceGranularity: 'spec'. Each spec file now produces its own trace artifact (zip or ndjson-directory) instead of one monolithic trace per worker session. Enabled viatraceGranularity: 'spec'in the service options. Default remains'session'.Feature —
it()/Scenario()grouping in traces. When test hooks are available, each test becomes aTracing.tracingGroupspan in the trace NDJSON. Child actions carryparentIdpointing to the group so timeline viewers render tests as labelled spans wrapping their commands.How
Type of change
Packages touched
shared(types and contracts)core(framework-agnostic capture/reporting)service(WebdriverIO adapter)nightwatch-devtools(Nightwatch adapter)selenium-devtools(Selenium adapter)backend(server)app(UI)script(page-injected runtime)Notes for reviewers
Screenshots / recordings