Skip to content

test!: make the QA scenarios the only GUI suite - #1807

Merged
l0gicgate merged 13 commits into
lgse:mainfrom
wmfeht:test/1806-remove-e2e-suite
Oct 22, 2026
Merged

l0gicgate merged 13 commits into
lgse:mainfrom
wmfeht:test/1806-remove-e2e-suite

Conversation

@wmfeht

@wmfeht wmfeht commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Follow-up to #1771. The QA scenarios become Strata's only GUI suite, and the suite is pruned.

  • Remove the Python E2E suite (tests/e2e, its runners, workflows, parity scripts and the twin/parity metadata). The image recipe moves to tests/container/ (this changes the image key, so the trusted-main publisher republishes the base once). Headless helpers move to scripts/headless/; baselines, fixtures and mutations move to tests/qa/. qa-parity is replaced by scripts/qa-mutation.sh. docs/e2e-testing.md becomes docs/testing.md.
  • Rename the image tooling for the QA suite: scripts/e2e_{bundle,base,images}.py become scripts/image_{inputs,base,registry}.py, e2e-images.yml becomes test-image.yml, STRATA_E2E_* becomes STRATA_TEST_*, target/e2e-container becomes target/qa-container, and the published base moves to ghcr.io/lgse/strata-test-image. The publisher no longer pushes the runtime image, which only the removed E2E jobs used.
  • One QA protocol catalogue: .agents/skills/qa-scenarios/reference.md now holds every step, target and predicate; docs/testing.md keeps the run environment, scheduling, baselines, mutations and the audit, and links to it.
  • Prune the lowest-value third of the scenarios by quality score per √cost: 134 removed. Then rebuild the 20 highest-scoring pruned ones as short runs. The suite now has 289 scenarios; a full run takes about 41 s.
  • QA in CI runs only on manual dispatch (Run workflow on CI). A failing scenario fails that run, but no required check depends on it.
  • Main-thread I/O audit (fix(operations): finish file operations on network, FUSE and removable mounts #1729) now runs through the QA runner. With STRATA_QA_MAIN_IO set, tests/qa/main_io.rs starts every launch under strace and writes the same meta.json, and scripts/trace-main-io.py drives qa.sh. QA mode's own disk reads (the pref and file predicates) now run on a helper thread, and --qa no longer runs is_dir on 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:

E2E change Decision
test_document_scrollbar_holds_content_still_while_rows_recycle + preview-scrollbar.patch (#1752) Removed (3/2/4/3, score 15). Three GTK tests in src/ui/virtual_preview/scrollbar/tests.rs fail under the same patch; a QA port would need a new text-at-point accessor.
cwd == "/" assertion in test_multiple_arguments_include_non_utf8_directory_and_file (#1729) Converted: a new proc app_cwd query, checked at the end of multiple-arguments-non-utf8 (re-rated 3/4/4/3, score 45). Removing leave_launch_folder makes it fail at that step.
Model-preview camera order, thumbnail spin button, auto-refresh, compression leftovers, _settles hold (#1764, #1778, #1729) Already followed in the QA twins on main; kept as they are.
outside-wheel-moves-pointed-column, panel-wheel-routing-remaining (density-slider follow-ups) Stay pruned.
archive-double-click-extracts-subfolder (skipped for #1772) Trimmed and unskipped. The repeat double-clicks are gone: they fail only within about a second of an extraction, which real use almost never hits, and archive-activation-extracts-subfolder covers 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

  1. Build the changed base once: python3 scripts/image_base.py build.
  2. Run ./scripts/qa.sh.
  3. Run ./scripts/trace-main-io.py multiple-arguments-non-utf8 rename-commits-on-enter.
  4. In src/main.rs, make leave_launch_folder return 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 reports Violations: 0 distinct, 0 calls and leaves per-launch traces under target/main-io/<run>/. Step 4 fails at line 13 with the application's working folder is /tmp/strata-qa-fixture-….

After merge

The publisher pushes the new strata-test-image package. Make it public in GHCR package settings and rerun Publish the pinned test image; until then its anonymous-access check fails, and PRs that leave tests/container/ unchanged cannot pull the base. The old strata-e2e-runtime and strata-e2e-build packages can be deleted once no supported revision needs them.

Related issue

Closes #1806

wmfeht and others added 13 commits October 21, 2026 19:41
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.
@l0gicgate
l0gicgate merged commit 225e074 into lgse:main Oct 22, 2026
12 checks passed
@l0gicgate

Copy link
Copy Markdown
Contributor

Review and cleanup

Merged main at bdf0e98c (merge commit 9e8cc882). Conflicts resolved in: tests/e2e/scenarios/test_dialogs_and_menus.py (deleted with the suite; its new Properties Copy-path test lives on as the QA scenario), tests/qa/scenarios/dialogs_and_menus/properties-copy-path-slashes-only-folders.jsonl (moved from test_dialogs_and_menus/, twin key and the twin-only case variable dropped).

Review against the description and #1806.

  • E2E suite, runners, workflows, parity scripts and twin metadata removed: confirmed. No tracked file keeps an e2e name; the only e2e strings left are the /tmp/strata-e2e-baseline fixture root baked into the committed baseline screenshots.
  • Image tooling renamed, runtime image no longer published, nothing pulls it: confirmed in test-image.yml, ci.yml, image_registry.py and the Dockerfile. ci.yml builds a candidate when tests/container changed and otherwise pulls the published base; scripts/test_quality_runner.py covers that branch.
  • Protocol catalogue in .agents/skills/qa-scenarios/reference.md: checked every command, check, target, accessor, runner step, fs field and header key against the code. Three omissions, fixed in 053432da.
  • Prune of the lowest third: holds exactly with the metric score / sqrt(sum of all run costs), excluding mutation and baseline scenarios. The description says "per √cost"; "per √(total run cost)" is the precise claim.
  • 20 rebuilt scenarios: read all of them. None asserts geometry or layout; every variant reaches an assertion.
  • app_cwd proc query: tests/qa/runner_steps.rs reads /proc/<pid>/cwd of the traced Strata pid, and multiple-arguments-non-utf8 ends on it. The new runner unit test checks a matching and a non-matching folder against a live pid.
  • archive-double-click-extracts-subfolder: skip removed, the two repeat double-clicks dropped, the first double-click kept for both archive variants.
  • Main-thread I/O audit: tests/qa/main_io.rs, the strace command, meta.json keys and scripts/trace-main-io.py agree; the QA-only reads go through observe::off_ui_thread.
  • packaging.yml now installs git in the Arch container. Not in the description, but needed: scripts/test_qa_mutation.py runs git init/apply/restore under unittest discover -s scripts.

Fixes pushed

  • 053432da docs(qa): fix stale suite references and catalogue gaps: the pr-review skill merged from main still pointed at tests/e2e/, e2e.sh and qa-parity.sh; AGENTS.md and docs/testing.md used the run label arrow-keys-move-focus/columns-ru, which does not exist (the variants are arrows and hjkl-tenxer-ru, so qa.sh --exact would select nothing); the qa-scenarios skill named the old section "QA-only waits"; the catalogue lacked the selectable and editable states, the {"field":true,"within":TARGET} target and the count spec's rendered and states options.
  • 174d44b8 refactor(scripts): drop the unused sys import left by the e2e_images.py rename.
  • e2de5b08 test(qa): eleven scenarios still carried the twin-only case variable (no body reads $case); wildcard-filter-patterns remembered a field no step used; folder-pins-order-and-restart no longer restarts, so it is now folder-pins-order-and-bookmarks (it verifies the bookmarks file), with the cross-reference in pinned-rows-transfer-and-remote-gaps updated.

Validation (no container engine or Xvfb on this host, so the pinned-container runs could not be executed locally)

  • cargo test --all-features --test qa (native, no display) — 27 passed, 537 scenario runs ignored; includes every_scenario_file_is_planned_and_well_formed over all 290 headers
  • cargo test --all-features --bin strata qa:: — 39 passed
  • python3 -m unittest discover -s scripts -p 'test_*.py' — 208 tests, OK
  • cargo fmt --all --check, cargo clippy --all-targets --all-features -- -D warnings, typos, git diff --check — clean (native, not ./scripts/quality.sh)
  • Not run: ./scripts/qa.sh, ./scripts/qa-mutation.sh, ./scripts/trace-main-io.py, ./scripts/quality.sh (need the container); the QA job in CI is dispatch-only, so the scenario suite itself still needs a Run workflow dispatch on this branch or the author's local run before merge.

Follow-ups outside this PR

  • 46 retained scenarios' quality.note still cite a deleted scenario as a coverage owner (for example delete-confirmation-baseline → permanent-delete-confirmation, cut-moves-only-after-paste → context-menu-cut-and-paste, wrong-extract-password-reopens → zipcrypto-collision-reopens). The rubric asks to re-score when an overlapping scenario is removed.
  • The 20 rebuilt scenarios have no cost, and archive-double-click-extracts-subfolder keeps its pre-trim cost. One scripts/qa_cost.py run pass after merge fixes both.
  • hidden-files-persist-across-restart has no quality field (pre-existing).
  • Deleted scenarios whose own note claimed sole GUI coverage and were not rebuilt, for the owner's judgment: file-drag-does-not-open-preview, spring-navigation-keeps-drag, drop-on-parent-breadcrumb, filtered-result-waits-for-release, keyboard-context-menu-owns-keys, permanent-delete-confirmation, escape-clears-selection-no-navigation (Icons/List routes), files-cannot-pin-through-gap, provider-continuous-events-progress, media-keys-step-timeline-and-volume.
  • test-image.yml still lists type=gha cache scopes and a target/test-image-cache restore that nothing writes any more (the writer was the deleted e2e-cache.yml); every publisher run with new inputs is a cold GTK build unless a cache-to is added or the lines are dropped.
  • STRATA_TEST_IMAGE and STRATA_TEST_IMAGE_REPOSITORY are read by ci.yml, scripts/lib/qa-container.sh and scripts/image_base.py but not documented in docs/testing.md.
  • .gitignore still ignores /docs/evidence/, which this PR removes.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: make the QA scenarios the only GUI suite

2 participants