Skip to content

feat(runner): start the tests a change is likeliest to break first - #1589

Merged
okwasniewski merged 6 commits into
mainfrom
kdy1/prioritize-tests-by-failure-risk
Nov 11, 2026
Merged

okwasniewski merged 6 commits into
mainfrom
kdy1/prioritize-tests-by-failure-risk

Conversation

@kdy1

@kdy1 kdy1 commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator
  • A test filter can score the tests it keeps: TestFilterResult.relevance maps test ids to a number from 0 to 1. With --changed-since, each target starts the files of the likeliest tests first, in bands at 75%, 50%, and 25%. Targets go by the band of their best file, ties in config order.
  • Inside a band the existing longest-first order still decides: with more than one worker, the file the timings history (feat(run): keep a timings history that CI can cache #1639) holds longest starts first, and a file with no time starts before the timed ones. docs/filters.mdx, docs/reference/config.mdx, and docs/ci.mdx say how it combines with the bands.
  • decisionFilter() scores every test it hands back: 1 for a test whose file, setup file, or stored screenshots changed, the model's answer for one it judged: the higher of the test's rating and its setup's, where a rating the model did not give counts as 0.5. It asks the model nothing new.
  • A filter that fails can still score. The error it throws may carry relevance, which the run checks like a result's, and the failure still warns, leaves nothing out, and records outcome: failed. decisionFilter() puts the scores the change alone gives (1 for a test the change touches, 0.5 for the rest) on the error it throws when every call fails, so a run with no key, or with the model down, still starts the touched tests first.
  • The run prints ranked 7 of 12 tests by relevance, likeliest first when the scores put tests in more than one band. e2e list says nothing, since it starts nothing.
  • @e2e-dev/decision now needs e2e >=0.23.1. An older runner rejects the unknown relevance key and drops the whole filter, as the main column below shows.

This shortens the time to the first failure: --max-failures, maxDuration, Ctrl-C, and CI with its default single worker, where longest-first never applied. It does not shorten a run that finishes whole. With several workers it can lengthen one, since a likely short file now starts before an unlikely long one.

The sort key is the file's band (its likeliest test), then its time in the timings history (untimed first), then collection order. A target ranks by its best file, ties in config order. scheduler.ts is unchanged: it already drains targets and files in plan order, and scheduler.test.ts pins that. The report lists tests in the same order whatever starts first, and the report format is unchanged.

Verified

Ran it locally: yes

  • Surface: the built CLI on a scratch project with @e2e-dev/web (real Chromium) and a file-backed config whose local filter scores tests, main (0c1b3572) against this branch. The filter needs no model.
  • pnpm bench:ab --suite testbed -- tests/forms.e2e.ts, a run with no scores (4 pairs): every test ran the same steps with the same outcome on both builds, every counter matched, and the timings were the same (wall +1.3%, interval -2.0% to +1.7%). It ran before the last commit, which changes only what a failed filter leaves.
  • Not verified: the real Jev model, since there is no AI Gateway key here. The scripted-model tests cover the scores, and filter-runner.test.ts runs the real list on the decision filter's result. The band edges (75%, 50%, 25%) are my estimate until real scores are seen. The peer floor assumes the next release is 0.23.1.

e2e run --changed-since main --workers 1 --max-failures 1 on three tests: alpha and beta sleep 3 s, gamma fails at once and is collected last. The filter scores gamma 1.

main this branch
filter line warning: likeliest returned an invalid result ... unknown key "relevance" ranked 1 of 3 tests by relevance, likeliest first
start order alpha, beta, gamma gamma
first failure at +6.5 s +0.3 s
alpha, beta passed, 3.3 s and 3.1 s skipped, failure-limit
wall time 7.8 s 1.2 s
main
ℹ judging 2 files changed since 60ed46c
ℹ warning: likeliest returned an invalid result, so it leaves nothing out: unknown key "relevance": a filter returns { exclude: { [test.id]: reason }, note? }, and every test it doesn't name runs
   ✓ |web| tests/alpha.e2e.ts > alpha 3.32s
   ✓ |web| tests/beta.e2e.ts > beta 3.06s
   × |web| tests/gamma.e2e.ts > gamma 131ms
stopped after 1 failure (--max-failures 1): the running tests end as interrupted, the rest are skipped

this branch
ℹ judging 2 files changed since 60ed46c
ℹ likeliest kept all 3 tests
ℹ ranked 1 of 3 tests by relevance, likeliest first
   × |web| tests/gamma.e2e.ts > gamma 343ms
   ↓ |web| tests/alpha.e2e.ts > alpha [run stopped after 1 failure (--max-failures 1)]
   ↓ |web| tests/beta.e2e.ts > beta [run stopped after 1 failure (--max-failures 1)]

e2e run --changed-since main --workers 1 --max-failures 1 with the real decisionFilter() on typesafe-ai/jev and no AI Gateway key, so every model call fails. The tests are the same three, and the change edits gamma's test file, so the change touches it. "Before" is this PR's previous head (d2c2217e), which dropped the scores of a failed filter.

before this branch
filter lines warning: decision failed, so it leaves nothing out: AI Gateway authentication failed: No authentication provided. the same warning, then ranked 3 of 3 tests by relevance, likeliest first
run.filters outcome: failed outcome: failed, same note
start order alpha, beta, gamma gamma
first failure at +6.5 s +0.3 s
alpha, beta passed, 3.3 s and 3.1 s skipped, failure-limit
wall time 6.8 s 0.6 s

e2e list with the same filter prints the warning and the three tests, and no ranking line, as before.

The same failure on the testbed's own config, which runs decisionFilter() on Jev: e2e run --changed-since HEAD --workers 1 tests/forms.e2e.ts tests/todos.e2e.ts with no key and an uncommitted comment added to todos.e2e.ts (reverted after), so the change touches that file. forms is collected first.

before (d2c2217e) this branch
filter lines the decision failed warning the same warning, then ranked 11 of 11 tests by relevance, likeliest first
first test started fills, clears, and submits a profile (forms) adds todos with the button and the keyboard (todos)
the 7 todos tests started 5th to 11th 1st to 7th
result 11 passed 11 passed

e2e run --changed-since main --workers 2 right after a run that recorded the timings, on four tests: a 1 s, b 3 s, c 4 s, d 1 s. The filter scores d 0.9 and c 0.3. Both builds read the same recorded times. This table was taken before the timings history (#1639) landed on main.

main this branch
start order b, c (together), a, d c, d (together), b, a
why longest first, since main drops the scores d is in the top band and c in a lower one, then b goes before a by time
wall time 6.2 s 6.2 s

After rebasing onto the timings history, the same four tests on this branch (a first run wrote timings.json, then --changed-since main --workers 2) start c, d, b, a again, in 5.7 s.

Two integration tests pin the wiring. In test-filters.test.ts, a filter that throws with scores still starts the failing test first under --max-failures 1, and its warning and outcome: failed stay. In parallel-workers.test.ts, a run with one worker ignores the timings history and a run with two workers uses it; that test fails when the runWorkers > 1 gate is removed or always on.

🤖 Generated with Claude Code

@kdy1
kdy1 requested a review from okwasniewski as a code owner November 6, 2026 06:49
@github-actions github-actions Bot added the size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e web: 91 passed

All 91 tests in 41 files
Test Time
🟢 tests/aria-hidden-flow.e2e.ts · 2 passed 986ms
🟢 aria hidden flow › picks the Pro plan by its visible text and confirms it 797ms
🟢 aria hidden flow › another plan shows the error and keeps the picker open 189ms
🟢 tests/async-states.e2e.ts · 2 passed 7.1s
🟢 async states › reads the code off the transient toast and verifies it once the button enables 2.2s
🟢 async states › a wrong code is rejected after the toast has gone 4.8s
🟢 tests/canvas-only.e2e.ts · 2 passed 323ms
🟢 canvas only › taps square, circle, then diamond at their pixel coordinates 176ms
🟢 canvas only › a shape out of order paints the error and resets progress 147ms
🟢 tests/canvas-whiteboard.e2e.ts · 2 passed 431ms
🟢 canvas whiteboard › drags both shapes into their slots and saves 249ms
🟢 canvas whiteboard › bounces a shape off the wrong slot and refuses to save early 182ms
🟢 tests/cart-totals.e2e.ts · 2 passed 445ms
🟢 cart totals › increasing a quantity updates the line total but the order summary stays stale (planted bug) 242ms
🟢 cart totals › a quantity never drops below one 203ms
🟢 tests/checkout-review.e2e.ts · 1 passed 212ms
🟢 shows a raw greeting token and an undefined delivery date (planted bug), yet places the order 212ms
🟢 tests/context-menu-trap.e2e.ts · 2 passed 625ms
🟢 context menu trap › right-click opens nothing; the row menu renames the file 292ms
🟢 context menu trap › the decoy menu items refuse and keep the file 333ms
🟢 tests/control-inventory.e2e.ts · 8 passed 3.8s
🟢 control inventory › check sets the checkbox and the radio without flipping a set one 260ms
🟢 control inventory › check picks a radio the pick replaces with its summary 170ms
🟢 control inventory › a long press and a double click are told apart from a tap 1.0s
🟢 control inventory › the file menu opens on right-click only and Rename renames the file 302ms
🟢 control inventory › setInputFiles attaches files named from the project root 170ms
🟢 control inventory › the details view is left through the browser history 216ms
🟢 control inventory › scrollIntoView brings the footnote into view 297ms
🟢 control inventory › every exercise done shows the success message 1.4s
🟢 tests/css-content-ui.e2e.ts · 2 passed 362ms
🟢 css content ui › the tile labelled Ship it advances and confirming ships 226ms
🟢 css content ui › a wrong tile shows the CSS-rendered error and keeps the picker 136ms
🟢 tests/date-picker.e2e.ts · 2 passed 659ms
🟢 date picker › navigates three months ahead and books the required date 377ms
🟢 date picker › confirming without the exact date shows the error 282ms
🟢 tests/debounced-search.e2e.ts · 2 passed 2.8s
🟢 debounced search › a decoy one character off is refused 1.4s
🟢 debounced search › picking the exact item adds it to the cart 1.4s
🟢 tests/deferred-dialog.e2e.ts · 1 passed 1.1s
🟢 one submit opens one confirm, even when double-clicked 1.1s
🟢 tests/div-soup.e2e.ts · 2 passed 887ms
🟢 div soup › a wrong code is rejected 387ms
🟢 div soup › the right code grants access after the delete tile fixes a typo 500ms
🟢 tests/drag-and-drop.e2e.ts · 2 passed 750ms
🟢 drag and drop › an out-of-order item resets the dropzone 366ms
🟢 drag and drop › dropping Banana then Cherry passes 384ms
🟢 tests/filter-deep-link.e2e.ts · 2 passed 297ms
🟢 filter deep link › filtering writes the query to the URL 160ms
🟢 filter deep link › opening a shared link restores the filter 137ms
🟢 tests/gift-card-purchase.e2e.ts · 3 passed 643ms
🟢 gift card purchase › refuses to buy without an amount 200ms
🟢 gift card purchase › refuses a recipient without an at sign 207ms
🟢 gift card purchase › sends the gift card 236ms
🟢 tests/hover-menu.e2e.ts · 2 passed 478ms
🟢 hover menu › a decoy leaf is refused 192ms
🟢 hover menu › hovering Account, then Billing, reaches Redeem voucher 286ms
🟢 tests/iframe-form.e2e.ts · 2 passed 626ms
🟢 iframe form › a wrong code is refused by the host page 339ms
🟢 iframe form › the code read from one frame applies through the other 287ms
🟢 tests/image-only-ui.e2e.ts · 3 passed 485ms
🟢 image only ui › the icons have no names, so the bare svg locator is ambiguous 129ms
🟢 image only ui › a wrong icon shows the error image and keeps the icons 180ms
🟢 image only ui › tapping the star, then the heart, verifies the icons 176ms
🟢 tests/infinite-scroll.e2e.ts · 1 passed 2.8s
🟢 scrolls the feed until the Golden Ticket loads, then claims it 2.8s
🟢 tests/kanban-board.e2e.ts · 3 passed 746ms
🟢 kanban board › pointer drags move both cards into the goal layout 379ms
🟢 kanban board › a swipe along a path drags a card as well 151ms
🟢 kanban board › a plain tap moves nothing and the untouched board is rejected 216ms
🟢 tests/login-form.e2e.ts · 4 passed 868ms
🟢 login form › rejects a malformed email 218ms
🟢 login form › rejects a short password 198ms
🟢 login form › rejects an unknown account 204ms
🟢 login form › signs in and logs out 248ms
🟢 tests/lying-labels.e2e.ts · 4 passed 743ms
🟢 lying labels › the button whose accessible name says Pay now is the wrong one 181ms
🟢 lying labels › a text match for Pay now catches the decoy phrase too 117ms
🟢 lying labels › the field whose accessible name says Amount is the wrong one 247ms
🟢 lying labels › visible text drives the payment through 198ms
🟢 tests/native-dialogs.e2e.ts · 3 passed 539ms
🟢 native dialogs › answers the confirm, prompt, and alert chain 151ms
🟢 native dialogs › dismissing the confirm cancels the order 183ms
🟢 native dialogs › a wrong gift code is rejected 205ms
🟢 tests/newsletter-signup.e2e.ts · 1 passed 2.3s
🟢 subscribe renders no feedback and logs a TypeError (planted bug) 2.3s
🟢 tests/onboarding-wizard.e2e.ts · 5 passed 4.7s
🟢 onboarding wizard › back keeps what was typed and the brief comes back with it 278ms
🟢 onboarding wizard › the address step takes the brief through its bare-div dropdown 351ms
🟢 onboarding wizard › the profile step steers the calendar three decades back 1.1s
🟢 onboarding wizard › the preferences step flips the toggles the brief names and leaves the trap off 1.4s
🟢 onboarding wizard › the review step repeats the brief and finishes with the PIN 1.5s
🟢 tests/order-history.e2e.ts · 2 passed 1.5s
🟢 order history › overview and settings render their panels 195ms
🟢 order history › the orders tab never leaves its loading state (planted bug) 1.3s
🟢 tests/otp-auto-advance.e2e.ts · 3 passed 1.5s
🟢 otp auto-advance › focus advances with each digit and the full code verifies 519ms
🟢 otp auto-advance › backspace on an empty box clears and refocuses the previous one 161ms
🟢 otp auto-advance › a wrong code clears every box and starts over 781ms
🟢 tests/overlay-trap.e2e.ts · 1 passed 703ms
🟢 continues only after the banner and the overlay are gone 703ms
🟢 tests/playbook-cleanup.e2e.ts · 2 passed 544ms
🟢 playbook cleanup › deleting the draft removes it from an exact-name search 296ms
🟢 playbook cleanup › cancelling the dialog keeps the draft searchable 248ms
🟢 tests/price-sorting.e2e.ts · 3 passed 433ms
🟢 price sorting › opens in the featured order with sale prices struck through 132ms
🟢 price sorting › low to high sorts by the original price, not the paid one (planted bug) 150ms
🟢 price sorting › high to low is the same wrong order reversed (planted bug) 151ms
🟢 tests/product-reviews.e2e.ts · 1 passed 1.2s
🟢 the running-shoe page lists coffee-grinder reviews (planted bug) 1.2s
🟢 tests/promo-storefront.e2e.ts · 1 passed 1.4s
🟢 buys a deal once the promo chrome is out of the way 1.4s
🟢 tests/rich-text-editor.e2e.ts · 2 passed 494ms
🟢 rich text editor › bolding exactly the required word passes the check 225ms
🟢 rich text editor › bold that spills into the previous word fails the check 269ms
🟢 tests/saved-addresses.e2e.ts · 3 passed 668ms
🟢 saved addresses › adds an address and clears the form 230ms
🟢 saved addresses › ignores an add with an empty field 209ms
🟢 saved addresses › delete shows its toast but keeps the address, on retry too (planted bug) 229ms
🟢 tests/shadow-dom-form.e2e.ts · 2 passed 635ms
🟢 shadow DOM form › rejects a wrong access code 306ms
🟢 shadow DOM form › grants access with the code from the hint inside the root 329ms
🟢 tests/smoke.e2e.ts · 1 passed 460ms
🟢 home lists the scenarios and opens one 460ms
🟢 tests/stale-dom.e2e.ts · 1 passed 2.2s
🟢 taps the moving target three times across rebuilds of the list 2.2s
🟢 tests/sticky-chrome.e2e.ts · 1 passed 198ms
🟢 accepts the terms once the button clears the sticky footer 198ms
🟢 tests/virtualized-table.e2e.ts · 1 passed 15.3s
🟢 scrolls the windowed table to the Golden Row and claims it 15.3s
🟢 tests/wishlist.e2e.ts · 2 passed 1.5s
🟢 wishlist › saving toggles the button and the tab badge 226ms
🟢 wishlist › the wishlist tab renders the empty state despite the badge count (planted bug) 1.3s

Tested by e2e 0.23.0 · 1m 5s · web · run artifacts

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e web agent: 33 passed

34 agent steps · 26 replayed from cache · 20 model calls · 88.6k tokens (94% cached) · $0.0036

All 33 tests in 5 files
Test Agent Time
🟢 tests-agent/control-inventory.e2e.ts · 7 passed 7 steps 8.2s
🟢 control inventory › check sets the checkbox and the radio 1 step 913ms
🟢 control inventory › check picks a radio the pick replaces with its summary 1 step 342ms
🟢 control inventory › a long press and a double click are chosen over a plain tap 1 step 1.0s
🟢 control inventory › a right-click opens the file menu and Rename renames the file 1 step 2.6s
🟢 control inventory › upload attaches the named project files 1 step 2.5s
🟢 control inventory › back returns from the details view to the inventory 1 step 430ms
🟢 control inventory › scroll_to brings the footnote into view 1 step 418ms
🟢 tests-agent/login-form.e2e.ts · 1 passed 1 step 678ms
🟢 act signs in with the benchmark account 1 step 678ms
🟢 tests-agent/planted-bugs.e2e.ts · 3 passed 4 steps · 8 calls 11.2s
🟢 cart totals: a judgment catches the stale order summary 2 steps · 4 calls 5.7s
🟢 checkout review: a judgment catches the broken copy 1 step · 1 call 1.6s
🟢 wishlist: a judgment catches the lost saved items 1 step · 3 calls 3.9s
🟢 tests-agent/scenarios.e2e.ts · 21 passed 21 steps · 12 calls 1m 10s
🟢 act completes shadow-dom-form 1 step · 3 calls 3.7s
🟢 act completes lying-labels 1 step · 3 calls 4.9s
🟢 act completes iframe-form 1 step · 3 calls 4.0s
🟢 act completes infinite-scroll 1 step 3.4s
🟢 act completes virtualized-table 1 step 21.0s
🟢 act completes overlay-trap 1 step 854ms
🟢 act completes sticky-chrome 1 step 848ms
🟢 act completes async-states 1 step · 3 calls 7.0s
🟢 act completes debounced-search 1 step 2.3s
🟢 act completes hover-menu 1 step 467ms
🟢 act completes drag-and-drop 1 step 431ms
🟢 act completes kanban-board 1 step 597ms
🟢 act completes context-menu-trap 1 step 2.6s
🟢 act completes stale-dom 1 step 447ms
🟢 act completes otp-auto-advance 1 step 689ms
🟢 act completes date-picker 1 step 814ms
🟢 act completes rich-text-editor 1 step 10.1s
🟢 act completes playbook-cleanup 1 step 605ms
🟢 act completes promo-storefront 1 step 2.3s
🟢 act completes gift-card-purchase 1 step 2.5s
🟢 act filters the list and the URL carries the filter 1 step 233ms
🟢 tests-agent/unique-cache.e2e.ts · 1 passed 1 step 308ms
🟢 act adds an address with a run-unique label 1 step 308ms

Tested by e2e 0.23.0 · 1m 31s · web · run artifacts

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios agent: 1 flaky, 20 passed, 1 skipped

25 agent steps · 11 replayed from cache · 66 model calls · 493.4k tokens (82% cached) · $0.0341

⚠️ 1 flaky test passed on a retry

⚠️ act completes Gestures
tests-agent/scenarios.e2e.ts:266

ACTION_FAILED at step 4 of 4: agent.act "Complete this scenario as the screen instructs: long-press the first target, swipe the card left, then double-tap the last target", after 1m 1s and 12 model calls

agent.act failed: Completed the long-press and left-swipe stages. The screen reached “Step 3 of 3,” but double-tapping the “Double-tap me” target did not advance or visibly complete the scenario; the screen remains on the final prompt.

  • Turn 9: double_tap({"target":"n3722"}) → [double_tap] Double-tapped #n3722.
  • Turn 10: tap({"target":"n3749"}) → [tap] Tapped #n3749.
  • Turn 11: tap({"target":"n3794"}) → [tap] Tapped #n3794.
  • Screen: dev.e2e.benchmark / Gestures

Evidence: screenshot, log

All 22 tests in 1 file
Test Agent Time
⚠️ tests-agent/scenarios.e2e.ts · 1 flaky, 20 passed, 1 skipped 25 steps · 66 calls 9m 41s
🟢 act completes Login Form 1 step · 4 calls 1m 22s
🟢 act completes Infinite Scroll List 1 step 37.9s
🟢 act completes Modal Flow 1 step 10.1s
🟢 act completes Bottom Tabs 1 step 7.4s
🟢 act completes Text Input Variations 1 step 13.2s
🟢 act completes Broken Accessibility 2 steps · 6 calls 27.4s
🟢 act completes Vision Only 2 steps · 6 calls 29.1s
⚠️ act completes Gestures (1 failed attempt first) 1 step · 12 calls 59.6s
🟢 act completes Async States 1 step · 9 calls 34.2s
🟢 act completes Debounced Search 1 step · 1 call 28.8s
🟢 act completes Flattened Registration Form 2 steps · 1 call 29.8s
🟢 act completes Flattened Login 2 steps · 11 calls 57.5s
🟢 act completes Sticky Chrome Target 1 step 13.7s
🟢 act completes WebView Accessibility 1 step 12.1s
🟢 act completes Permission Prompt 1 step 11.0s
🟢 act completes Photo Picker 1 step · 2 calls 28.8s
🟢 act completes Product Catalog 1 step 10.0s
🟢 act completes Error Recovery 1 step 10.2s
🟢 act completes Choice Controls 1 step · 6 calls 36.1s
🟢 act completes Stripe PaymentSheet 1 step · 8 calls 30.9s
🟢 act completes Apple Pay 1 step 10.7s
⏭️ act completes Apple Pay Billing Address (skipped: the CI simulator's Apple Pay sheet skips the billing-address step, so the scenario cannot be completed there)

Tested by e2e 0.23.0 · 10m 47s · ios-simulator · run artifacts

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread packages/e2e/tests/unit/units.test.ts Resolved
Comment thread docs/reference/config.mdx Resolved
Comment thread docs/ci.mdx Resolved
Comment thread packages/e2e/src/run/units.ts Resolved
Comment thread docs/filters.mdx Resolved
Comment thread packages/decision/src/filter.ts Resolved
Comment thread docs/filters.mdx Resolved
Comment thread docs/filters.mdx Resolved
kdy1 added a commit that referenced this pull request Nov 6, 2026
Review of #1589 found the docs looser than the code: targets go by the band of their best file, not its exact score, with ties in config order; a rating the model did not give counts as 50% and the test takes the higher of its two ratings; the bands are half-open; the ranking line follows when the scores put tests in more than one band; and a filter that returns no scores leaves the order alone. One test title said an empty target goes last, but it keeps its place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread docs/examples/filters/areas-filter.ts Resolved
Comment thread packages/decision/README.md Resolved
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android agent: 20 passed

24 agent steps · 15 replayed from cache · 43 model calls · 251.7k tokens (84% cached) · $0.0162

All 20 tests in 1 file
Test Agent Time
🟢 tests-agent/scenarios.e2e.ts · 20 passed 24 steps · 43 calls 6m 23s
🟢 act completes Login Form 1 step 25.8s
🟢 act completes Infinite Scroll List 1 step 22.1s
🟢 act completes Modal Flow 1 step 10.2s
🟢 act completes Bottom Tabs 1 step 7.1s
🟢 act completes Text Input Variations 1 step 6.0s
🟢 act completes Broken Accessibility 2 steps · 5 calls 14.5s
🟢 act completes Vision Only 2 steps · 1 call 6.6s
🟢 act completes Gestures 1 step · 10 calls 30.2s
🟢 act completes Async States 1 step · 15 calls 34.1s
🟢 act completes Debounced Search 1 step 8.0s
🟢 act completes Huge Virtualized List 1 step 1m 59s
🟢 act completes Flattened Registration Form 2 steps · 1 call 8.1s
🟢 act completes Flattened Login 2 steps · 6 calls 16.1s
🟢 act completes Sticky Chrome Target 1 step 9.3s
🟢 act completes WebView Accessibility 1 step · 5 calls 16.0s
🟢 act completes Permission Prompt 1 step 7.3s
🟢 act completes Product Catalog 1 step 9.8s
🟢 act completes Error Recovery 1 step 10.8s
🟢 act completes Choice Controls 1 step 9.8s
🟢 act completes Sequential Onboarding 1 step 12.0s

Tested by e2e 0.23.0 · 6m 24s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android: 57 passed, 1 skipped

All 58 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 24 passed, 1 skipped 2m 54s
🟢 control inventory › a label query resolves a labeled text field 27.5s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 11.7s
🟢 control inventory › a placeholder query and attribute reads find the field 7.3s
🟢 control inventory › a secure field takes a fill and denies value reads 6.2s
🟢 control inventory › press sends a character and Enter through the soft keyboard 8.3s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 8.1s
🟢 control inventory › toBeFocused follows the focus 8.4s
🟢 control inventory › a switch checks, unchecks, and reports its state 8.5s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 7.2s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 10.5s
🟢 control inventory › a tab role answers getByRole 3.4s
🟢 control inventory › a radio group reports the checked option 8.0s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 6.8s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 6.5s
🟢 control inventory › a header answers its accessible name 4.3s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 5.9s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 5.1s
⏭️ control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…)
🟢 control inventory › a long press lands as one 7.9s
🟢 control inventory › a double tap lands inside the 300 ms window 6.8s
🟢 control inventory › an ambiguous locator fails at once 5.3s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 8.0s
🟢 refusals › verbs a device never declares are refused before the engine 5ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 1.5s
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 10 passed 1m 17s
🟢 device fixture › setOrientation rotates the window the app measures 5.4s
🟢 device fixture › home leaves the app, openApp brings it back where it was 5.0s
🟢 device fixture › foregroundApp sees the home screen after home() 4.5s
🟢 device fixture › closeApp then openApp relaunches on the home list 6.8s
🟢 device fixture › closeApp leaves the next commands on the same device 7.1s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 4.2s
🟢 device fixture › device.back pops the scenario 4.9s
🟢 device fixture › unstable_raw reaches the test session through agent-device 3.6s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 15.5s
🟢 device fixture › setLocation and clearLocation change what the app reads 20.1s
🟢 tests/device.e2e.ts · 5 passed 42.9s
🟢 permission prompt › allowing the system dialog enables the microphone 6.0s
🟢 permission prompt › a denied prompt recovers once the permission is granted outside 12.3s
🟢 sequential onboarding echoes the exact values 10.0s
🟢 onboarding rejects a malformed email before advancing 7.0s
🟢 dismissing the keyboard over choice controls leaves them as they were 7.5s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 20s
🟢 infinite scroll reaches the target item 31.6s
🟢 product catalog adds exactly two of the right variant 8.7s
🟢 gestures: long-press, then swipe left 8.1s
🟢 gestures: double-tap completes the flow 9.8s
🟢 sticky chrome: accept below the fold, then continue 11.5s
🟢 async states: load, pull to refresh, claim through the toast 12.4s
🟢 huge virtualized list reaches row 512 1m 57s
🟢 tests/flows.e2e.ts · 7 passed 50.8s
🟢 text inputs unlock the submit button 6.0s
🟢 filled text inputs report their values 5.5s
🟢 modal flow confirms through the native alert 9.0s
🟢 bottom tabs act inside the last tab 6.7s
🟢 error recovery retries, then confirms the delete 8.4s
🟢 choice controls place the exact order 6.4s
🟢 debounced search selects the target once results arrive 8.7s
🟢 tests/login-form.e2e.ts · 3 passed 27.6s
🟢 login form › rejects a malformed email 7.5s
🟢 login form › rejects an unknown account 7.3s
🟢 login form › signs in and logs out 12.8s
🟢 tests/smoke.e2e.ts · 1 passed 5.2s
🟢 home lists the scenarios and opens one 5.2s

Tested by e2e 0.23.0 · 9m 38s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 55 passed, 1 skipped

All 56 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 23 passed, 1 skipped 3m 14s
🟢 control inventory › a label query resolves a labeled text field 15.6s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 16.4s
🟢 control inventory › a placeholder query and attribute reads find the field 4.5s
🟢 control inventory › a secure field takes a fill and denies value reads 9.4s
🟢 control inventory › press sends a character and Enter through the soft keyboard 10.8s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 11.0s
🟢 control inventory › toBeFocused follows the focus 9.3s
🟢 control inventory › a switch checks, unchecks, and reports its state 10.7s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 8.9s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 14.1s
🟢 control inventory › a radio group reports the checked option 9.6s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 7.5s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 7.2s
🟢 control inventory › a header answers its accessible name 4.5s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 6.4s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 7.5s
⏭️ control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…)
🟢 control inventory › a long press lands as one 9.6s
🟢 control inventory › pointer verbs land at the point asked for 10.5s
🟢 control inventory › an ambiguous locator fails at once 6.5s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 12.3s
🟢 refusals › verbs a device never declares are refused before the engine 2ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 535ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.2s
🟢 tests/device-fixture.e2e.ts · 11 passed 1m 48s
🟢 device fixture › setAppearance flips the color scheme the app reads 19.3s
🟢 device fixture › setOrientation rotates the window the app measures 9.1s
🟢 device fixture › the clipboard reads back what was written 6.8s
🟢 device fixture › home leaves the app, openApp brings it back where it was 6.9s
🟢 device fixture › closeApp then openApp relaunches on the home list 10.4s
🟢 device fixture › closeApp leaves the next commands on the same device 12.8s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 7.7s
🟢 device fixture › device.back pops the scenario 6.2s
🟢 device fixture › unstable_raw reaches the test session through agent-device 4.8s
🟢 device fixture › setLocation and clearLocation change what the app reads 12.0s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 11.6s
🟢 tests/device.e2e.ts · 3 passed 1m 11s
🟢 sequential onboarding echoes the exact values 42.4s
🟢 onboarding rejects a malformed email before advancing 15.3s
🟢 dismissing the keyboard over choice controls leaves them as they were 13.1s
🟢 tests/flows-lists.e2e.ts · 7 passed 4m 22s
🟢 infinite scroll reaches the target item 39.0s
🟢 product catalog adds exactly two of the right variant 10.3s
🟢 gestures: long-press, then swipe left 9.1s
🟢 sticky chrome: accept below the fold, then continue 13.4s
🟢 async states: load, pull to refresh, claim through the toast 12.3s
🟢 huge virtualized list reaches row 512 2m 45s
🟢 web view coupon form applies the code shown on the page 12.5s
🟢 tests/flows.e2e.ts · 7 passed 1m 12s
🟢 text inputs unlock the submit button 13.9s
🟢 filled text inputs report their values 10.6s
🟢 modal flow confirms through the native alert 10.1s
🟢 bottom tabs act inside the last tab 7.6s
🟢 error recovery retries, then confirms the delete 9.4s
🟢 choice controls place the exact order 8.3s
🟢 debounced search selects the target once results arrive 12.2s
🟢 tests/login-form.e2e.ts · 3 passed 50.5s
🟢 login form › rejects a malformed email 14.7s
🟢 login form › rejects an unknown account 14.4s
🟢 login form › signs in and logs out 21.4s
🟢 tests/smoke.e2e.ts · 1 passed 8.2s
🟢 home lists the scenarios and opens one 8.2s

Tested by e2e 0.23.0 · 7m 21s · ios-simulator · run artifacts

@kdy1 kdy1 added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 6, 2026
@kdy1

kdy1 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

[claude-sonnet-5-5] responding on behalf of kdy1

Left for the human reviewer:

  • Open thread on packages/decision/src/filter.ts (feat(runner): start the tests a change is likeliest to break first #1589 (comment)): when every model call fails, judge() throws and the runner drops all scores, so the tests a change touches do not start first during a model outage. Keeping them would change the filter's public failure contract (warning plus outcome: failed), so I left it as is. Your call.
  • Not verified with the real Jev model: there is no AI Gateway key where I ran this. The scores are covered by scripted-model tests, and the band edges (75%, 50%, 25%) are my estimate until real scores are seen.
  • The @e2e-dev/decision peer floor e2e >=0.23.1 <1 assumes the next runner release is 0.23.1, since the changeset is patch. Check it when the release is cut.

kdy1 added a commit that referenced this pull request Nov 10, 2026
Review of #1589 found the docs looser than the code: targets go by the band of their best file, not its exact score, with ties in config order; a rating the model did not give counts as 50% and the test takes the higher of its two ratings; the bands are half-open; the ranking line follows when the scores put tests in more than one band; and a filter that returns no scores leaves the order alone. One test title said an empty target goes last, but it keeps its place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kdy1
kdy1 force-pushed the kdy1/prioritize-tests-by-failure-risk branch from fa1bf6a to 0eb9a07 Compare November 10, 2026 04:38
@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 10, 2026
@kdy1 kdy1 added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 10, 2026
@kdy1

kdy1 commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator Author

[claude-sonnet-5-5] responding on behalf of kdy1

Review fix pushed at 0eb9a07, and the thread on packages/decision/src/filter.ts is resolved. What still needs a human:

  • A new public channel: an error a filter throws may carry relevance. It is documented on TestFilter, in docs/filters.mdx, and in the config reference. It is untyped, so a misspelled property scores nothing and says nothing. A typed helper exported from e2e would fix that; I kept the public surface small. Your call.
  • Not verified with the real Jev model: there is no AI Gateway key where I ran this. The band edges (75%, 50%, 25%) are my estimate until real scores are seen.
  • The @e2e-dev/decision peer floor e2e >=0.23.1 <1 assumes the next runner release is 0.23.1, since the changeset is patch. Check it when the release is cut.

The ios agent comment shows one flaky retry (act completes Flattened Login: the agent typed extra characters into the email field on the first try). It passed on the retry, and that suite uses no test filter.

kdy1 and others added 6 commits November 11, 2026 00:47
A test filter can score the tests it keeps: `relevance` in its result maps test ids to a number from 0 to 1. With `--changed-since`, each target starts the files of the likeliest tests first, in bands at 75%, 50%, and 25%, and the target with the likeliest file goes first. Inside a band the longest-first order from the previous run still decides, with more than one worker.

`decisionFilter()` scores every test it hands back: 1 for a test whose file, setup file, or stored screenshots changed, the model's answer for one it judged, and 0.5 for one it did not. It requires e2e 0.23.1 or newer, since an older runner refuses the unknown `relevance` key and drops the whole filter.

The run prints `ranked N of M tests by relevance, likeliest first` when the scores change the order.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… a parameter

CodeQL flagged `failingFile(title)` for putting `JSON.stringify` output into generated code. Only `gamma` used it, so the file is a constant now.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Review of #1589 found the docs looser than the code: targets go by the band of their best file, not its exact score, with ties in config order; a rating the model did not give counts as 50% and the test takes the higher of its two ratings; the bands are half-open; the ranking line follows when the scores put tests in more than one band; and a filter that returns no scores leaves the order alone. One test title said an empty target goes last, but it keeps its place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…not tests

The areas example now scores the tests whose area a change reaches even when another changed file maps to no area, keeping the no-exclusion fallback. The README, docs, and skill say the run starts the files of the likeliest tests, ordered by relevance band with collection order breaking ties on one worker. The timings test makes beta and gamma wait for each other before they sleep, so a slow second worker cannot start alpha ahead of gamma.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A filter that threw left every test unscored, so a run with no AI Gateway
key (a pull request from a fork) or a model outage fell back to collection
order and lost the one thing the decision filter knows without the model:
which tests the change touches.

The error a filter throws may now carry `relevance`. The runner checks it
the way it checks a result's, merges it by the highest score, and still
warns, leaves nothing out, and records `outcome: failed`. Scores that fail
the check are dropped, and the note says why. A call past its deadline is
abandoned, and nothing it throws is read.

decisionFilter() puts the scores the change alone gives (1 for a test the
change touches, 0.5 for the rest) on the error it throws, as a property
that is not enumerable, so printing the error does not list every test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The timings history (#1639) replaced the previous report as where file
durations come from, so the prose that says what orders files inside a
relevance band now names it: the filters guide, the `workers` bullet in
the config reference, the CI guide, the skill's running reference, and the
wording of the integration test that pins the one-worker gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kdy1
kdy1 force-pushed the kdy1/prioritize-tests-by-failure-risk branch from 0eb9a07 to a81baf1 Compare November 10, 2026 15:48
@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 10, 2026
@kdy1 kdy1 added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 10, 2026

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work!

@okwasniewski
okwasniewski merged commit b5e4703 into main Nov 11, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants