Skip to content

fix: bump synckit to 0.12 to recover after worker timeouts - #418

Merged
schoero merged 2 commits into
schoero:mainfrom
SahinurDEV:fix/synckit-0.12-timeout-recovery
Oct 13, 2026
Merged

schoero merged 2 commits into
schoero:mainfrom
SahinurDEV:fix/synckit-0.12-timeout-recovery

Conversation

@SahinurDEV

Copy link
Copy Markdown
Contributor

Summary

Fixes #386 and #415.

enforce-canonical-classes (and other Tailwind worker rules) talk to the design system through synckit. On synckit 0.11, a shared wake-up counter means that after two Atomics.wait() timeouts, late worker replies can leave that counter wrong. From then on every later call waits the full SYNCKIT_TIMEOUT and fails with Atomics.wait() failed: timed-out, even when the worker is idle.

That matches the permanent CI / editor hangs in #386. Slow canonical-class work (especially with collapse: true) is enough to produce the first timeouts; after that the process does not recover.

synckit 0.12.0 fixed this by giving each worker its own notification slot (and by reporting worker failures instead of hanging). This PR bumps the dependency to ^0.12.3 and adds a small regression that times out twice, waits for late replies, then checks that short calls return in milliseconds again.

Test plan

  • npm run typecheck
  • NODE_OPTIONS='' npm run test -- --run tests/unit/synckit-timeout-recovery.test.ts
  • NODE_OPTIONS='' npm run test -- --run src/rules/enforce-canonical-classes.test.ts
  • NODE_OPTIONS='' npm run test -- --run src/rules/no-unknown-classes.test.ts

SahinurDEV and others added 2 commits October 13, 2026 10:26
synckit 0.11 shares one wake-up counter across workers. After two
Atomics.wait timeouts (common with slow enforce-canonical-classes
calls), later replies can leave the counter wrong so every following
call waits until SYNCKIT_TIMEOUT and fails permanently.

synckit 0.12.0+ gives each worker its own notification slot and
surfaces worker failures instead of hanging. Bump to ^0.12.3 and add a
focused regression that times out twice, then asserts short calls
return promptly.

Fixes #386
Fixes #415
@schoero

schoero commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Thank you 🙌

@schoero
schoero force-pushed the fix/synckit-0.12-timeout-recovery branch from a38c78d to 95910c6 Compare October 13, 2026 18:02
@github-actions

Copy link
Copy Markdown

📊 Performance benchmark

Comparison of benchmark means between main and this PR.

Benchmark main PR Δ
ESLint recommended (cold) 20.14 ms 20.87 ms +3.6%
ESLint recommended (warm) 16.86 ms 16.84 ms -0.1%
Oxlint recommended 3620.55 ms 3740.61 ms +3.3%

@schoero
schoero merged commit 593e30a into schoero:main Oct 13, 2026
21 checks passed
brandhaug added a commit to brandhaug/b2b-saas-starter that referenced this pull request Oct 17, 2026
## pnpm-workspace.yaml (default)

## Dependency Updates

| Package | From | To | Type |
| --- | --- | --- | --- |
| `@cloudflare/vitest-plugin` | 1.4.1 | 1.4.2 | patch |
| `@inlang/plugin-message-format` | 4.5.2 | 4.5.3 | patch |
| `ai` | 7.0.138 | 7.0.140 | patch |
| `eslint-plugin-better-tailwindcss` | 4.9.0 | 4.9.1 | patch |
| `ultracite` | 8.0.0 | 8.0.1 | patch |

## Release Notes

<details>
<summary><b>@<!---->cloudflare/vitest-plugin</b> (1.4.1 →
1.4.2)</summary>

### Patch Changes

- Updated dependencies
[[`f360829`](cloudflare/workers-sdk@f360829),
[`d6b1c82`](cloudflare/workers-sdk@d6b1c82),
[`97b2fb1`](cloudflare/workers-sdk@97b2fb1),
[`97b2fb1`](cloudflare/workers-sdk@97b2fb1),
[`acd2822`](cloudflare/workers-sdk@acd2822)]:
  - miniflare@5.20261012.0-beta
  - wrangler@4.151.0

</details>

<details>
<summary><b>eslint-plugin-better-tailwindcss</b> (4.9.0 →
4.9.1)</summary>

[compare
changes](schoero/eslint-plugin-better-tailwindcss@v4.9.0...v4.9.1)

### Fixes

- **no-concatenated-classes:** False positives on nullish coalescing and
logical or fallbacks
([#414](schoero/eslint-plugin-better-tailwindcss#414))
- Emit portable declaration imports
([#410](schoero/eslint-plugin-better-tailwindcss#410))
- Support type assertions and satisfies
([#421](schoero/eslint-plugin-better-tailwindcss#421))
- Bump synckit to 0.12 to recover after worker timeouts
([#418](schoero/eslint-plugin-better-tailwindcss#418))

### ❤️ Contributors

- Sahinur (@<!---->SahinurDEV)
- Tinywaves (@<!---->tinywaves)

</details>

<details>
<summary><b>ultracite</b> (8.0.0 → 8.0.1)</summary>

### Patch Changes

- 40d646a: `ultracite fix --claude` and `--codex` hand agents better
information and report results more accurately:
  
- Rule names reach the agent as they're written in the config, such as
`no-unused-vars` and `typescript/no-explicit-any`, instead of Oxlint's
`eslint(no-unused-vars)`.
- ESLint diagnostics now carry the rule's description and documentation
URL, read with the `json-with-metadata` formatter. Biome diagnostics
carry the rule's documentation URL and its description from `biome
explain`, since Biome's JSON reporter includes no help text.
- The prompt tells the agent that the run is non-interactive, so it
explains a decision it can't make in its final message instead of asking
a question and waiting for an answer that can't come.
- Files are handed over in path order, so the same project gets its fix
in the same file on every run. Before each file after the first,
Ultracite lints it again: an earlier file's fix can clear its issues
(breaking an import cycle fixes both files), and the agent was being
handed diagnostics that no longer applied. A file with nothing left is
skipped.
- A file the agent deleted, or one that no longer parses, now counts as
unfixed. Before, its issues could disappear from the report and show as
fixed.
- 2543859: Update the vendored `anti-slop` Oxlint plugin to upstream
commit `13909c9` and enable its three new rules in the
`ultracite/oxlint/anti-slop` preset. `require-readable-spacing` restores
blank lines around structural boundaries — top-level declarations,
multiline bindings, control flow, returns, and blocks — a pattern
AI-generated code tends to pack together, while consecutive single-line
bindings stay grouped at any scope
([dmmulroy/anti-slop#45](dmmulroy/anti-slop#45)).
Its autofix only inserts whitespace and never removes existing blank
lines, so `ultracite fix` restores the spacing without fighting the
formatter. `no-array-filter-map` rejects adjacent eager `filter`/

…[full
notes](https://github.com/haydenbleasel/ultracite/releases/tag/ultracite%408.0.1)

</details>

---
*This PR was auto-generated by
[catalog-update-action](https://github.com/brandhaug/catalog-update-action).*

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

enforce-canonical-classes: Atomics.wait fails in time-out

2 participants