Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: anvil-zksync able to start even if the port is busy #542

Merged
merged 7 commits into from
Jan 16, 2025

Conversation

dutterbutter
Copy link
Collaborator

@dutterbutter dutterbutter commented Jan 16, 2025

What 💻

deprecated version of `actions/download-artifact: v3`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Why ✋

  • Should be able to use fallback port if busy without panic

Evidence 📷

Screenshot 2025-01-16 at 10 04 52 AM

@dutterbutter dutterbutter marked this pull request as ready for review January 16, 2025 16:49
@dutterbutter dutterbutter requested a review from a team as a code owner January 16, 2025 16:49
@dutterbutter dutterbutter merged commit bb90831 into main Jan 16, 2025
15 checks passed
@dutterbutter dutterbutter deleted the db/fix-512 branch January 16, 2025 17:56
host,
config.port,
err
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I don't think this is a good fallback. If I were running a tool in CI and saw this behaviour I would have been unpleasantly surprised.

Copy link
Member

Choose a reason for hiding this comment

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

Hm, indeed. I though for a second that anvil does that -- but no:

anvil
Error: Address already in use (os error 98)

Location:
    /home/runner/work/foundry/foundry/crates/anvil/src/lib.rs:229:28

I guess we have to replace the fallback with just error propagation.

mm-zk added a commit that referenced this pull request Jan 17, 2025
* refactor: reduce usage of `ForkStorage` outside `inner` module (#539)

* reduce usage of `ForkStorage` outside `inner` module

* adapt for zkos

* fix destination path (#541)

* fix: anvil-zksync able to start even if the port is busy (#542)

* fix: closes #512 - start instance even if port is busy

* chore: apply make lint:fix

* chore: refactor test to make use of anvil-zksync instance

* chore: remove no longer needed deps

* chore: remove no longer needed deps

* chore: bump actions/upload-artifact: v3 to v4 due to CI fail

* chore: bump actions/upload-artifact / download: v3 to v4 due to CI fail

* compilation fixes

---------

Co-authored-by: Daniyar Itegulov <ditegulov@gmail.com>
Co-authored-by: Nisheeth Barthwal <nbaztec@gmail.com>
Co-authored-by: Dustin Brickwood <dustinbrickwood204@gmail.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.

anvil-zksync is able to start even if the port is busy
3 participants