Repository navigation
test!: make the QA scenarios the only GUI suite - #1807
Merged
Merged
Conversation
QA scenarios are now the only GUI suite. The Python suite under tests/e2e, its runners, diagnostics, sharding and mutation scripts, and the E2E and E2E cache workflows are gone. The QA job in ci.yml runs only when CI is started by hand, and a failing scenario fails that run. - Move the image recipe to tests/container/ and drop the pytest venv; the image key changes, so the base is rebuilt once and republished by the trusted-main publisher. - Move the headless display, environment, process and XTest helpers that test-headless.py and benchmark-scroll.py use to scripts/headless/. - Move baselines, fixtures and mutation patches under tests/qa/, and let STRATA_QA_UPDATE_BASELINES=1 regenerate a baseline. - Drop twin, state_parity_ignore and input_parity_ignore from every scenario and from the runner, drop the test_ prefix from scenario folders, and replace qa-parity with qa-mutation.sh, which checks that each scenario with a mutation passes unmodified and fails under its patch. - $python is now the image's absolute /usr/bin/python3, as a file provider's manifest command must be. - Rename docs/e2e-testing.md to docs/testing.md and update AGENTS.md, the docs and the QA skills. - Drop the held-document-scrollbar E2E test from lgse#1752 and its mutation patch rather than convert it: three GTK tests in src/ui/virtual_preview/scrollbar/tests.rs already fail under that patch. BREAKING CHANGE: scripts/e2e.sh, e2e-native.sh and qa-parity.sh are removed; scenario headers reject twin and the parity ignore keys.
Remove the 134 scenarios with the lowest quality score per square root of their measured cost, which favours removing long-running, low-scoring scenarios. Scenarios with a mutation patch and the visual baselines were kept. The suite keeps 269 scenarios and 512 runs; a full run drops from about 106 s to 41 s. Quality notes in the remaining headers still describe coverage as it was before this removal.
Each was dropped for its run time, not its value. Rewrite each as one or two runs that keep the behaviour its quality note names: one view where the views share the code path, several cases in one launch instead of a launch per case, fixtures set up before launch, and keyboard or activate steps where the pointer is not under test. Together they took about 645 s of CI time over 172 runs and now take about 55 s over 23 runs. Each rewrite was run at least three times, shown to fail at a broken expected value, and re-rated with the qa-quality rubric; none has a measured cost yet.
lgse#1729 added scripts/trace-main-io.py on top of the Python E2E harness, which this branch removes. With STRATA_QA_MAIN_IO set, the QA runner now starts every Strata launch of a run under strace, tracing only the initial thread: the application, its restarts, the portal backend and the second instances launch steps start. Each launch leaves the trace, its log and the meta.json the script classifies paths by under target/main-io/<run>/<scenario>__<label>/launch-<n>/. Its startup phase ends at the first reply that shows a pane, once the first window or the portal backend's first chooser is up. The runner's own places (the shared shader cache, the launch's logs and the PATH folders) are listed in meta.json and count as toolkit. QA mode's own disk reads, for pref and file predicates, now run on a helper thread, and --qa no longer checks its directory before launch, so an audit sees only calls a release build would make. proc steps now ask about the traced Strata rather than strace. qa.sh forwards STRATA_QA_MAIN_IO and STRATA_UI_STALL_MS, and the runner passes the stall limit to every launch. The script runs qa.sh with its other arguments, and the allowlist moves to tests/qa/.
lgse#1729 made Strata change its working folder to / once it has read its arguments, so a launch folder on a removable drive or share stays unmountable, and asserted it in the Python startup-argument test. Add a proc app_cwd query and check it at the end of multiple-arguments-non-utf8.
scripts/test_qa_mutation.py applies its patches with git, which the archlinux:base-devel image lacks.
…cenario archive-double-click-extracts-subfolder was skipped for lgse#1772: a repeat double-click within about a second of an extraction that selects the new folder is lost. That needs input faster than real use produces, and archive-activation-extracts-subfolder already covers repeat extractions into fresh folders through Return and Extract here. Keep the first double-click, which bundles a multi-root zip or tar.gz into a subfolder and selects it in Columns, and run it again.
The pinned image now serves only the QA scenarios and the Rust quality
runs, so its tooling no longer carries the removed suite's name.
- Rename scripts/e2e_{bundle,base,images}.py to
scripts/image_{inputs,base,registry}.py, e2e-images.yml to
test-image.yml, STRATA_E2E_* to STRATA_TEST_*, target/e2e-container to
target/qa-container, and the GHCR package, labels, container user and
in-image paths to their test-image names.
- Stop publishing the runtime image and drop the registry cache
discovery; only the removed E2E jobs consumed them. The publisher's
anonymous check now verifies the build tag and the base.
- Point the links and doc comments that still named docs/e2e-testing.md
at docs/testing.md, delete the stale evidence for lgse#928, and drop the
pytest ignore and the unused GTK version variable.
BREAKING CHANGE: scripts/e2e_base.py, STRATA_E2E_IMAGE and
STRATA_E2E_CARGO_CACHE are renamed, and the published base moves to
ghcr.io/lgse/strata-test-image, which must be made public after its
first publication.
docs/testing.md and the qa-scenarios skill's reference.md both listed every step, target and predicate, and the copies had drifted: testing.md said the pane predicate reads the focused pane, and placed the area repainted ignores at the box's centre. Many of its rows also explained behaviour through the removed Python harness. - Make reference.md the only catalogue. Move into it what only testing.md had: input timing, target resolution, share rounding, the labelled-by naming rules, the semantics of repainted, accent_pixels, largest_image, compare and each NAMES key, the snapshot keys, the input log format, and the harness-error rule. - Replace testing.md's tables, snapshot and input-log sections with a short overview that links to the reference, and drop the Python comparisons from the timer-waits list. - Point the qa-scenarios skill, CONTRIBUTING.md and the src/qa doc comments at the reference, and tell runner changes to recheck the main-thread I/O audit.
…suite # Conflicts: # tests/e2e/scenarios/test_dialogs_and_menus.py # tests/qa/scenarios/dialogs_and_menus/properties-copy-path-slashes-only-folders.jsonl
The pr-review skill merged from main still named the E2E suite and qa-parity; the qa.sh example run label columns-ru does not exist for arrow-keys-move-focus; the qa-scenarios skill named a section that docs/testing.md renamed; and the protocol catalogue lacked the selectable and editable states, the field-within target, and the count spec's rendered and states options.
… its check Eleven scenarios kept a case variable that only the removed twin ids read, wildcard-filter-patterns remembered a field no step used, and folder-pins-order-and-restart no longer restarts: it verifies the bookmarks file instead.
Contributor
Review and cleanupMerged Review against the description and #1806.
Fixes pushed
Validation (no container engine or Xvfb on this host, so the pinned-container runs could not be executed locally)
Follow-ups outside this PR
CI: all checks green as of 2026-10-22 05:24 UTC (the QA scenarios job is skipped: it runs on manual dispatch only). 🤖 Generated with Claude Code |
l0gicgate
added a commit
that referenced
this pull request
Oct 22, 2026
* test!: remove the Python E2E suite and the QA twin metadata QA scenarios are now the only GUI suite. The Python suite under tests/e2e, its runners, diagnostics, sharding and mutation scripts, and the E2E and E2E cache workflows are gone. The QA job in ci.yml runs only when CI is started by hand, and a failing scenario fails that run. - Move the image recipe to tests/container/ and drop the pytest venv; the image key changes, so the base is rebuilt once and republished by the trusted-main publisher. - Move the headless display, environment, process and XTest helpers that test-headless.py and benchmark-scroll.py use to scripts/headless/. - Move baselines, fixtures and mutation patches under tests/qa/, and let STRATA_QA_UPDATE_BASELINES=1 regenerate a baseline. - Drop twin, state_parity_ignore and input_parity_ignore from every scenario and from the runner, drop the test_ prefix from scenario folders, and replace qa-parity with qa-mutation.sh, which checks that each scenario with a mutation passes unmodified and fails under its patch. - $python is now the image's absolute /usr/bin/python3, as a file provider's manifest command must be. - Rename docs/e2e-testing.md to docs/testing.md and update AGENTS.md, the docs and the QA skills. - Drop the held-document-scrollbar E2E test from #1752 and its mutation patch rather than convert it: three GTK tests in src/ui/virtual_preview/scrollbar/tests.rs already fail under that patch. BREAKING CHANGE: scripts/e2e.sh, e2e-native.sh and qa-parity.sh are removed; scenario headers reject twin and the parity ignore keys. * test(qa): prune the lowest-value third of the QA scenarios Remove the 134 scenarios with the lowest quality score per square root of their measured cost, which favours removing long-running, low-scoring scenarios. Scenarios with a mutation patch and the visual baselines were kept. The suite keeps 269 scenarios and 512 runs; a full run drops from about 106 s to 41 s. Quality notes in the remaining headers still describe coverage as it was before this removal. * test(qa): rebuild the 20 highest-scoring pruned scenarios as short runs Each was dropped for its run time, not its value. Rewrite each as one or two runs that keep the behaviour its quality note names: one view where the views share the code path, several cases in one launch instead of a launch per case, fixtures set up before launch, and keyboard or activate steps where the pointer is not under test. Together they took about 645 s of CI time over 172 runs and now take about 55 s over 23 runs. Each rewrite was run at least three times, shown to fail at a broken expected value, and re-rated with the qa-quality rubric; none has a measured cost yet. * test(qa): trace Strata's UI thread through the QA runner #1729 added scripts/trace-main-io.py on top of the Python E2E harness, which this branch removes. With STRATA_QA_MAIN_IO set, the QA runner now starts every Strata launch of a run under strace, tracing only the initial thread: the application, its restarts, the portal backend and the second instances launch steps start. Each launch leaves the trace, its log and the meta.json the script classifies paths by under target/main-io/<run>/<scenario>__<label>/launch-<n>/. Its startup phase ends at the first reply that shows a pane, once the first window or the portal backend's first chooser is up. The runner's own places (the shared shader cache, the launch's logs and the PATH folders) are listed in meta.json and count as toolkit. QA mode's own disk reads, for pref and file predicates, now run on a helper thread, and --qa no longer checks its directory before launch, so an audit sees only calls a release build would make. proc steps now ask about the traced Strata rather than strace. qa.sh forwards STRATA_QA_MAIN_IO and STRATA_UI_STALL_MS, and the runner passes the stall limit to every launch. The script runs qa.sh with its other arguments, and the allowlist moves to tests/qa/. * test(qa): check that a launch leaves the folder it started in #1729 made Strata change its working folder to / once it has read its arguments, so a launch folder on a removable drive or share stays unmountable, and asserted it in the Python startup-argument test. Add a proc app_cwd query and check it at the end of multiple-arguments-non-utf8. * ci: install git for the script tests in the Arch packaging job scripts/test_qa_mutation.py applies its patches with git, which the archlinux:base-devel image lacks. * test(qa): drop the repeat double-clicks from the archive activation scenario archive-double-click-extracts-subfolder was skipped for #1772: a repeat double-click within about a second of an extraction that selects the new folder is lost. That needs input faster than real use produces, and archive-activation-extracts-subfolder already covers repeat extractions into fresh folders through Return and Extract here. Keep the first double-click, which bundles a multi-root zip or tar.gz into a subfolder and selects it in Columns, and run it again. * build!: rename the E2E image tooling for the QA suite The pinned image now serves only the QA scenarios and the Rust quality runs, so its tooling no longer carries the removed suite's name. - Rename scripts/e2e_{bundle,base,images}.py to scripts/image_{inputs,base,registry}.py, e2e-images.yml to test-image.yml, STRATA_E2E_* to STRATA_TEST_*, target/e2e-container to target/qa-container, and the GHCR package, labels, container user and in-image paths to their test-image names. - Stop publishing the runtime image and drop the registry cache discovery; only the removed E2E jobs consumed them. The publisher's anonymous check now verifies the build tag and the base. - Point the links and doc comments that still named docs/e2e-testing.md at docs/testing.md, delete the stale evidence for #928, and drop the pytest ignore and the unused GTK version variable. BREAKING CHANGE: scripts/e2e_base.py, STRATA_E2E_IMAGE and STRATA_E2E_CARGO_CACHE are renamed, and the published base moves to ghcr.io/lgse/strata-test-image, which must be made public after its first publication. * docs(qa): keep one catalogue of the QA protocol docs/testing.md and the qa-scenarios skill's reference.md both listed every step, target and predicate, and the copies had drifted: testing.md said the pane predicate reads the focused pane, and placed the area repainted ignores at the box's centre. Many of its rows also explained behaviour through the removed Python harness. - Make reference.md the only catalogue. Move into it what only testing.md had: input timing, target resolution, share rounding, the labelled-by naming rules, the semantics of repainted, accent_pixels, largest_image, compare and each NAMES key, the snapshot keys, the input log format, and the harness-error rule. - Replace testing.md's tables, snapshot and input-log sections with a short overview that links to the reference, and drop the Python comparisons from the timer-waits list. - Point the qa-scenarios skill, CONTRIBUTING.md and the src/qa doc comments at the reference, and tell runner changes to recheck the main-thread I/O audit. * docs(qa): fix stale suite references and catalogue gaps The pr-review skill merged from main still named the E2E suite and qa-parity; the qa.sh example run label columns-ru does not exist for arrow-keys-move-focus; the qa-scenarios skill named a section that docs/testing.md renamed; and the protocol catalogue lacked the selectable and editable states, the field-within target, and the count spec's rendered and states options. * refactor(scripts): drop the unused sys import from image_registry * test(qa): drop dead header data and name the pin-order scenario after its check Eleven scenarios kept a case variable that only the removed twin ids read, wildcard-filter-patterns remembered a field no step used, and folder-pins-order-and-restart no longer restarts: it verifies the bookmarks file instead. --------- Co-authored-by: Pierre Berube <[email protected]>
This was referenced Oct 22, 2026
Update feature map: lgse/strata#1771, #1805, #1809, #1807, #1816, #1814
wmfeht/strata-feature-map#33
Closed
This was referenced Oct 31, 2026
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.
Description
Follow-up to #1771. The QA scenarios become Strata's only GUI suite, and the suite is pruned.
tests/e2e, its runners, workflows, parity scripts and thetwin/parity metadata). The image recipe moves totests/container/(this changes the image key, so the trusted-main publisher republishes the base once). Headless helpers move toscripts/headless/; baselines, fixtures and mutations move totests/qa/.qa-parityis replaced byscripts/qa-mutation.sh.docs/e2e-testing.mdbecomesdocs/testing.md.scripts/e2e_{bundle,base,images}.pybecomescripts/image_{inputs,base,registry}.py,e2e-images.ymlbecomestest-image.yml,STRATA_E2E_*becomesSTRATA_TEST_*,target/e2e-containerbecomestarget/qa-container, and the published base moves toghcr.io/lgse/strata-test-image. The publisher no longer pushes the runtime image, which only the removed E2E jobs used..agents/skills/qa-scenarios/reference.mdnow holds every step, target and predicate;docs/testing.mdkeeps the run environment, scheduling, baselines, mutations and the audit, and links to it.STRATA_QA_MAIN_IOset,tests/qa/main_io.rsstarts every launch understraceand writes the samemeta.json, andscripts/trace-main-io.pydrivesqa.sh. QA mode's own disk reads (theprefand file predicates) now run on a helper thread, and--qano longer runsis_diron its directory, so an audit sees only calls a release build makes. A full audit traces 553 launches with 0 violations.E2E tests added to main since #1771, graded with the qa-quality rubric:
test_document_scrollbar_holds_content_still_while_rows_recycle+preview-scrollbar.patch(#1752)src/ui/virtual_preview/scrollbar/tests.rsfail under the same patch; a QA port would need a new text-at-point accessor.cwd == "/"assertion intest_multiple_arguments_include_non_utf8_directory_and_file(#1729)procapp_cwdquery, checked at the end ofmultiple-arguments-non-utf8(re-rated 3/4/4/3, score 45). Removingleave_launch_foldermakes it fail at that step._settleshold (#1764, #1778, #1729)outside-wheel-moves-pointed-column,panel-wheel-routing-remaining(density-slider follow-ups)archive-double-click-extracts-subfolder(skipped for #1772)archive-activation-extracts-subfoldercovers repeat extractions. The first double-click in Columns still runs.Visual evidence
N/A: test infrastructure, CI and docs only; nothing user-visible changes.
How to test
python3 scripts/image_base.py build../scripts/qa.sh../scripts/trace-main-io.py multiple-arguments-non-utf8 rename-commits-on-enter.src/main.rs, makeleave_launch_folderreturn early, then run./scripts/qa.sh multiple-arguments-non-utf8.Expected result: step 2 ends with
test result: ok. 562 passed; 0 failed; 0 ignored. Step 3 reportsViolations: 0 distinct, 0 callsand leaves per-launch traces undertarget/main-io/<run>/. Step 4 fails at line 13 withthe application's working folder is /tmp/strata-qa-fixture-….After merge
The publisher pushes the new
strata-test-imagepackage. Make it public in GHCR package settings and rerun Publish the pinned test image; until then its anonymous-access check fails, and PRs that leavetests/container/unchanged cannot pull the base. The oldstrata-e2e-runtimeandstrata-e2e-buildpackages can be deleted once no supported revision needs them.Related issue
Closes #1806