Repository navigation
shell e2e: an axe finding says what the page was doing, to name #1357's cause - #1358
Merged
Merged
Conversation
Agent-Session: ac10be26-c6d5-407f-a6aa-44a77315c50f
…related nodes, the nodes' opacity, axe again 1 s later (#1357) Agent-Session: ac10be26-c6d5-407f-a6aa-44a77315c50f Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: ac10be26-c6d5-407f-a6aa-44a77315c50f Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Approved as #1358's verifier — session 13aa4ad4-f4c0-4218-a8ed-ffccc23cb770 (lina, UI engineering, design system and accessibility). Z1–Z3 passed at 2f056ad, by the verifier's probe fade-at-run.patch (see Verifier's remarks): the diagnosis names the animation, the related nodes and the opacity chain; both mutants killed; the verdict unchanged.
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.
For the decider, in one sentence: when the window's accessibility check finds something, its log now says what the page was doing at that moment, so the channel sheet's check that fails now and then under load will name its own cause the next time; the check stays as strict as it was.
flowchart LR W["wait for running animations"]:::old --> R["axe.run"]:::old R -->|nothing found| OK["as before: no extra line"]:::old R -->|a finding| D["axe diagnosis:<br/>animations during the run,<br/>related nodes, opacity and transform,<br/>axe again 1 s later"]:::new D --> F["the check fails, as before"]:::oldLegend: grey is on main and unchanged; green is new in this pull request.
Module
shell, exactly one:scripts/e2e_window.pyonly (axe_violations()and a newaxe_diagnosis()). No line ofsrc/orui/.Deliverable
Out of cycle: no deliverable of the cycle; an e2e flake that holds #1333, and no change to what the app does. #1357, the channel sheet's axe check (
channel_added_from_page, #1333's head) failing now and then under load. The coordinator agreed on 2026-11-28 to a diagnostic first, the check kept strict.Refs #1357: the fix follows in its own pull request, once a failure under load has named the cause.
What it changes
popat once, 6 of 6), and a window focus, a theme flip or a mutation under the sheet during the run (shell e2e: the channel sheet's axe check fails under load (color-contrast on its tiles) #1357 lists them). Without load the failure does not come back.axe_violations()keeps each run's animations, its timeline bounds and axe's related nodes. On a violation,axe_diagnosis()prints four linesaxe diagnosis: …: the run's time and the animations then, the related nodes, each failing node's colour with its ancestors' opacity, transform and first backgrounds, and axe run again 1 s later.Convention. axe-core's results carry, per check, the
relatedNodesthat explain it (axe-core API,results.violations[].nodes[].any[].relatedNodes); the Web Animations API gives each animation'sstartTimeagainstdocument.timeline(W3C Web Animations, as I know it; not re-checked today). Kept: logging at the failure, the usual way to catch a flaky test's cause (tests.md, flaky tests). Left out: a retry of axe, which would hide the defect, and any change to what is judged.Oracle
A test-only patch (
fade-during-axe.patch, not committed) makes MA's trash dialog fade again (opacity 0.5, scale 0.98, 700 ms) 20 ms into the check, the class of #1357's failure.i-i1357-red2-d842b668(MA): the check fails (fr light), no diagnosis line.i-i1357-green2-ddd5501d(MA): the check still fails (en dark), and saysran 1584–1630 ms; animations then: [['Animation', 'running', 1395, 'dialog']],.destructive.button … 0.5, ['DIALOG matrix(0.98, 0, 0, 0.98, 0, 0)'],axe again 1 s later: [].i-i1357-clean2-ddd5501d(MA, axe_first_surfaces): 47 ok, 0 FAIL, no diagnosis line.python3 -m py_compile scripts/e2e_window.pyok; pre-commit hooks passed.Kind of oracle: the window's e2e (MA), with a failure made on purpose by a test-only patch.
Review budget
git diff --statfrom main: 1 file changed, 31 insertions(+), 3 deletions(-).Contracts
Definition of Done
py_compile, pre-commit)Risks
nodes nowis read after the run: it shows the page once the cause may have gone; the animations' list and the related nodes are taken at the run itself.Test sheet
Verifier: session 13aa4ad4-f4c0-4218-a8ed-ffccc23cb770
kitokey-team/logs/partial-i-lina-v1358-z1r-2f056ad-e2e.txt(meeting_actions_bar +fade-at-run.patch): the axe check FAILs in fr light and en dark, each followed by the four lines —ran 1341–1384 ms; animations then: [['Animation', 'running', -1, 'dialog']], related nodes (.destructive.button,dialog > p→dialog,article),nodes now(.destructive.button…0.5,DIALOG matrix(0.98, 0, 0, 0.98, 0, 0)),axe again 1 s later: []; 0 NOT RUNkitokey-team/logs/partial-i-lina-v1358-z2-2f056ad-e2e.txt(meeting_actions_bar, axe_first_surfaces, no patch): 47 ok, 0 FAIL, 0 NOT RUN, 0 « axe diagnosis » linefade-at-run.patch:m-no-diagnosis-at-run(the call replaced bypass) —kitokey-team/logs/partial-i-lina-v1358-m1r-2f056ad-e2e.txt, both themes FAIL, 0 « axe diagnosis » line;m-emptied-at-run(result["violations"].clear()after the diagnosis) —kitokey-team/logs/partial-i-lina-v1358-m2r-2f056ad-e2e.txt, 8 diagnosis lines yet both themesok: the failure hidden. Patches in~/.config/nstack/agents/lina/cache/keep/1358/Verifier's remarks: Z1 and Z3 hold by my own probe,
fade-at-run.patch(the dialog's fade started inside a wrapper ofaxe.run, so within the run whatever the load), not by the body's +20 ms patch: run as written at 2f056ad, that fade landed inside axe's run in 1 theme of 6 played (z1,m1,m2logs; onlym1's fr light), so Z1 andm-emptiedshowed nothing there. The Oracle's « one theme of two » risk is therefore optimistic; the probe is the oracle to keep for #1357's fix. Inanimations then, the start reads-1(a start time still pending when sampled): the line names the animation and its target, not when it began.🤖 Generated with Claude Code