Skip to content

chore: release v0.7.1 - #400

Merged
ElbertePlinio merged 17 commits into
mainfrom
chore/release-0.7.1
Oct 28, 2026
Merged

ElbertePlinio merged 17 commits into
mainfrom
chore/release-0.7.1

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

The v0.7.0 tag run failed before publishing. Its Rust gates job lacked the libxkbcommon-x11 and Xvfb setup that ci.yml uses for the viewer tests, so all six control_xvfb tests failed (#398). Nothing reached npm or GitHub releases. The release checklist forbids moving or reusing a tag, so the release moves forward as 0.7.1.

This PR adds the display test dependencies and PICKFORGE_REQUIRE_XVFB to the release Rust gates, matching ci.yml. It sets every package, the root manifest and the Cargo workspace to 0.7.1 and retitles the notes, with one line that says v0.7.0 was never published. It also fixes two test flakes that release dry runs hit. The windows fixture rewrote state.json non-atomically, so a timed-out focus could leave an empty file (#399). Viewer and takeover tests used expect.poll's 1 s default, which a loaded runner exceeded; the default is now 5 s (#402). vi.waitFor had the same 1 s default and timed out once on a closing viewer bridge port; a setup file now gives it 5 s too, since Vitest has no config option for it. The replaced-socket viewer test passed its check by chance on ext4, which gives a new socket the freed inode number; the test now records an identity the replacement cannot share, and the product check is tracked in #404. A Rust gate failure showed a real defect: a dropped input injector could leave Ctrl held on the session display, because the X server can discard requests that a closed connection left unread. On drop, the viewer now releases input and waits for a reply under a 1 s watchdog that shuts the socket down if the server stalls (#407).

Closes #398. Closes #399. Closes #402. Closes #407. Part of #377.

Requirement Verified by Result
Release Rust gates run the viewer tests Release workflow dry run on this branch at 99c28a1 (run 40741753333) Rust gates passed; its Lab gates hit the #399 flake, fixed here
Full release workflow passes Dry run at 97cf0f2 (run 40743359883), then at 1370535 (run 40746034719) at 30f23f5 after merging main (run 40748393366), at ce97624 (run 40751708690), at 0347736 (run 40760257277), at 8bbca32 after merging #406 (run 40762317468), and at 2c78f23 (run 40764684979) First: everything passed except one Lab gates poll timeout, fixed by #402. Second: every gate and both candidate smokes passed; publish skipped, as a dry run should. Third: Lab gates failed on the replaced-socket test (#404), fixed here. Fourth: Rust gates failed on drop_releases_held_input (#407), fixed here. Fifth: every gate and both candidate smokes passed. Sixth: every gate and both smokes passed. Seventh: Lab gates timed out in a vi.waitFor with the 1 s default, fixed here. Eighth: see the comment below
Replaced-socket test (#404) Node script on an ext4 loop mount in a privileged container; the viewer test file 5 times; the test with the inode comparison removed ext4 reused the inode in 50 of 50 tries, tmpfs and btrfs in 0 of 50; 21 of 21 passed each time; the mutated check fails the test
Input releases on drop (#407) Injector suite on Xvfb with every CPU busy; SIGSTOP Xvfb then drop; SIGSTOP plus a full send queue then drop Before: 10 of 60 runs failed (8 with Control_L held). After: 0 of 80. Both drop tests return in about 1 s; with an unbounded wait or the watchdog armed after the releases, they hang until killed
waitFor timeout Scratch test whose condition turns true after 1.5 s, with and without the setup file; an explicit 300 ms timeout Default without the file: failed at 1,006 ms; with it: passed; the explicit timeout still rejects
Poll timeout Scratch test with a condition that turns true after 1.5 s; full TypeScript suite with the requirement flags Default: "Matcher did not succeed in time"; 5 s: passed. Suite: 3,343 passed, 4 skipped
One version across the release surface node scripts/check-release-versions.mjs v0.7.1, frozen install 0.7.1
Local gates (checklist step 2) typecheck, lint, fmt, clippy for Linux and Windows, Rust tests on Xvfb, TypeScript tests with coverage and the desktop, browser and viewer requirements, build, release build All passed on 99c28a1, then again on 9ffde4c after merging main (#392, #342, #393, #395, #396, #406) and the #404 and #407 fixes: 293 Rust; 3,371 TypeScript passed, 4 skipped; 90.36% lines; pickforge 0.7.1, pickforge-viewer 0.7.1
Live Flutter test (step 3) PICKFORGE_LIVE_FLUTTER=1 cargo test -p pickforge-cli --test live_flutter Passed
Device pass (step 4) CLI packed from 99c28a1, isolated home: doctor, init, desktop exec -- flutter run, click, edit, hot reload, repeat, evidence record, then the native viewer on a separate Xvfb Counter 0, 2, 2 after reload, 3; viewer showed the same state; independent image review: PASS
Windows fixture flake The three suites that use the fixture, ten runs in a row 10 of 10 passed
Release notes (step 6) Checklist placeholder grep Prints nothing
PickCheck pickcheck check --base origin/main --fail-on new,worsened,unmatched No violations

Rollback: revert this PR before the v0.7.1 tag exists. The v0.7.0 tag stays as it is.

Reviewed with sol-loop: 5 rounds with GPT-6.1 Sol. Sol verdict: approved. Round 1 nit (notes order) fixed in a8dfaec. Round 3 and 4 found that the first #407 fix could block Return control, close and drop on a stalled server; fixed by limiting the wait to drop and arming a watchdog first, approved in round 5. The main merges bring #392, #342, #393, #395, #396 and #406, reviewed in their own PRs. The vi.waitFor default after round 5 only changes test setup.

… Rust gates

The v0.7.0 tag run failed in the release Rust gates, which lacked the libxkbcommon-x11 and Xvfb setup that ci.yml uses for the viewer tests. Nothing was published. Following the release checklist, the v0.7.0 tag stays and the release moves forward as 0.7.1. Part of #398.
The fake xdotool and the state helper rewrote state.json with writeFileSync, which truncates first. A timed-out focus could leave or expose an empty file, so the next read failed with Unexpected end of JSON input. Closes #399.
The native viewer host test waited for a cued mode with the 1 s default and timed out in a release dry run. 14 polls in the viewer and takeover tests use the default. Closes #402.
…ection

The X server can discard requests that a closed connection left unread, so a dropped injector could leave Ctrl held on the session display. The revoke test now waits for the pressed state instead of racing the server. Closes #407.
Like expect.poll in #402, vi.waitFor waits on subprocesses with a 1 s default. A release dry run timed out waiting for a viewer bridge port to close.
@ElbertePlinio
ElbertePlinio merged commit d4561b5 into main Oct 28, 2026
18 checks passed
@ElbertePlinio
ElbertePlinio deleted the chore/release-0.7.1 branch October 28, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant