Skip to content

ci: fix dependency audit and polling tests - #5149

Merged
jxom merged 3 commits into
mainfrom
jxom/fix-main-ci-20260929
Sep 29, 2026
Merged

jxom merged 3 commits into
mainfrom
jxom/fix-main-ci-20260929

Conversation

@jxom

@jxom jxom commented Sep 29, 2026

Copy link
Copy Markdown
Member

Update ip-address and undici to patched releases and stabilize block-watcher polling and replacement-error tests, fixing dependency audit failures and test-order timing failures in main CI.

@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
viem Ready Ready Preview Sep 29, 2026 3:27am UTC

Request Review

@changeset-bot

changeset-bot Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9303dcd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 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-09-29T03:23:05.780034Z f0f8f85 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f0f8f85402

ℹ️ 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".

setup()

vi.spyOn(getBlock, 'getBlock').mockRejectedValueOnce(new Error('foo'))
vi.spyOn(getBlock, 'getBlock').mockRejectedValue(new Error('foo'))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace the persistent getBlock mock

This change makes the module-wide vi.spyOn persistent for the entire test, so unexpected repeated or in-flight getBlock calls are also forced to fail and the test can pass without exercising an actual provider failure. Rework the scenario against the configured chain or an ephemeral server; the repository explicitly forbids vi.spyOn and requires tests to verify real observable behavior.

AGENTS.md reference: AGENTS.md:L149-L152

Useful? React with 👍 / 👎.

Comment on lines +30 to +32
const blockNumber = await getBlockNumber.getBlockNumber(client, {
cacheTime: 0,
})

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Import getBlockNumber through the public entrypoint

The new setup call invokes the public getBlockNumber action through its relative implementation module, coupling this public-surface test to the source layout rather than validating the exported API. Import a separately aliased setup helper from viem/actions or another owning package entrypoint, as required for public APIs in tests.

AGENTS.md reference: AGENTS.md:L180-L185

Useful? React with 👍 / 👎.

@jxom
jxom merged commit 31c874e into main Sep 29, 2026
33 of 34 checks passed
@jxom
jxom deleted the jxom/fix-main-ci-20260929 branch September 29, 2026 03:23

This branch was successfully deployed

1 active deployment
Preview — 9303dcd1 Deployed Sep 29, 2026 by vercel[bot]
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.

1 participant