Skip to content

Conversation

@fcecin
Copy link
Contributor

@fcecin fcecin commented Nov 27, 2025

Description

If ETH_FROM or ETH_PASSWORD env vars are set before running unit tests (for example, you set these in ~/.bashrc ...🤦‍♀️) the RLN tests loop forever with 100% CPU due to a failed forge script invocation. This leaves an orphaned anvil instance which hogs the localhost:8540 port, which makes the next anvil launch attempt to loop forever due to port already in use.

Changes

  • unset ETH_FROM and ETH_PASSWORD before running forge script so that it isn't misconfigured and fails
  • fix deployTestToken forge error reporting
  • robustify runAnvil proc w.r.t. any failed anvil launch

Workaround

Don't set ETH_FROM and ETH_PASSWORD in the environment you're using to run unit tests.

Issue

Maintenance Y2025H2 #3483

@github-actions
Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3650

Built from 3923896

Copy link
Contributor

@stubbsta stubbsta left a comment

Choose a reason for hiding this comment

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

Thanks for this, LGTM!

Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for it! 🙌
Kindly link this PR with maintenance issue ( notice the bidirectional linkage, that allows navigating from each other .)

@Ivansete-status
Copy link
Collaborator

@weboko - I'm afraid the js-waku-node failure isn't related to these changes, right?

@fcecin fcecin mentioned this pull request Nov 28, 2025
@fcecin
Copy link
Contributor Author

fcecin commented Nov 28, 2025

@weboko - I'm afraid the js-waku-node failure isn't related to these changes, right?

I remember the js-waku tests were failing for me in my isOkOr refactor (that changed nothing). When I re-ran them, they passed. Re-running them now. EDIT: Passed. Merging.

@fcecin fcecin merged commit c6cf34d into master Nov 28, 2025
21 of 26 checks passed
@fcecin fcecin deleted the fix-robustify-rln-utils-onchain branch November 28, 2025 17:20
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.

4 participants