Skip to content

fix(vite-plugin): retry transient ticket read failures - #1348

Merged
mergify[bot] merged 1 commit into
masterfrom
fix/windows-sidecar-ticket-retry
Oct 16, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
fix/windows-sidecar-ticket-retry

Conversation

@tignear

@tignear tignear commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Windows JS tests can fail with EPERM when one process reads a declaration-generation ticket while another process removes it. This caused PR #1291 to leave the merge queue (failed job).

Retry ticket reads up to five times at 25 ms intervals, both when choosing a ticket number and when waiting for ownership. Unreadable tickets are never treated as absent: persistent EPERM and unrelated errors still propagate, preserving mutual exclusion.

Add deterministic error-injection coverage for recovery during ticket selection and waiting, deletion during retry, persistent EPERM, and EACCES. Existing multiprocess exclusion tests remain enabled.

Validation:

  • JS package builds, focused TypeScript checking, lint, and diff whitespace checks passed.
  • Pre-push checks passed, including cargo fmt --all -- --check, cargo check --workspace --locked, and submodule validation.
  • Lock and sidecar-orphan suites: 30 tests passed using a minimal Vitest config (export default {};) that avoids unrelated NAPI initialization.
  • The new deletion-race regression fails against the original implementation and passes with the fix.
  • Windows execution and the full NAPI-backed JS suite were not run locally; the ordinary Playground config requires a built NAPI addon, which is absent in this checkout.

This is an independent fix based on master; it does not include the lydite changes from #1291.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T10:29:26.532194Z bf539ab 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.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 16, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 16, 2026
@mergify

mergify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 29 minutes 18 seconds in the queue, including 27 minutes 30 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit 9783c1e into master Oct 16, 2026
21 checks passed
@mergify
mergify Bot deleted the fix/windows-sidecar-ticket-retry branch October 16, 2026 11:09
@mergify mergify Bot removed the queued Mergify queue entry label Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant