Skip to content

Run docs-journeys on the shared console runner from Nullean.Snapshots - #4811

Merged
Mpdreamz merged 19 commits into
mainfrom
docs/thin-docs-journeys
Nov 11, 2026
Merged

Mpdreamz merged 19 commits into
mainfrom
docs/thin-docs-journeys

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

docs-journeys now runs, skips and reports journeys with Nullean.Snapshots.Browser.Console, the library snap journey run uses too, so both print the same, and --screenshot-on-failure draws a failure's screenshot on a terminal that can show images.

Affects: Internals only

Stack: 2 of 2, on top of #4808. Retarget it to main once #4808 is merged.

Prompt summary: Make the four ways to run journeys print the same, with docs-journeys as the model. The console runner moves into Nullean.Snapshots as a library that snap and docs-journeys both call in process, and a failure can show a screenshot.

Why

The output people liked lived inside docs-journeys, so snap journey run and the TUnit run printed something else. A copy in docs-builder would drift from the one in snap, and a tool that wraps another by starting it as a process loses the structured result.

What

The runner comes from the library

Selecting journeys (@requires, --tag, @mutates), running them in one shared Chrome, the streamed lines, grouped skips, the failure block, the totals, the JUnit file and the step summary are Nullean.Snapshots.Browser.Console 0.8.0. RunReporter, Ansi, JUnitReport, JourneyExecution and Selection are deleted. The output of a run does not change, and the 63 docs-journeys tests that check it pass unchanged.

What stays in docs-journeys

The URL aliases, the docs:build-type and docs:features probe, the monitor identity and allow list, the embedded journeys, --changed-only (its git call), list, and the Synthetics export and push (the only Process use left). run builds the library's options from the site it resolved.

A screenshot on failure

--screenshot-on-failure takes a screenshot when a step fails: drawn under the failure with Nullean.TerminalImages on a terminal that can show images, and written to failure.png in the journey's folder under --artifacts. It is off by default, because a page can show private data.

Package versions

Nullean.Snapshots.* move to 0.8.0, Nullean.Cdp and Nullean.Cdp.Journeys to 0.10.0, and the snap tool to 0.8.0.

Verify

mise run test
mise run journeys
mise run journeys:live demo --screenshot-on-failure

The native AOT publish of src/tooling/docs-journeys has no warnings. mise run journeys:live demo prints the same layout as before; today it ends with the versions/version-dropdown failure, which is a journey problem and not part of this change.

🤖 Generated with Claude Code

Mpdreamz and others added 8 commits November 10, 2026 18:56
A run now prints each journey as it finishes, with a status line of the running ones on a terminal. A reason that more than three journeys share is shown once with a count, and `--verbose` lists them. A failure is repeated last, in the shape `Nullean.Snapshots` uses under TUnit: the step, the error as written, the page, and a `Rerun:` line. Bad input is one `Error:` line, not a stack trace.

`--url` takes `prod`, `edge`, `demo` and `local`, `--only` runs journeys by id, and `mise run journeys:live` wraps both.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… streaming

The rerun line now carries --journeys, --env, --build-type and --feature so
copying it reproduces the run. DrawStatus clears the old status line first, and
Finished no longer redraws twice. A new test reads a fast journey's result while
a slow one is still running.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ntext

On a terminal, a failure shows the journey's lines around the failing one, the error wrapped to the window, the page the journey last opened and the rerun command. The run's context is one labelled row per fact, with the site address and any probe notes. Step updates redraw the status line at most ten times a second.

CI and piped output keep the compact `context:` line and the `Journey stopped at` shape.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The run opens with a lead-in and an indented context with coloured values. Skips are blue with space around them, and results and totals carry icons, with `FAILED` in bold red. Icons fall back to ASCII when the locale is not UTF-8, and `NO_COLOR` drops the colour. The version only shows once builds are stamped.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…them

The mise task descriptions now say which runner they start and what it compares. The skipped live journeys point to `mise run journeys:live` instead of a `cdp run` recipe, and the docs get a table of the four ways to run journeys. The three regexes in `SnapshotScrubbing`, the `StringBuilder.Append` in the fake site and the Unix file mode call no longer warn, and `TUnit0001` is suppressed for the journey tests because it comes from the snapshots package.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
docs-journeys keeps what is the docs site's: the URL aliases, the docs:* probe, the monitor identity and allow list, the embedded journeys, and the Synthetics export and push. Running the journeys, skipping, reporting, the JUnit file and the step summary now come from Nullean.Snapshots.Browser.Console 0.8.0, which `snap journey run` uses too, so both print the same. The output of a run is unchanged, and --screenshot-on-failure draws a failure's screenshot on a terminal that can show images.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The snap tool moves with them. Nullean.Snapshots.Browser.Console 0.8.0 is the console runner docs-journeys now uses.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz
Mpdreamz requested a review from a team as a code owner November 11, 2026 07:46
@Mpdreamz
Mpdreamz requested a review from theletterf November 11, 2026 07:46
…improve

# Conflicts:
#	tests/Elastic.Documentation.Journeys.Tests/DocsJourneysExportTests.cs
#	tests/Elastic.Documentation.Journeys.Tests/Elastic.Documentation.Journeys.Tests.csproj
Mpdreamz and others added 2 commits November 11, 2026 08:51
…to docs/thin-docs-journeys

# Conflicts:
#	Directory.Packages.props
…ting journeys, test --screenshot-on-failure

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t on NuGet

Tool restore failed on windows-latest because the win-x64 RID package was
never published at 0.8.0. Move back up once upstream publishes it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Mpdreamz and others added 2 commits November 11, 2026 09:00
The fast journey's result took 17.8 s on a CI runner against a 12 s limit, because dotnet start-up and the Chrome launch were slow there. The slow journey now times out at 90 s and the limit is 60 s. The test kills the process once the fast result is seen, so the margin costs no time.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… 13.5s to the first result

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Mpdreamz and others added 3 commits November 11, 2026 09:10
…cs/thin-docs-journeys

# Conflicts:
#	tests/Elastic.Documentation.Journeys.Tests/DocsJourneysCliTests.cs
Base automatically changed from docs/builder-help-me-improve to main November 11, 2026 08:24
# Conflicts:
#	src/tooling/docs-journeys/Commands/JourneyExecution.cs
#	src/tooling/docs-journeys/Commands/RunCommand.cs
#	tests/Elastic.Documentation.Journeys.Tests/DocsJourneysCliTests.cs
@github-actions

Copy link
Copy Markdown
Contributor

@Mpdreamz
Mpdreamz merged commit 8c1c799 into main Nov 11, 2026
42 checks passed
@Mpdreamz
Mpdreamz deleted the docs/thin-docs-journeys branch November 11, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant