Repository navigation
Add mise run journeys:local to run the journeys against docs/ with the pretty output - #4814
Merged
Merged
Conversation
…e task The task builds docs-builder, serves docs/ on a free port, waits until it answers, runs docs-journeys against it with the same options as journeys:live, and stops the server whatever the result. A run of the 18 isolated journeys takes about five seconds and prints what journeys:live prints. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ument boundaries Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4814/ 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.
mise run journeys:localservesdocs/and runsdocs-journeysagainst it, so a local run prints whatjourneys:liveprints, in about five seconds.Affects: Internals only
Prompt summary: Make running journeys from the command line always yield the same pretty output. The live checks already use
docs-journeys; the local run of the isolated journeys should too.Why
Journeys against
docs/could only be run as TUnit tests, which print TUnit's progress and result blocks and take about a minute to build and start. Checking one journey while editing it meant that, and its output looked nothing like the live runs.What
A task that serves the site and runs the journeys
journeys:localbuildsdocs-builder, servesdocs/on a free port from insidedocs/(as the test target does, withFEATURE_*variables from the shell removed), waits until the site answers, runsdocs-journeys runagainst it, and stops the server whatever the result. It passes extra arguments on, so--only landing/home,--area,--verboseand--screenshot-on-failurework.Where it fits
The docs table of the ways to run journeys gets a row for it. It checks the
expectlines and compares no transcripts: the TUnit run (mise run journeys) stays the gate that compares them, with its variants and the assembler and Codex targets.Verify
The first runs the 18 isolated journeys in about 5 seconds, and skips the 5 that need the assembler site. After either run,
pgrep -f 'docs-builder.dll serve'finds no process.🤖 Generated with Claude Code