Skip to content

Bring ten developer tests up to the main commits that changed what they read - #6374

Merged
max-sixty merged 2 commits into
mainfrom
fix-dev-tests-on-main
Nov 18, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix-dev-tests-on-main

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Ten tests under dev/tests failed on main because five main commits changed what they read, and nothing in CI runs dev/tests. Each test still protects behavior that holds, so the fix is in the tests' fixtures and expectations; no developer tool changes.

To weigh: these breaks went unseen for up to three weeks because dev/AGENTS.md keeps dev/tests out of every CI selection. This PR leaves that rule unchanged.

Dispatched by max-sixty from the session that landed #6014. Tests: the three changed modules, 91 passed on macOS.

This was written by Claude Code on behalf of max-sixty

…ey read

Nothing runs `dev/tests` in CI, so five main commits changed behavior
these tests read without anyone seeing them fail. Each test protected
behavior that still holds; its fixture or expectation was stale, so the
tests change and the tools don't.

- #5964 moved a `leaf` command's refusal into the JSON it prints on
  stdout. The three desktop Codex `server start` cases and the four
  unavailable-delivery `start`/`run` handoffs still read stderr, which is
  now empty. They read the refusal from stdout, and the handoff program
  forwards `server run`'s refusal line rather than parsing it for a URL.
- #4198 made the preview follow `dev/leaf_dev`, `browser/registry.json`
  and `dev/pyproject.toml` in its checkout. The assets-pin test's fake
  checkout lacked them, so the preview followed them from the checkout
  root and subscribed it recursively. The fixture now creates every file
  `worker_inputs` names, so a new input of that kind keeps it valid.
- #6237 indented `docs/index.html`'s example images two spaces deeper,
  and the composed-image case matched on the old indentation. It now
  matches the `alt` attribute alone.
- #5228 replaced the journey's `locator("main").inner_text()` read with
  an `evaluate` over the body's children, which the fake deployed page
  answered with `[]`. The fake answers that read with its recorded text,
  and its unused `locator` and `_Text` are gone.
- #6090 shortened the release marker to git's seven characters; the
  same test expected eight.

Tests: dev/tests/model/test_interact_preview.py, test_product_page.py
and dev/tests/process/test_website_server.py, 91 passed on macOS.

> _This was written by Claude Code on behalf of max-sixty_
max-sixty added a commit that referenced this pull request Nov 18, 2026
… modules (#6380)

Follow-up to #6014, which left other code importing from `leaf-dev`
command modules. Now a command module is imported only by the CLI and by
the tests of that command: the code other modules borrowed lives in
helper modules, and `dev/AGENTS.md` states the rule.

- `dev/leaf_dev/website.py` reaches leaf.page or the local build from a
browser: page loads, state reads, activation, user sessions, the local
adapter and the local Worker, and the built site's paths (`SITE`,
`asset_site`, `install_tree`, `site_lock`). It came out of `site
verify`, from which `journey run` imported a dozen names, and `site
build`. Its browser script (`website.js`, formerly `verify_browser.js`)
and `wrangler_server.mjs` moved beside it, and `startup_profile` and
`startup_line` joined `startup.py`.
- `dev/leaf_dev/corpus.py` is the corpus generator, which
`named_source`, `page_fixtures` and `states` call on demand.
- `server_paths.py` folded into `commands/bench.py`, its only user,
which ends their import cycle. Its names that collided with bench's took
a `server` prefix (`measure_server`, `SERVER_FITTED`, …).
- `arms.py` holds `preview_lease` and the `terminated` stop handler,
which the Codex journey and `website_eval` imported from `preview`.
- Group helpers: `placement/_pin_cases.py`, the catalogue
`tests/browser/margin/test_pins.py` asserts, and `site/_build.py` and
`site/_distribution.py`, the pipeline `site previews` and the product
tests use. `pins.py`, `build.py` and `distribution.py` keep their
commands.

The code moved unchanged apart from those renames and two paths:
`website.py` reads the build's manifest through
`leaf_website.SITE_MANIFEST` and its lock through `site_lock`, where
`site verify` had spelled both out a second time.

To weigh: `site previews` now ends with the build `site build` runs
(`_build.build_site`), which also takes the site's lock and bundles the
published runtime, so the `.tmp/site` it leaves is one `site verify
website-worker` can read; before, it rebuilt `.tmp/site` unlocked and
unbundled. git records `_build.py`, `_distribution.py` and
`_pin_cases.py` as new files, so their history before this change is on
`build.py`, `distribution.py` and `pins.py`.

Checks: every touched command's `--help`; `generate corpus`, `bench
events --read server`, `placement pins`, `site distribution` and `site
build` end to end; the dev tests over the moved code, where only the ten
tests #6374 fixes fail, as on main; the product tests that import it;
and pre-commit on every changed file. `site verify website-worker` times
out at its first activation through the local Worker on this machine, on
main as well, so that pass is unverified here. Each moved definition
matches its original by AST apart from the changes above.

Max asked for this as the follow-up #6014's description named.

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit a9ffc88 into main Nov 18, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix-dev-tests-on-main branch November 18, 2026 18:12
max-sixty added a commit that referenced this pull request Nov 18, 2026
…e tools and ten tests they caught (#6412)

Nothing in CI ran `dev/tests`, so main commits broke those tests without
anyone seeing (#6374 fixed ten of them). This adds every developer-tool
test, the Python and the Node ones, to the daily scheduled run, after
the product suite, where a failure reaches Tend like any other failure
on main. Pull requests, pushes to main and landing gates still don't run
them. On the Ubuntu runner they took 8 minutes 43 seconds (235 passed,
and the one macOS-only test skipped).

Three of the 13 other failures were tools that had stopped working:

- `leaf-dev preview` kept serving the runtime and layer its process
first read, so an edit to `browser/leaf.js`, `browser/base.css` or a
bundled package reached neither an open tab nor a fresh one. It also
decided when to restart from its own copy of the runtime's identity,
which had lost the kernel's stylesheets and the bundled packages, so
editing those never restarted even a `--user` preview's server. The
preview now reads the runtime's own identity, and replacing its
in-process server first drops what the process holds of the tree
(`runtime_selection.forget_tree`, which is new).
- `leaf-dev site demo` stopped getting a title for its thread after
#5835, because its own session has no hooks module to answer the
request. It now answers with a staged title through the suite's stand-in
for that module, which moves to `leaf_dev.claude_code_module`.
- `leaf-dev trace-server` called a Playwright export that 1.65 removed.

The other ten had stale expectations: #5964's stdout refusals, #4325's
recovery words, #6154's recovery reload, the layer record's dropped
`fingerprint`, and a preview identity that moved to About this page. Two
more tests started a second Playwright driver on a worker thread that
already held one.

To weigh: the demo's thread title is now the same every run, rather than
worded fresh by a model each time.

Asked for by max-sixty, as a follow-up to #6374. Tests: all of
`dev/tests` locally and, through a commit since reverted, on this PR's
runner; the product modules the stand-in move and the layer change touch
(225 passed).

> _This was written by Claude Code on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants