Skip to content

fix(run): keep --last-failed reruns honest: failure-limit skips, carried debts, kept evidence - #724

Merged
okwasniewski merged 5 commits into
mainfrom
oskar/fix-rerun-integrity
Oct 3, 2026
Merged

okwasniewski merged 5 commits into
mainfrom
oskar/fix-rerun-integrity

Conversation

@okwasniewski

@okwasniewski okwasniewski commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Partial --last-failed reruns could go green on tests that never ran, forget a failed hook, and destroy the evidence the GitHub comment links to.

  • failure-limit skips rerun. failure-limit joins the undelivered skip causes (packages/e2e/src/run/last-run.ts). Before this, e2e run --max-failures 1 || e2e run --last-failed reran only the failed test and exited 0.

  • Owed tests are carried. A --last-failed rerun's report gets a new optional run.carried field (report-v1.schema.json, valid fixture, sdk-types.ts). It holds:

    • owed results the rerun did not run: left out by --grep, --tag, --target, --agent, or a positional;
    • the serial groups those results' attempts live on;
    • unresolved beforeAll/afterAll failures in their scope.

    lastFailedIds selects carried tests, so a test stays owed across consecutive partial reruns until one runs it. A hook failure resolves once a rerun runs any test in its scope without the hook failing. The rerun's own exit code and summary still count only what it ran.

  • The fold stays red. foldLastRun (packages/github/src/merge.ts) shows carried rows in place of filtered ones and reads the previous run's carried rows as history. It appends carried hook errors and turns the page red while a carried test or hook failure is owed. A carried test the run before interrupted reached no verdict (fix(report)!: count interrupted tests apart from failures #713), so it leaves the outcome alone and the page reads ⏹️, not red; the next --last-failed still runs it. Before, ...current.run dropped the previous run's errors.

  • Evidence survives. The rerun no longer wipes artifacts/:

    • it prunes the tree to the files the report it reruns names (pruneArtifacts, reportArtifactPaths);
    • it claims a fresh artifacts/rerun-<n>/ (claimRerunDir, exclusive mkdir, numbered past any existing) and files its attempts there via rerunDir on the worker bootstrap;
    • no rerun attempt can overwrite attempt-0 of the run it folds.

    A full run still clears everything and keeps the same paths.

flowchart LR
  R0[run: report 0] -->|--last-failed --grep B| R1[rerun-1: B ran, A carried + HOOK_FAILED]
  R1 -->|--last-failed| R2[rerun-2: A runs again]
  R0 -. artifacts kept .-> R1
  R1 -. artifacts kept .-> R2
Loading

Docs: reference/cli.mdx (--last-failed, --output), reference/config.mdx, reference/reporters.mdx, ci.mdx (the rerun no longer empties artifacts/, so one upload covers both steps), github.mdx, debugging.mdx, skills/e2e/references/running.md.

Review findings fixed before opening (fresh-context reviewer):

  • --target/--agent left no row, so owed tests on unselected targets or agents were dropped. They are now carried while the test is collected and the target still exists.
  • A carried hook stayed carried after its scope reran and passed. It now resolves.
  • A carried failure-limit skip left the fold green. Now anything carried turns the page red.
  • An unneeded setup has no report row, so its failed afterAll debt was dropped. Existence is now checked against the run's collected test ids (Devin thread).

Verified

Ran it locally: yes

  • Scratch project /tmp/oskar-fix-rerun-integrity (rebuilt as /tmp/oskar-724-repro for the rebase) with the real built CLI (node packages/e2e/dist/cli/bin.js). An api project covers D7. A web project (trace: 'on', github() reporter, faked GITHUB_ACTIONS env writing the job summary) has an afterAll that throws in A and a fixable B with screenshots.
  • Each rerun's fold is foldLastRun(report, previous). The "fold links" column re-hashes every artifact the folded page links and checks it against the report's sha256.
Scenario main this branch
D7: run --max-failures 1, then FIX_T1=1 run --last-failed exit 0, 1 test ran, T2/T3 never ran exit 1, all 3 ran (T2, T3 fail)
D7b: same, then --last-failed --grep T1, then --last-failed exit 0, then NO_TESTS exit 2 exit 0 with T2, T3 in run.carried, then exit 1 running T2, T3
CI recipe run || FIX_B=1 run --last-failed: fold links 4 ok, 4 sha mismatch (overwritten), 2 missing (deleted) 10 ok
CI recipe: first-run files after the rerun 4 changed, 2 gone unchanged; rerun files under rerun-1/
D6: run, then FIX_B=1 run --last-failed --grep B: job summary 🟢 e2e: 1 flaky, 1 passed, HOOK_FAILED lost, A's screenshot and trace gone 🔴 e2e: 1 flaky, 1 passed + HOOK_FAILED (afterAll), all 10 links ok
D6: next --last-failed (hook still broken) NO_TESTS, exit 2 runs A, HOOK_FAILED, exit 1
D6: FIX_A=1 run --last-failed NO_TESTS, exit 2 runs A, exit 0, nothing carried
Uncollected: run, break t2's import, FIX_T1=1 run --last-failed tests/t1.e2e.ts, fix t2, run --last-failed (this PR before c4b0c69) T2 dropped from run.carried, debt lost T2 carried as failed, then the next --last-failed runs T2
Interrupted carry (#713): SIGINT a run mid T4, then FIX_T1=1 run --last-failed --grep T1, then run --last-failed n/a rerun exit 0, T4 in run.carried as interrupted, fold ### ⏹️ e2e: 1 interrupted, 1 flaky (status passed, exit 0), next --last-failed runs T4

New regression tests:

  • unit: tests/unit/last-run.test.ts, tests/unit/rerun-artifacts.test.ts, the carried constraints in tests/unit/schema-fixtures.test.ts, and github tests/unit/merge.test.ts;
  • integration: runner-lifecycle.test.ts (the failure limit and a filter carried across reruns, a hook carried until its scope runs, a test of a file a narrowed rerun could not import still carried) and output.test.ts (evidence kept byte for byte, rerun-1/, then rerun-2/, and a full run back at the root).

Re-run on the rebase onto main 7f9ee10 (after #713, #741, #727): every row above matches.

The new fold tests fail against main's merge.ts. Locally green: pnpm check, e2e (unit and integration), github, testbed, web-benchmark.

@devin-ai-integration devin-ai-integration 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.

Devin Review found 3 potential issues.

Devin Review

Comment thread packages/e2e/src/run/last-run.ts Resolved
Comment thread packages/e2e/src/run/last-run.ts Resolved
Comment thread packages/e2e/src/run/artifacts.ts Resolved
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e web: 90 passed

All 90 tests in 41 files
Test Time
🟢 tests/aria-hidden-flow.e2e.ts · 2 passed 613ms
🟢 aria hidden flow › picks the Pro plan by its visible text and confirms it 421ms
🟢 aria hidden flow › another plan shows the error and keeps the picker open 192ms
🟢 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.3s
🟢 async states › a wrong code is rejected after the toast has gone 4.8s
🟢 tests/canvas-only.e2e.ts · 2 passed 200ms
🟢 canvas only › taps square, circle, then diamond at their pixel coordinates 110ms
🟢 canvas only › a shape out of order paints the error and resets progress 90ms
🟢 tests/canvas-whiteboard.e2e.ts · 2 passed 314ms
🟢 canvas whiteboard › drags both shapes into their slots and saves 181ms
🟢 canvas whiteboard › bounces a shape off the wrong slot and refuses to save early 133ms
🟢 tests/cart-totals.e2e.ts · 2 passed 278ms
🟢 cart totals › increasing a quantity updates the line total but the order summary stays stale (planted bug) 148ms
🟢 cart totals › a quantity never drops below one 130ms
🟢 tests/checkout-review.e2e.ts · 1 passed 150ms
🟢 shows a raw greeting token and an undefined delivery date (planted bug), yet places the order 150ms
🟢 tests/context-menu-trap.e2e.ts · 2 passed 481ms
🟢 context menu trap › right-click opens nothing; the row menu renames the file 250ms
🟢 context menu trap › the decoy menu items refuse and keep the file 231ms
🟢 tests/control-inventory.e2e.ts · 7 passed 3.0s
🟢 control inventory › check sets the checkbox and the radio without flipping a set one 215ms
🟢 control inventory › a long press and a double click are told apart from a tap 965ms
🟢 control inventory › the file menu opens on right-click only and Rename renames the file 206ms
🟢 control inventory › setInputFiles attaches files named from the project root 121ms
🟢 control inventory › the details view is left through the browser history 138ms
🟢 control inventory › scrollIntoView brings the footnote into view 235ms
🟢 control inventory › every exercise done shows the success message 1.2s
🟢 tests/css-content-ui.e2e.ts · 2 passed 284ms
🟢 css content ui › the tile labelled Ship it advances and confirming ships 147ms
🟢 css content ui › a wrong tile shows the CSS-rendered error and keeps the picker 137ms
🟢 tests/date-picker.e2e.ts · 2 passed 513ms
🟢 date picker › navigates three months ahead and books the required date 295ms
🟢 date picker › confirming without the exact date shows the error 218ms
🟢 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.0s
🟢 one submit opens one confirm, even when double-clicked 1.0s
🟢 tests/div-soup.e2e.ts · 2 passed 558ms
🟢 div soup › a wrong code is rejected 244ms
🟢 div soup › the right code grants access after the delete tile fixes a typo 314ms
🟢 tests/drag-and-drop.e2e.ts · 2 passed 564ms
🟢 drag and drop › an out-of-order item resets the dropzone 284ms
🟢 drag and drop › dropping Banana then Cherry passes 280ms
🟢 tests/filter-deep-link.e2e.ts · 2 passed 189ms
🟢 filter deep link › filtering writes the query to the URL 108ms
🟢 filter deep link › opening a shared link restores the filter 81ms
🟢 tests/gift-card-purchase.e2e.ts · 3 passed 429ms
🟢 gift card purchase › refuses to buy without an amount 126ms
🟢 gift card purchase › refuses a recipient without an at sign 150ms
🟢 gift card purchase › sends the gift card 153ms
🟢 tests/hover-menu.e2e.ts · 2 passed 379ms
🟢 hover menu › a decoy leaf is refused 164ms
🟢 hover menu › hovering Account, then Billing, reaches Redeem voucher 215ms
🟢 tests/iframe-form.e2e.ts · 2 passed 395ms
🟢 iframe form › a wrong code is refused by the host page 182ms
🟢 iframe form › the code read from one frame applies through the other 213ms
🟢 tests/image-only-ui.e2e.ts · 3 passed 369ms
🟢 image only ui › the icons have no names, so the bare svg locator is ambiguous 88ms
🟢 image only ui › a wrong icon shows the error image and keeps the icons 130ms
🟢 image only ui › tapping the star, then the heart, verifies the icons 151ms
🟢 tests/infinite-scroll.e2e.ts · 1 passed 3.9s
🟢 scrolls the feed until the Golden Ticket loads, then claims it 3.9s
🟢 tests/kanban-board.e2e.ts · 3 passed 614ms
🟢 kanban board › pointer drags move both cards into the goal layout 332ms
🟢 kanban board › a swipe along a path drags a card as well 132ms
🟢 kanban board › a plain tap moves nothing and the untouched board is rejected 150ms
🟢 tests/login-form.e2e.ts · 4 passed 568ms
🟢 login form › rejects a malformed email 135ms
🟢 login form › rejects a short password 131ms
🟢 login form › rejects an unknown account 133ms
🟢 login form › signs in and logs out 169ms
🟢 tests/lying-labels.e2e.ts · 4 passed 477ms
🟢 lying labels › the button whose accessible name says Pay now is the wrong one 112ms
🟢 lying labels › a text match for Pay now catches the decoy phrase too 78ms
🟢 lying labels › the field whose accessible name says Amount is the wrong one 138ms
🟢 lying labels › visible text drives the payment through 149ms
🟢 tests/native-dialogs.e2e.ts · 3 passed 366ms
🟢 native dialogs › answers the confirm, prompt, and alert chain 117ms
🟢 native dialogs › dismissing the confirm cancels the order 116ms
🟢 native dialogs › a wrong gift code is rejected 133ms
🟢 tests/newsletter-signup.e2e.ts · 1 passed 2.2s
🟢 subscribe renders no feedback and logs a TypeError (planted bug) 2.2s
🟢 tests/onboarding-wizard.e2e.ts · 5 passed 3.9s
🟢 onboarding wizard › back keeps what was typed and the brief comes back with it 210ms
🟢 onboarding wizard › the address step takes the brief through its bare-div dropdown 249ms
🟢 onboarding wizard › the profile step steers the calendar three decades back 1.0s
🟢 onboarding wizard › the preferences step flips the toggles the brief names and leaves the trap off 1.2s
🟢 onboarding wizard › the review step repeats the brief and finishes with the PIN 1.2s
🟢 tests/order-history.e2e.ts · 2 passed 1.3s
🟢 order history › overview and settings render their panels 148ms
🟢 order history › the orders tab never leaves its loading state (planted bug) 1.2s
🟢 tests/otp-auto-advance.e2e.ts · 3 passed 1.3s
🟢 otp auto-advance › focus advances with each digit and the full code verifies 422ms
🟢 otp auto-advance › backspace on an empty box clears and refocuses the previous one 100ms
🟢 otp auto-advance › a wrong code clears every box and starts over 742ms
🟢 tests/overlay-trap.e2e.ts · 1 passed 682ms
🟢 continues only after the banner and the overlay are gone 682ms
🟢 tests/playbook-cleanup.e2e.ts · 2 passed 373ms
🟢 playbook cleanup › deleting the draft removes it from an exact-name search 190ms
🟢 playbook cleanup › cancelling the dialog keeps the draft searchable 183ms
🟢 tests/price-sorting.e2e.ts · 3 passed 294ms
🟢 price sorting › opens in the featured order with sale prices struck through 88ms
🟢 price sorting › low to high sorts by the original price, not the paid one (planted bug) 103ms
🟢 price sorting › high to low is the same wrong order reversed (planted bug) 103ms
🟢 tests/product-reviews.e2e.ts · 1 passed 1.1s
🟢 the running-shoe page lists coffee-grinder reviews (planted bug) 1.1s
🟢 tests/promo-storefront.e2e.ts · 1 passed 1.3s
🟢 buys a deal once the promo chrome is out of the way 1.3s
🟢 tests/rich-text-editor.e2e.ts · 2 passed 397ms
🟢 rich text editor › bolding exactly the required word passes the check 199ms
🟢 rich text editor › bold that spills into the previous word fails the check 198ms
🟢 tests/saved-addresses.e2e.ts · 3 passed 428ms
🟢 saved addresses › adds an address and clears the form 150ms
🟢 saved addresses › ignores an add with an empty field 133ms
🟢 saved addresses › delete shows its toast but keeps the address, on retry too (planted bug) 145ms
🟢 tests/shadow-dom-form.e2e.ts · 2 passed 467ms
🟢 shadow DOM form › rejects a wrong access code 235ms
🟢 shadow DOM form › grants access with the code from the hint inside the root 232ms
🟢 tests/smoke.e2e.ts · 1 passed 362ms
🟢 home lists the scenarios and opens one 362ms
🟢 tests/stale-dom.e2e.ts · 1 passed 2.1s
🟢 taps the moving target three times across rebuilds of the list 2.1s
🟢 tests/sticky-chrome.e2e.ts · 1 passed 167ms
🟢 accepts the terms once the button clears the sticky footer 167ms
🟢 tests/virtualized-table.e2e.ts · 1 passed 1m 5s
🟢 scrolls the windowed table to the Golden Row and claims it 1m 5s
🟢 tests/wishlist.e2e.ts · 2 passed 1.4s
🟢 wishlist › saving toggles the button and the tab badge 182ms
🟢 wishlist › the wishlist tab renders the empty state despite the badge count (planted bug) 1.2s

e2e 0.16.0 · 1m 49s · web · run artifacts

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e web agent: 32 passed

33 agent steps · 25 replayed from cache · 20 model calls · 76.4k tokens (91% cached) · $0.0037

All 32 tests in 5 files
Test Agent Time
🟢 tests-agent/control-inventory.e2e.ts · 6 passed 6 steps 2.5s
🟢 control inventory › check sets the checkbox and the radio 1 step 529ms
🟢 control inventory › a long press and a double click are chosen over a plain tap 1 step 865ms
🟢 control inventory › a right-click opens the file menu and Rename renames the file 1 step 351ms
🟢 control inventory › upload attaches the named project files 1 step 223ms
🟢 control inventory › back returns from the details view to the inventory 1 step 246ms
🟢 control inventory › scroll_to brings the footnote into view 1 step 334ms
🟢 tests-agent/login-form.e2e.ts · 1 passed 1 step 311ms
🟢 act signs in with the benchmark account 1 step 311ms
🟢 tests-agent/planted-bugs.e2e.ts · 3 passed 4 steps · 8 calls 10.3s
🟢 cart totals: a judgment catches the stale order summary 2 steps · 4 calls 4.9s
🟢 checkout review: a judgment catches the broken copy 1 step · 1 call 1.4s
🟢 wishlist: a judgment catches the lost saved items 1 step · 3 calls 4.0s
🟢 tests-agent/scenarios.e2e.ts · 21 passed 21 steps · 12 calls 2m 31s
🟢 act completes shadow-dom-form 1 step · 3 calls 3.2s
🟢 act completes lying-labels 1 step · 3 calls 4.7s
🟢 act completes iframe-form 1 step · 3 calls 5.0s
🟢 act completes infinite-scroll 1 step 13.7s
🟢 act completes virtualized-table 1 step 1m 40s
🟢 act completes overlay-trap 1 step 831ms
🟢 act completes sticky-chrome 1 step 6.6s
🟢 act completes async-states 1 step · 3 calls 5.9s
🟢 act completes debounced-search 1 step 2.2s
🟢 act completes hover-menu 1 step 444ms
🟢 act completes drag-and-drop 1 step 400ms
🟢 act completes kanban-board 1 step 568ms
🟢 act completes context-menu-trap 1 step 433ms
🟢 act completes stale-dom 1 step 399ms
🟢 act completes otp-auto-advance 1 step 646ms
🟢 act completes date-picker 1 step 786ms
🟢 act completes rich-text-editor 1 step 1.2s
🟢 act completes playbook-cleanup 1 step 510ms
🟢 act completes promo-storefront 1 step 1.3s
🟢 act completes gift-card-purchase 1 step 2.4s
🟢 act filters the list and the URL carries the filter 1 step 193ms
🟢 tests-agent/unique-cache.e2e.ts · 1 passed 1 step 241ms
🟢 act adds an address with a run-unique label 1 step 241ms

e2e 0.16.0 · 2m 45s · web · run artifacts

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android agent: 20 passed

24 agent steps · 124 model calls · 727.8k tokens (84% cached) · $0.0449

All 20 tests in 1 file
Test Agent Time
🟢 tests-agent/scenarios.e2e.ts · 20 passed 24 steps · 124 calls 9m 14s
🟢 act completes Login Form 1 step · 3 calls 24.9s
🟢 act completes Infinite Scroll List 1 step · 3 calls 26.4s
🟢 act completes Modal Flow 1 step · 4 calls 10.3s
🟢 act completes Bottom Tabs 1 step · 3 calls 7.8s
🟢 act completes Text Input Variations 1 step · 3 calls 9.9s
🟢 act completes Broken Accessibility 2 steps · 6 calls 26.8s
🟢 act completes Vision Only 2 steps · 6 calls 27.2s
🟢 act completes Gestures 1 step · 10 calls 37.2s
🟢 act completes Async States 1 step · 19 calls 1m 8s
🟢 act completes Debounced Search 1 step · 4 calls 9.9s
🟢 act completes Huge Virtualized List 1 step · 3 calls 1m 9s
🟢 act completes Flattened Registration Form 2 steps · 12 calls 59.9s
🟢 act completes Flattened Login 2 steps · 6 calls 26.3s
🟢 act completes Sticky Chrome Target 1 step · 4 calls 13.1s
🟢 act completes WebView Accessibility 1 step · 5 calls 14.4s
🟢 act completes Permission Prompt 1 step · 3 calls 7.7s
🟢 act completes Product Catalog 1 step · 5 calls 13.5s
🟢 act completes Error Recovery 1 step · 6 calls 12.7s
🟢 act completes Choice Controls 1 step · 7 calls 32.5s
🟢 act completes Sequential Onboarding 1 step · 12 calls 56.8s

e2e 0.16.0 · 9m 15s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android: 54 passed, 1 skipped

All 55 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 24 passed, 1 skipped 2m 40s
🟢 control inventory › a label query resolves a labeled text field 18.0s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 11.0s
🟢 control inventory › a placeholder query and attribute reads find the field 4.3s
🟢 control inventory › a secure field takes a fill and denies value reads 6.1s
🟢 control inventory › press sends a character and Enter through the soft keyboard 7.2s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 9.5s
🟢 control inventory › toBeFocused follows the focus 8.6s
🟢 control inventory › a switch checks, unchecks, and reports its state 10.4s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 6.3s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 11.2s
🟢 control inventory › a tab role answers getByRole 3.7s
🟢 control inventory › a radio group reports the checked option 8.5s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 7.6s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 5.8s
🟢 control inventory › a header answers its accessible name 3.4s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 5.0s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 4.8s
⏭️ 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 6.7s
🟢 control inventory › a double tap lands inside the 300 ms window 7.4s
🟢 control inventory › an ambiguous locator fails at once 4.5s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 8.2s
🟢 refusals › verbs a device never declares are refused before the engine 2ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 386ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 8 passed 1m 1s
🟢 device fixture › setOrientation rotates the window the app measures 5.0s
🟢 device fixture › home leaves the app, openApp brings it back where it was 5.5s
🟢 device fixture › foregroundApp sees the home screen after home() 3.6s
🟢 device fixture › closeApp then openApp relaunches on the home list 5.3s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 3.7s
🟢 device fixture › device.back pops the scenario 4.2s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 15.2s
🟢 device fixture › setLocation and clearLocation change what the app reads 18.2s
🟢 tests/device.e2e.ts · 4 passed 33.2s
🟢 permission prompt › allowing the system dialog enables the microphone 5.9s
🟢 permission prompt › a denied prompt recovers once the permission is granted outside 11.3s
🟢 sequential onboarding echoes the exact values 9.6s
🟢 onboarding rejects a malformed email before advancing 6.3s
🟢 tests/flows-lists.e2e.ts · 7 passed 2m 2s
🟢 infinite scroll reaches the target item 16.3s
🟢 product catalog adds exactly two of the right variant 9.6s
🟢 gestures: long-press, then swipe left 7.7s
🟢 gestures: double-tap completes the flow 9.3s
🟢 sticky chrome: accept below the fold, then continue 10.7s
🟢 async states: load, pull to refresh, claim through the toast 11.5s
🟢 huge virtualized list reaches row 512 57.4s
🟢 tests/flows.e2e.ts · 7 passed 48.4s
🟢 text inputs unlock the submit button 5.9s
🟢 filled text inputs report their values 5.2s
🟢 modal flow confirms through the native alert 7.6s
🟢 bottom tabs act inside the last tab 6.1s
🟢 error recovery retries, then confirms the delete 7.9s
🟢 choice controls place the exact order 7.7s
🟢 debounced search selects the target once results arrive 7.9s
🟢 tests/login-form.e2e.ts · 3 passed 28.3s
🟢 login form › rejects a malformed email 8.1s
🟢 login form › rejects an unknown account 8.0s
🟢 login form › signs in and logs out 12.1s
🟢 tests/smoke.e2e.ts · 1 passed 4.9s
🟢 home lists the scenarios and opens one 4.9s

e2e 0.16.0 · 7m 38s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 2 flaky, 50 passed, 1 skipped

⚠️ 2 flaky tests passed on a retry

⚠️ control inventory › toBeFocused follows the focus
tests/controls.e2e.ts:101

ASSERTION_FAILED at step 5 of 5: expect.toBeFocused getByRole("textbox", name: "Autofocus field"), after 5.1s

  • Expected: focused
  • Observed: default states (1 match)
  • Failed on 2 attempts: ASSERTION_FAILED at step 7, then at step 5.
  • Screen: dev.e2e.benchmark / Control Inventory

Evidence: screenshot, log

⚠️ device fixture › setAppearance flips the color scheme the app reads
tests/device-fixture.e2e.ts:24

ASSERTION_FAILED at step 6 of 7: expect.toHaveText getByTestId("color-scheme"), after 5.4s

  • Expected: text "scheme: dark"
  • Observed: text "scheme: light" (1 match)
  • Failed on 2 attempts: ASSERTION_FAILED at step 7, then at step 6.
  • Screen: dev.e2e.benchmark / Control Inventory

Evidence: screenshot, log

All 53 tests in 7 files
Test Time
⚠️ tests/controls.e2e.ts · 1 flaky, 22 passed, 1 skipped 3m 31s
🟢 control inventory › a label query resolves a labeled text field 10.7s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 18.2s
🟢 control inventory › a placeholder query and attribute reads find the field 5.7s
🟢 control inventory › a secure field takes a fill and denies value reads 10.3s
🟢 control inventory › press sends a character and Enter through the soft keyboard 9.5s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 11.0s
⚠️ control inventory › toBeFocused follows the focus (2 failed attempts first) 16.0s
🟢 control inventory › a switch checks, unchecks, and reports its state 12.5s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 10.0s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 15.1s
🟢 control inventory › a radio group reports the checked option 9.7s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 8.4s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 8.4s
🟢 control inventory › a header answers its accessible name 5.7s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 7.8s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 8.6s
⏭️ 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.8s
🟢 control inventory › pointer verbs land at the point asked for 11.3s
🟢 control inventory › an ambiguous locator fails at once 6.8s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 13.9s
🟢 refusals › verbs a device never declares are refused before the engine 5ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 647ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
⚠️ tests/device-fixture.e2e.ts · 1 flaky, 8 passed 1m 14s
⚠️ device fixture › setAppearance flips the color scheme the app reads (2 failed attempts first) 11.9s
🟢 device fixture › setOrientation rotates the window the app measures 6.7s
🟢 device fixture › the clipboard reads back what was written 5.9s
🟢 device fixture › home leaves the app, openApp brings it back where it was 5.8s
🟢 device fixture › closeApp then openApp relaunches on the home list 8.1s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 5.2s
🟢 device fixture › device.back pops the scenario 6.4s
🟢 device fixture › setLocation and clearLocation change what the app reads 12.7s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 11.3s
🟢 tests/device.e2e.ts · 2 passed 57.9s
🟢 sequential onboarding echoes the exact values 43.9s
🟢 onboarding rejects a malformed email before advancing 13.9s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 56s
🟢 infinite scroll reaches the target item 29.2s
🟢 product catalog adds exactly two of the right variant 11.5s
🟢 gestures: long-press, then swipe left 10.5s
🟢 sticky chrome: accept below the fold, then continue 12.9s
🟢 async states: load, pull to refresh, claim through the toast 14.0s
🟢 huge virtualized list reaches row 512 2m 23s
🟢 web view coupon form applies the code shown on the page 15.6s
🟢 tests/flows.e2e.ts · 7 passed 1m 22s
🟢 text inputs unlock the submit button 18.3s
🟢 filled text inputs report their values 11.3s
🟢 modal flow confirms through the native alert 11.4s
🟢 bottom tabs act inside the last tab 8.6s
🟢 error recovery retries, then confirms the delete 10.6s
🟢 choice controls place the exact order 10.0s
🟢 debounced search selects the target once results arrive 11.9s
🟢 tests/login-form.e2e.ts · 3 passed 52.7s
🟢 login form › rejects a malformed email 14.0s
🟢 login form › rejects an unknown account 14.5s
🟢 login form › signs in and logs out 24.2s
🟢 tests/smoke.e2e.ts · 1 passed 13.6s
🟢 home lists the scenarios and opens one 13.6s

e2e 0.16.0 · 6m 57s · ios-simulator · run artifacts

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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

25 agent steps · 128 model calls · 827.3k tokens (83% cached) · $0.0548

⚠️ 1 flaky test passed on a retry

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

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 38.7s and 9 model calls

agent.act failed: Long-pressed the first target successfully. Tried swiping the card left several times, but it remained in place on Step 2 of 3, so the final target never appeared and could not be double-tapped.

  • Turn 6: screenshot({}) → [screenshot] The screen changed substantially since revision b7. Current screen (revision b9, path dev.e2e.benchmark / Benchmark Examples, 12 nodes):
  • Turn 7: swipe({"from":{"x":176,"y":465},"to":{"x":10,"y":465}}) → [swipe] Swiped from (176, 465) to (10, 465).
  • Turn 8: screenshot({}) → [screenshot] The screen changed substantially since revision b9. Current screen (revision b11, path dev.e2e.benchmark / Benchmark Examples, 12 nodes):
  • Screen: dev.e2e.benchmark / Benchmark Examples

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 · 128 calls 12m 49s
🟢 act completes Login Form 1 step · 10 calls 1m 21s
🟢 act completes Infinite Scroll List 1 step · 3 calls 51.3s
🟢 act completes Modal Flow 1 step · 4 calls 16.3s
🟢 act completes Bottom Tabs 1 step · 3 calls 12.3s
🟢 act completes Text Input Variations 1 step · 3 calls 26.2s
🟢 act completes Broken Accessibility 2 steps · 7 calls 39.0s
🟢 act completes Vision Only 2 steps · 6 calls 33.3s
⚠️ act completes Gestures (1 failed attempt first) 1 step · 10 calls 47.9s
🟢 act completes Async States 1 step · 7 calls 32.0s
🟢 act completes Debounced Search 1 step · 4 calls 18.6s
🟢 act completes Flattened Registration Form 2 steps · 10 calls 1m 14s
🟢 act completes Flattened Login 2 steps · 12 calls 1m 26s
🟢 act completes Sticky Chrome Target 1 step · 8 calls 43.2s
🟢 act completes WebView Accessibility 1 step · 5 calls 30.8s
🟢 act completes Permission Prompt 1 step · 3 calls 19.1s
🟢 act completes Photo Picker 1 step · 4 calls 18.1s
🟢 act completes Product Catalog 1 step · 5 calls 16.0s
🟢 act completes Error Recovery 1 step · 6 calls 19.1s
🟢 act completes Choice Controls 1 step · 7 calls 43.9s
🟢 act completes Stripe PaymentSheet 1 step · 7 calls 39.1s
🟢 act completes Apple Pay 1 step · 4 calls 23.1s
⏭️ 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)

e2e 0.16.0 · 13m 36s · 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 across 30 files

Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.

Re-trigger cubic

Comment thread packages/e2e/src/run/last-run.ts Resolved
Comment thread packages/e2e/src/run/last-run.ts Resolved
Comment thread .changeset/rerun-integrity.md Resolved
Comment thread docs/debugging.mdx Resolved
@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Oct 1, 2026
@okwasniewski

Copy link
Copy Markdown
Member Author

[claude-opus-5-5] responding on behalf of okwasniewski

Calls for the owner:

  • Wire: report-1 gains an optional run.carried field (schema, fixtures, and sdk-types are updated).
  • Layout: rerun attempts now go under artifacts/rerun-<n>/. Full-run paths are unchanged.
  • The exit code of --last-failed --grep ... still counts only what that rerun ran, so it can exit 0 while it carries debt. Only the GitHub fold turns red for that debt.
  • No terminal notice is printed when a rerun carries debt. It could be a follow-up.

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

On 9000371:

Can a carried test get dropped when its file fails to collect during a narrowed rerun? notRun in last-run.ts needs collected.has(result.testId), and with a positional the runner moves an unselected file that fails to import into collection.uncollected and keeps going, so none of its tests are in collectedTestIds. Example: B fails, then e2e run --last-failed tests/a.e2e.ts runs while b.e2e.ts has a temporary import error. The rerun only prints the skipped notice, its report carries no row for B, and the next --last-failed and the GitHub fold go green although B never passed. Passing the uncollected files into carryForward and keeping rows from those files carried would close it.

reviewed 9000371 by Hermes on behalf of @okwasniewski

Comment thread packages/e2e/src/run/last-run.ts Resolved
@okwasniewski
okwasniewski force-pushed the oskar/fix-rerun-integrity branch from 9000371 to 9d82440 Compare October 2, 2026 11:36
@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Oct 2, 2026
@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Oct 2, 2026
…ied debts, kept evidence

--last-failed now reruns tests --max-failures skipped. A test or failed
suite hook another filter leaves out stays owed in the report's new
run.carried until a rerun runs it; the github fold shows carried rows and
errors and stays red while anything is carried. A rerun prunes artifacts/
to what the previous report names and writes its attempts under
artifacts/rerun-<n>/ instead of wiping the tree and reusing attempt paths.
The report has no row for an unneeded setup, so carryForward now asks the
collection whether a test still exists instead of the report's rows.
…n rerun docs

Distinct ids in the carried fixture row.
@okwasniewski
okwasniewski force-pushed the oskar/fix-rerun-integrity branch from c4b0c69 to 547c6f0 Compare October 3, 2026 11:35
@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Oct 3, 2026
@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Oct 3, 2026
@okwasniewski
okwasniewski added this pull request to the merge queue Oct 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Oct 3, 2026
@okwasniewski
okwasniewski merged commit 3a9667c into main Oct 3, 2026
20 checks passed
@okwasniewski
okwasniewski deleted the oskar/fix-rerun-integrity branch October 3, 2026 14:36
@github-actions github-actions Bot mentioned this pull request Oct 3, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant