Repository navigation
chore: fix main CI (watchBlocks polling tests, size limits) - #5287
Conversation
The `watchBlocks` poll tests started a 100 ms watcher and mined at once. With a cold fork cache, `anvil_mine` takes about 140 ms on the Prague fork, so the first poll emitted the block before the mine and each test counted one extra block. The tests now await the initial emission before mining and await each expected emission, as `watchBlockNumber.test.ts` does. The `ox/Base64` import in `getEnsAvatar` raised the `viem` (esm), `viem/ens`, and `getEnsAvatar` bundles past their size limits, so each limit is 1 kB higher. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TLEH3v3NQjkUUYkUybAsMc
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6567e93630
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| onTestFinished(unwatch) | ||
| await expect.poll(() => blocks.length).toBe(1) |
There was a problem hiding this comment.
Separate setup from polling execution
Add a blank line after onTestFinished(unwatch) before awaiting the initial observation; the newly added setup and execution statements currently run together, contrary to the repository’s requirement that test phases remain visually distinct. The same separation should be applied to the other polling sequences introduced in this file.
AGENTS.md reference: AGENTS.md:L147-L149
Useful? React with 👍 / 👎.
The changes since #5287, mainly replacement detection in `waitForTransactionReceipt` and the `http` retry and batch fixes, raised the `viem` (cjs) bundle to 113.32 kB and the `viem/actions` bundle to 69.05 kB. Each limit is 1 kB higher. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LkZRLt8FTdJWJ9jPvEoSEF
Main is red in two
Verifyjobs (run).Build (
pnpm size). Theox/Base64import ingetEnsAvatar(#5250) puts three bundles over their limits. This PR raises each limit by 1 kB:import * from 'viem' (esm)import * from 'viem/ens'import { getEnsAvatar } from 'viem/ens'Test Local (shard 2/3). The
watchBlockspoll tests start a 100 ms watcher and mine immediately. With a cold fork cache,anvil_mineon the Prague fork takes about 140 ms. The first poll then emits the block from before the mine, so each test counts one extra block (expected 3 to be 2). The tests now await the first emission before they mine, and await each expected emission, aswatchBlockNumber.test.tsdoes since #5149.Validation: before this change,
watchBlocks.test.tsfailed 6 tests on every cold-cache run (rm -rf ~/.foundry/cache/rpc). After it, the file passes 25/25 on 4 cold-cache runs and 1 warm run.pnpm build && pnpm size,pnpm check:typesand Biome also pass.Generated by Claude Code