Add a declarative user journey state machine and canonical diagnostic catalog for Playwright UI testing. - #3282
Open
copybara-service[bot] wants to merge 1 commit into
Open
Add a declarative user journey state machine and canonical diagnostic catalog for Playwright UI testing.#3282copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
test_971169818
branch
2 times, most recently
from
September 1, 2026 09:38
410ef59 to
54fa02a
Compare
copybara-service
Bot
force-pushed
the
test_971169818
branch
2 times, most recently
from
September 1, 2026 10:41
f481d03 to
2e7ff46
Compare
… catalog for Playwright UI testing.
Complex profiler frontend interactions require deterministic, reproducible end-to-end verification across varied hardware architectures (TPU v4/v5, TPU v6e) and distributed multi-host topologies. This change introduces a declarative state machine engine that models user diagnostic workflows as immutable sequences of state transitions.
Key Capabilities:
1. Declarative State Machine Engine:
- Implements JourneyStep, JourneyScenario, and ActionType enum in test_user_journeys.py.
- Dynamically dispatches actions (goto, switch_tool, select_host, go_back, go_forward) with automatic synchronization and error diagnostic context.
2. Canonical Diagnostic Journey Catalog:
- Introduces tests/ui/journeys/diagnostic_journeys.json as the single source of truth containing 7 curated end-to-end diagnostic scenarios:
* triage.pipeline_and_hardware_bounds: Performance bottleneck triage across Input Pipeline, HLO Op Stats, Op Profile, Roofline Model, and Trace Viewer.
* memory.cross_hardware_tpu_to_v6e: Memory footprint and buffer allocation comparison between TPU v4/v5 and TPU v6e.
* compiler.graph_and_multihost_scale: XLA compiler graph exploration and remote worker host trace inspection.
* compute.op_profile_and_stats: Low-level kernel and op execution breakdown.
* routing.popstate_resilience_loop: Browser back/forward popstate routing and state retention validation.
* distributed.host_retention_and_trace: Host dropdown selection persistence across tool switches.
* full_spectrum.multimodal_endurance: Full-breadth smoke sweep touching all primary tools.
3. Strict Invariant & Geometry Verification:
- Enforces positive bounding box geometry on mounted components at every transition.
- Verifies data table row population when requested by catalog steps.
- Executes content poison-token sweeps at every waypoint to catch unrendered template tokens and raw error dumps.
4. Resilient Navigation Helpers:
- Shared dropdown and Pythonic sidenav inspection helpers in tests/ui/ui_helpers.py.
PiperOrigin-RevId: 971169818
copybara-service
Bot
force-pushed
the
test_971169818
branch
from
September 1, 2026 11:32
2e7ff46 to
e43c319
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.
Add a declarative user journey state machine and canonical diagnostic catalog for Playwright UI testing.
Complex profiler frontend interactions require deterministic, reproducible end-to-end verification across varied hardware architectures (TPU v4/v5, TPU v6e) and distributed multi-host topologies. This change introduces a declarative state machine engine that models user diagnostic workflows as immutable sequences of state transitions.
Key Capabilities: