Repository navigation
Run docs-journeys on the shared console runner from Nullean.Snapshots - #4811
Merged
Merged
Conversation
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 streaming test 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]>
…improve # Conflicts: # tests/Elastic.Documentation.Journeys.Tests/DocsJourneysExportTests.cs # tests/Elastic.Documentation.Journeys.Tests/Elastic.Documentation.Journeys.Tests.csproj
…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]>
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]>
…to docs/thin-docs-journeys
…cs/thin-docs-journeys # Conflicts: # tests/Elastic.Documentation.Journeys.Tests/DocsJourneysCliTests.cs
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
# Conflicts: # src/tooling/docs-journeys/Commands/JourneyExecution.cs # src/tooling/docs-journeys/Commands/RunCommand.cs # tests/Elastic.Documentation.Journeys.Tests/DocsJourneysCliTests.cs
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4811/ Sample changed pages: |
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.
docs-journeysnow runs, skips and reports journeys withNullean.Snapshots.Browser.Console, the librarysnap journey runuses too, so both print the same, and--screenshot-on-failuredraws 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
mainonce #4808 is merged.Prompt summary: Make the four ways to run journeys print the same, with
docs-journeysas the model. The console runner moves intoNullean.Snapshotsas a library thatsnapanddocs-journeysboth call in process, and a failure can show a screenshot.Why
The output people liked lived inside
docs-journeys, sosnap journey runand the TUnit run printed something else. A copy in docs-builder would drift from the one insnap, 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 areNullean.Snapshots.Browser.Console0.8.0.RunReporter,Ansi,JUnitReport,JourneyExecutionandSelectionare 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-typeanddocs:featuresprobe, the monitor identity and allow list, the embedded journeys,--changed-only(itsgitcall),list, and the Synthetics export and push (the onlyProcessuse left).runbuilds the library's options from the site it resolved.A screenshot on failure
--screenshot-on-failuretakes a screenshot when a step fails: drawn under the failure withNullean.TerminalImageson a terminal that can show images, and written tofailure.pngin 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.CdpandNullean.Cdp.Journeysto 0.10.0, and thesnaptool to 0.8.0.Verify
mise run test mise run journeys mise run journeys:live demo --screenshot-on-failureThe native AOT publish of
src/tooling/docs-journeyshas no warnings.mise run journeys:live demoprints the same layout as before; today it ends with theversions/version-dropdownfailure, which is a journey problem and not part of this change.🤖 Generated with Claude Code