Skip to content

Fix main CI after #420: seeded upgrade Cargo reuse and a racing test - #423

Merged
mubeda merged 3 commits into
mainfrom
fix/main-ci-after-420
Nov 24, 2026
Merged

mubeda merged 3 commits into
mainfrom
fix/main-ci-after-420

Conversation

@mubeda

@mubeda mubeda commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Fixes the two failures CI on main hit after #420 merged, so v0.18.0 can be released.

Seeded packaged desktop upgrade (Linux x64 and arm64)

The protected-baseline build failed with E0425: cannot find function appimage_bundle_overrides in bibcode_server::process.

  • Why: all three seeded builds share one Cargo target. The protected baseline is the candidate's source stamped with the previous-stable version, so it has the same crate versions as previous-stable. Cargo's mtime check took previous-stable's server as fresh and linked it into the protected build. Until Remote branch delete, Files undo, Antigravity, Cursor model picker and provider Stop fixes (#397–#418) #420, nothing the desktop called was missing from the older server, so the reuse went unnoticed.
  • Fix: before each build, the harness drops the Cargo fingerprints of the desktop graph's local crates: bibcode-server, bibcode-desktop and the patched portable-pty. It does this in both the target and the host fingerprint directories. Registry dependencies stay shared.
  • Tests: a test checks that each later build starts without those fingerprints. It fails when the purge is removed or its pattern is broken. The release runbook is updated.

Flaky cancel_racing_a_pointer_paste_has_exactly_one_winner

  • Why: when one round's cancel won, the terminal stayed ready. The next round's request could then be pasted before the test read its write count, and the refused cancel saw no new write (left 2, right 3 on CI). This was a test bug: production writes the paste before it records Delivered.
  • Fix: the count is read before the send.
  • Proof: a probe that leaves the terminal ready and delays the read fails the old test at the CI assertion and passes the new one.

Verification

  • vp check and vp test run scripts (963 passed).
  • cargo test -p bibcode-server --lib -- send_requests (136 passed), Clippy on server lib and tests with -D warnings, and cargo fmt --all --check.
  • Codex review. Both of its findings (portable-pty, host build-script fingerprints) are fixed in this PR.

Profiler coverage: none applies (CI harness and tests only).

🤖 Generated with Claude Code

mubeda and others added 3 commits November 24, 2026 13:27
The protected baseline is the candidate's source stamped with the
previous-stable version, and all builds share one Cargo target. Cargo's
mtime check took previous-stable's server as fresh and linked it into the
protected build, which broke once the desktop called a server function the
previous release lacks. Each build now drops the workspace crates'
fingerprints first; registry dependencies stay shared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a run's cancel won, the terminal stayed ready, so the next run's
request could be pasted before the test read its write count. The refused
cancel then saw no new write. The count is now taken before the send.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…build

The patched local portable-pty sits in the desktop graph with an unchanged
version, and compiled build scripts keep their fingerprints under the host
profile, so both could also be reused from another checkout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mubeda mubeda added the ci:full Run full macOS + seeded upgrade CI label Nov 24, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T16:45:03.935131Z d4855e5 PR opened
🔒 Security Review ✅ Completed 2026-11-24T16:47:00.203968Z d4855e5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Nov 24, 2026
@mubeda
mubeda merged commit dcc711e into main Nov 24, 2026
53 of 55 checks passed
mubeda added a commit that referenced this pull request Nov 24, 2026
Raises the Claude Terminal hook ceiling to Claude Code 2.1.330 after the
live PreToolUse guard proof passed on that build, sets every version
source to 0.18.0, writes the curated changelog entry for PRs #420 and
#423, and closes the plan progress table.

Verified locally: live Claude Code 2.1.330 PreToolUse guard proof,
focused hook-ceiling unit and integration tests, cargo fmt --all --check,
cargo check --workspace --all-targets --locked, cargo clippy -p
bibcode-server --all-targets -- -D warnings, vp check, vp run typecheck,
vp run release:smoke, vp run -r --concurrency-limit 1 test (all 9
packages), and BIBCODE_SENSITIVE_RANGE=main..HEAD no-sensitive-data
guard. Reviewed with Codex (gpt-6-astra, high).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Run full macOS + seeded upgrade CI size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant