Skip to content

Keep the e2e suites working on pi 1.5 - #446

Merged
ilovepixelart merged 3 commits into
ilovepixelart:mainfrom
sproott:e2e-pi-1.5
Nov 15, 2026
Merged

ilovepixelart merged 3 commits into
ilovepixelart:mainfrom
sproott:e2e-pi-1.5

Conversation

@sproott

@sproott sproott commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

On pi 1.5.2, both tmux e2e suites fail before they test much of pi-code:

  • e2e.sh writes an empty .pi/mcp.json into its fixture. pi now asks for project trust itself when mcp.json exists, and pi-code doesn't ask a second time. So the "Trust this project?" check fails and the session sits on pi's own question. The fixture now holds only .claude config, which is what the trust check's comment already describes.
  • In e2e-full.sh, /mcp under pi's native MCP opens a dialog where the suite expected a notice. The dialog stays open and takes every later keystroke, so about 20 checks after it fail. The check now accepts pi's connected · 1 tool status and presses Escape until the dialog is gone.
  • The web_fetch check waited for "Example Domain", but example.com's page no longer has an <h1>: "Example Domain" now appears only in its <title>, and the Markdown conversion drops <head>. It now fetches this repo's LICENSE at a pinned commit through raw.githubusercontent.com, whose bytes can't change, and waits for the copyright line. web_fetch refuses loopback addresses, so a local fixture server isn't an option; HTML conversion is covered by tests/html-markdown.test.ts.
  • mcp-prompts types /mcp__e2e__greet, but under native MCP pi connects the server and prompt commands don't exist (docs/mcp.md lists them as unavailable). The check failed 2 of 3 runs. The /mcp step now records which mode is running, and the prompts check is skipped under native MCP with a note in the output.

With these, e2e.sh passes 7/7 and e2e-full.sh 43/43, apart from the existing "known pi TUI interaction" warnings.

  • scripts/e2e.sh and scripts/e2e-full.sh run against pi 1.5.2

🤖 Generated with Claude Code

pi now asks for project trust itself when a project has .pi/mcp.json,
and pi-code rightly stays silent then, so e2e.sh's fixture, which wrote
an empty .pi/mcp.json, never saw the "Trust this project?" prompt it
checks for and stalled on pi's own question. The fixture now holds only
.claude config, as its trust check assumes.

Under pi's native MCP, /mcp opens pi's dialog, which stays open and took
every later keystroke in e2e-full.sh, failing most of the run. The check
now accepts pi's status line and backs out of the dialog. Prompts as
/mcp__server__prompt commands only exist when pi-code connects the
server, so that check is skipped under native MCP.

example.com dropped its "Example Domain" heading, so the web_fetch check
now fetches this repository's LICENSE at a pinned commit, whose text
cannot change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
sproott added a commit to sproott/pi-code that referenced this pull request Nov 15, 2026
On Windows a shell the suite killed can still hold a handle under the
per-file temp root when afterAll removes it, so the whole file fails with
EBUSY (seen on the branches of ilovepixelart#427 and ilovepixelart#441, and on ilovepixelart#446). rmSync's
maxRetries retries EBUSY with a growing delay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ilovepixelart
ilovepixelart merged commit 5d01293 into ilovepixelart:main Nov 15, 2026
12 checks passed
sproott added a commit to sproott/pi-code that referenced this pull request Nov 15, 2026
On Windows a shell the suite killed can still hold a handle under the
per-file temp root when afterAll removes it, so the whole file fails with
EBUSY (seen on the branches of ilovepixelart#427 and ilovepixelart#441, and on ilovepixelart#446). rmSync's
maxRetries retries EBUSY with a growing delay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sproott
sproott deleted the e2e-pi-1.5 branch November 16, 2026 14:44
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