Commit Graph
44 Commits
Author SHA1 Message Date
Oskar Kwaśniewski 0d1ed15871 fix(e2e)!: load TypeScript with e2e's own oxc loader, so pnpm 11+ installs pass (#790)
* fix(e2e): load TypeScript with an oxc loader instead of tsx

* fix(e2e): close loader edge cases: sourceless CommonJS, export maps without extensions, unreadable tsconfig, chained source maps, Windows require paths

* fix(e2e): refuse Bun and Deno runtimes, name oxc load failures, follow Yarn PnP export targets

* perf(e2e): skip the syntax check for files whose only @ is in a package import

* fix(e2e): allow type-only exports in .cts, warn from runner only, Bun check first, docs

* fix(e2e): workers warn about tsconfigs runner did not, FILE: urls, foreign infra errors, review tests
2026-10-04 09:22:50 +02:00
Oskar Kwaśniewski 02ad48a94e feat(web)!: pin playwright-core and add a browser install command (#798)
* feat(web)!: pin playwright-core and add an install command

@e2e-dev/web depends on playwright-core 1.63.0 instead of peering on
playwright. New e2e-web bin installs browsers for the pinned version:
npx @e2e-dev/web install chromium --with-deps. e2e init no longer adds
playwright.

* test(web): run the e2e-web bin for real, and in CI

* test(web): spawn the built e2e-web bin so Node 22.12 runs it
2026-10-03 22:22:20 +02:00
Oskar Kwaśniewski be6e96606c ci(release): drop duplicate test gate, spec covers main (#716) 2026-10-01 12:28:19 +02:00
Oskar Kwaśniewski 6fa2bc2222 ci(release): publish through npm trusted publishing (OIDC) (#707)
Drops NPM_TOKEN from release.yml; each package grants release.yml publish
rights via an npm trusted publisher. Release job moves to ubuntu-latest
because npm rejects OIDC from self-hosted runners (Blacksmith included).
publishConfig.provenance pins removed so provenance attaches automatically
once the repo is public. Setup recipe documented in CONTRIBUTING.md.
2026-10-01 11:35:22 +02:00
Oskar Kwaśniewski 9f62d9bdce fix(skill): declare the app on the target in skill and docs config examples (#709)
* fix(skill): declare the app on the target in skill and docs config examples

The bundled skill and docs/authentication.mdx still taught web({ url, command }), removed in #698. The skill's two config examples now live in docs/examples/skill/, typechecked and mirrored by check-docs-examples, so the old shape fails pnpm check.

* fix(skill): run the docs drift check on skill changes, drop stale service wording
2026-10-01 09:43:09 +02:00
Oskar Kwaśniewski d7a218af07 feat(config)!: config shape, part 1: recording modes, output root, test-glob exclusions, renames, secrets in engine options (#645)
* feat(config)!: remove specVersion from the config

The runner version is the format version. A config that still sets
specVersion fails INVALID_CONFIG telling the author to remove it. The
report's run.specVersion and the replay cache key keep their hard-coded
copies.

* feat(collect): "!" exclusions in the tests globs

An entry starting with "!" removes files an including glob matched,
in any order. Discovery never reads a directory an exclusion takes
whole, unless an including glob could reach a dot name beneath it.
A list of only exclusions is INVALID_CONFIG.

* refactor!: CacheStore and web({ screencast }) renames

TraceCacheStore is CacheStore, and the docs, skill, and CLI call the
cache the replay cache. web({ video: { size, quality } }) is
web({ screencast }) with WebScreencastOptions; web({ video }) fails
INVALID_CONFIG naming screencast.

* feat(secrets): secrets.get() in engine options, resolved per attempt

At config evaluation, before any run exists, secrets.get(name) returns
a reference by name. An engine declares the handles its options hold
in defineEngine({ secrets }); the config load fails INVALID_CONFIG for
a name no secret or credential has. The engine reads the value through
EngineAttemptContext.resolveSecret, which runs a provider fresh and
registers the value in the session and process ledgers before it
returns, without tainting the viewport. e2e/engine exports isSecret.

web({ basicAuth: { password } }) takes a Secret and declares it. Docs
show process.loadEnvFile('.env') in the config.

* feat(run)!: trace and video share recording modes; artifacts holds only store

One RecordingMode ('off' | 'on' | 'retain-on-failure' | 'on-first-retry' |
'on-all-retries') for trace and video, set on the config, a target, the CLI
(--trace [mode], --video [mode]) and a test, one precedence rule: config,
target, CLI, test. Trace defaults to on locally, on-first-retry in CI, with
a plan-time notice when a retry mode meets retries: 0. Serial members cannot
set trace.

Capability rule: a mode from the config root or a flag applies to targets
whose engine can record it, one notice naming the rest; a mode set on a
target or a test is required and fails with UNSUPPORTED_ARTIFACT.

artifacts.kinds (both forms) and artifacts.trace are removed and fail
INVALID_CONFIG naming the trace mode they meant. Failure screenshot and
screen text are always captured when the engine can. MCP sessions keep the
target's trace mode and trace only under 'on'.

* feat(run)!: output directory for every run result; ArtifactStore.putLink

output (default .e2e) and --output <dir> on run and explore hold report.json,
junit.xml, summary.md, ai-trace.json, artifacts/, sessions/ and the e2e mcp
session files; --last-failed reads <output>/report.json. The reportSibling
derivation from the artifacts dir is gone. --artifacts stays as a hidden
flag that fails with the --output it maps to.

A run clears <output>/artifacts at start. cache.dir stays independent. An
output that is the project root or outside it, is or sits in cache.dir,
would hold cache.dir under artifacts/, sessions/ or videos/, or holds a
tests glob root fails INVALID_CONFIG with the reason.

ArtifactStore gains optional putLink(link) for provider-hosted video links;
its ref lands beside the url. A passed retain-on-failure attempt's link is
never handed over, and a failing putLink never fails the run.

bench-ab and the mobile workflow move to --output.

* test(secrets): a hold's registry is probed by an unknown name, now that get() defers without one

* test(web): the download trigger's measured wait tolerates a timer firing early

* fix(secrets): rewrite the trace of an attempt whose engine holds a secret

A Playwright trace records the context options, basic-auth password in
plaintext, but a trace was rewritten only after a fill. resolveSecret now
marks the session so its trace goes through the redactor, screencast
frames kept since the value never reached the screen. The fake engine
writes a real trace archive, and the basic-auth fixture escapes its echo
and refuses a malformed header.

* fix(web): race the basic-auth secret with the attempt's signal

A provider still resolving after the launch timeout set the session after
the runner ended the attempt, so the retry failed with an attempt already
running. Resolution now runs first, raced with the signal.

* fix(mcp): a session notes a configured trace its engine cannot record

* test: a shadow-free fake trace archive and an ungarbled exclusion title

* docs: output paths, replay cache wording, and review corrections

--last-failed, --ai-trace, and the json reporter name <output> paths;
the skill says output never moves cache/ or the app's log; the
INVALID_GLOB row states the check the code makes; serial members list
only; the engine vocabulary names Secret and isSecret; the basic-auth
example uses a provider; the last trace cache wording is replay cache.

* chore(changeset): leave released notes alone; pending notes match the renames

Released CHANGELOG entries keep TraceCacheStore, the name they shipped
with; cache-store-rename.md announces the rename. The pending video and
provider recording changesets name on-all-retries and web({ screencast }).

* chore(bench): refuse a forwarded --output the harness would not clean up

* fix(secrets): a rewritten trace drops its screencast frames, engine-held secrets included
2026-09-29 19:51:02 +02:00
Oskar Kwaśniewski 67c29fc6b2 chore!: publish engines and reporter under the @e2e-dev npm scope (#602) 2026-09-28 19:05:05 +02:00
Oskar Kwaśniewski a5240e25a9 chore(agents): agents verify, self-review, and babysit PRs to Ready for Human Review (#598) 2026-09-28 16:55:57 +02:00
Oskar Kwaśniewski 493727bdb0 test(web): cross-check the tree against Chrome and Playwright (#583)
Every node of the engine's semantic tree is compared with Chrome's
accessibility tree over CDP and Playwright's getByRole on fixture pages and
every web-benchmark scenario. Known disagreements live in a committed
expectations file with reasons; new and stale ones fail.
2026-09-28 16:07:33 +02:00
Oskar Kwaśniewski d6947bc66d feat(cache): --strict-cache fails a recording that no longer replays (#586) 2026-09-28 16:00:45 +02:00
Oskar Kwaśniewski 5460fb0ee1 fix(mobile)!: the suite installs the build with device.installApp(), setPermission and setLocation hold up on a bare session and a cold emulator (#539)
* fix(mobile): the build installs in prepare, setPermission and setLocation hold up on a bare session and a cold emulator

Three sources of red mobile gates that were ours, not agent-device's:

- prepare boots the device and opens the pinned app, but with appPath the
  app was not installed yet, so the warm-up opened nothing and the first
  test on every device paid the install and the automation runner's cold
  start. The install moves into prepare; a worker without one still
  installs in init.
- device.setPermission before app.open() failed with "permission setting
  requires an active app in session" once the previous test left the
  session on no app. The engine brings the pinned app to the foreground
  first, and once more on that refusal.
- device.setLocation on Android set a fix the app could not read: the
  previous run's clearLocation had switched location services off and the
  emulator keeps that. The fix switches them on first.

The pull-to-refresh test tapped the claim button inside expect.poll; once
the button was gone the tap held the poll for its whole budget and the poll
timed out on a claim that had landed (0/3 locally before, 3/3 after).

mobile.yml skips the agentic suite for Dependabot, whose runs carry no
model key, and uploads reports on failure only, since the artifact quota
was full and ~20 failed jobs had lost theirs.

* fix(mobile): a longPress with no duration holds for one second

The agent's long_press names no duration, so agent-device's default hold
applied: under half a second, shorter than a React Native Pressable's
delayLongPress of 500 ms and the 800 ms the Gestures scenario sets. The
model's long press registered as a tap and the scenario never advanced
(android agentic on #539's first run, 5 model calls, rerun the same).
One second clears those, as Detox's default does; a test passes duration
for more.

* test(mobile-benchmark): the location read polls without an assertion inside

The poll asserted "not reading" on every iteration with the assertion's
own budget, so a first fix the emulator's provider took long to produce
held the poll past its deadline (android deterministic on #539's second
run, rescued by the rerun). The poll now only looks, taps read again once
the last read has answered, and gives the first fix after location
services come back on a minute.

* feat(mobile)!: the engine installs nothing on its own; the suite installs with device.installApp()

appPath stays the build the suite runs against, but neither prepare nor
init installs it any more. device.installApp() with no path installs it,
once per device, where the suite says so, and pins what it installed when
no app is; a device provider still installs on the device it leases. A
pinned app is opened by the warm-up whether or not its build is on yet.

The mobile benchmark installs through a `build` fixture in tests/fixtures.ts
that every test takes: one install per worker, kept on globalThis because
the runner re-imports the module per retry and serial group. The step shows
in the first test's report as device.installApp.

* fix(mobile): the warm-up skips a pinned app whose build the suite has yet to install, and CI keeps every run's report

With appPath and no install, prepare tried to open the pinned app on each
device and logged the failure as a runner that did not warm up. There is
nothing to open yet; the log now says the suite's device.installApp() is
what comes first.

mobile.yml uploads the report from every run (it is small and holds what
the first attempt of a flaky test met) and the artifacts only from a red
one, so a rescued attempt keeps its evidence without the quota cost.
2026-09-26 11:16:12 +02:00
Oskar Kwaśniewski 61603e6c2c fix(github): a --last-failed rerun updates the pull request comment as one run (#537) 2026-09-25 17:09:09 +02:00
Oskar Kwaśniewski ba188f4233 ci: run the benchmark suites only when a change can reach them (#527) 2026-09-25 12:48:45 +02:00
Oskar Kwaśniewski 3e57acc8d7 ci(mobile): each mobile benchmark job posts its run as a pull request comment (#521)
* ci(mobile): each mobile benchmark job posts its run as a pull request comment

The web benchmark's two suites post through @e2edev/github; the four mobile jobs did not. E2E_MOBILE_BENCHMARK_COMMENT names each job's comment (ios, ios agent, android, android agent) and the --last-failed pass posts as its own (ios retry), since the page lists only the tests a run selected.

* ci(mobile): the second pass posts nothing, the first pass is the comment

A retry comment under its own key would outlive the failure that caused it: a later commit whose first pass is green never touches it.
2026-09-25 12:27:47 +02:00
Oskar Kwaśniewski 15b3e2aed8 chore: move the testbed and both benchmarks to apps/ (#517)
packages/ holds what publishes to npm, apps/ the private apps and suites that consume the built packages. Package names, scripts, and --filter targets are unchanged, so the committed recordings and the Expo build cache carry over.
2026-09-25 11:13:16 +02:00
Oskar Kwaśniewski 920ac4ebf0 ci(mobile): iOS simulator and Android emulator gates for the mobile benchmark, with a Control Inventory scenario (#499) 2026-09-24 16:08:05 +02:00
Oskar Kwaśniewski 0712035cb5 test(web-benchmark): the agentic suite replays its committed recordings on every pull request (#497)
The 19 trace-cache entries the agentic suite records are committed; CI
replays them read-only and calls the model only for a step with no
recording, so the gate runs at deterministic speed and cost (15 replayed, 6
live by design: planted-bug judgments and values read off the screen). The
policy lives once in AGENTS.md; every package's run artifacts are ignored
through one **/ rule set, and no rule ignores .e2e/cache any more.
2026-09-23 15:48:09 +02:00
Oskar Kwaśniewski a9f8256b80 chore(ci): every job has a timeout, the weekly upload cannot fail the run, and the package ships its schemas (#437) 2026-09-23 08:32:50 +02:00
Oskar Kwaśniewski 9614834797 fix(release): engine and reporter peers on e2e stay >=0.15.0 <1 after a canary, and pnpm check enforces it (#432) 2026-09-23 08:24:35 +02:00
Oskar Kwaśniewski f5e96d0cbe feat!: rename engine packages to @e2edev/web and @e2edev/mobile (#392) 2026-09-21 19:52:32 +02:00
Oskar Kwaśniewski 83761d507a ci(benchmark): run the web benchmark on every pull request with the GitHub reporter (#360) 2026-09-18 15:01:46 +02:00
dependabot[bot] 4578a60474 chore(ci): bump changesets/action from 2.1.1 to 2.1.2 (#319)
Signed-off-by: dependabot[bot] <support@github.com>
2026-09-15 14:30:56 +02:00
Oskar Kwaśniewski e301105408 chore(release): publish the packages public and add a hand-run canary channel (#293) 2026-09-14 08:44:10 +02:00
Oskar Kwaśniewski 2d0c6931c4 feat(agent)!: the model is an AI SDK instance the config constructs; init asks which gateway (#255) 2026-09-10 17:26:25 +02:00
Oskar Kwaśniewski b67e4d1aac docs: move the docs site from Starlight to Mintlify (#240) 2026-09-09 18:23:08 +02:00
Oskar Kwaśniewski 20fd094e71 feat(web-benchmark): add hard-to-automate scenarios and e2e suites (#229) 2026-09-09 13:20:19 +02:00
devin-ai-integration[bot]andoskar 874ba11140 docs(reference): complete the reference and gate error codes with a check script (#215)
Co-authored-by: oskar <oskar@okwasniewski.com>
2026-09-09 12:30:23 +02:00
Oskar Kwaśniewski 6cf509714f ci(release): use the changesets/action v2 input names (#214) 2026-09-09 11:26:14 +02:00
Oskar Kwaśniewski 1a745937ca feat(cli): anonymous usage telemetry, off with e2e telemetry disable (#211) 2026-09-09 09:26:12 +02:00
Oskar Kwaśniewski 98f69b1a78 docs: rebuild the docs site on Starlight, hosted on Vercel (#203) 2026-09-08 19:43:29 +02:00
Oskar Kwaśniewski b7fce9067e ci: run every workflow on Blacksmith runners (#199) 2026-09-08 17:32:43 +02:00
dependabot[bot] ea80899478 chore(ci): bump changesets/action from 1.9.0 to 2.1.1 (#183)
Signed-off-by: dependabot[bot] <support@github.com>
2026-09-08 12:09:10 +02:00
devin-ai-integration[bot]andoskar 766cf52c0d chore: pnpm overrides in pnpm-workspace.yaml, Node 22.12 floor, Node 22/24/26 test matrix (ENG-704) (#175)
Co-authored-by: oskar <oskar@okwasniewski.com>
2026-09-08 11:12:51 +02:00
Oskar Kwaśniewski 41612dcf44 chore: drop the spec directory, keep the schemas and type tests in the package (#161) 2026-09-07 17:46:08 +02:00
Oskar Kwaśniewski e19b826a7f chore(release)!: publish under the @e2edev scope as restricted packages (#114) 2026-09-04 00:09:00 +02:00
Oskar Kwaśniewski e0ac8af5ca fix: deep-scan runner cleanup (lifecycle, hot paths, CLI) and fallow in CI (#107) 2026-09-03 09:37:13 +02:00
Oskar Kwaśniewski 5d6dc2bc9b act-first: remove the located agent verbs and the locator cache (#87) 2026-09-01 10:57:41 +02:00
Oskar Kwaśniewski 61b31dd95e feat: locate nodes no query can name, and widen what an observation sees (#78) 2026-07-31 13:19:30 +02:00
Oskar Kwaśniewski e136ca2c21 ci: gate releases on the test suite and schedule the agent suites (#76) 2026-07-30 18:07:48 +02:00
Oskar Kwaśniewski 1e21658c94 feat: split the Playwright driver into @e2edev/playwright (#20) 2026-07-30 14:55:43 +02:00
Oskar Kwaśniewski 7cc4d90db1 docs: add documentation site (#10) 2026-07-28 15:27:09 +02:00
Oskar Kwaśniewski 400779e85d ci: add oxlint, cover testbed in typecheck, split CI steps (#7) 2026-07-27 15:59:45 +02:00
Oskar Kwaśniewski 9bb3dbc818 feat: deterministic runner, playwright driver, and web platform (Phase 1) (#2) 2026-07-25 18:02:09 +02:00
Oskar Kwaśniewski 04ddaa81bf docs: e2e API specification and implementation plan (#1) 2026-07-24 17:10:33 +02:00