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: add back silent option in Anvil's NodeConfig #9181

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

zerosnacks
Copy link
Member

@zerosnacks zerosnacks commented Oct 24, 2024

Motivation

Fixes regression of expected behavior cd71da4#diff-821677e726ecf3de9d59a8e9cc1aef2c64650c7b04452be6860ed123ad29e17aL261

Regression caused startup logs to appear when running tests, this was previously not the case

A future enhancement to help catch this would be to use Snapbox for Anvil's tests too

Solution

Previously worked correctly when global anvil --quiet / anvil --silent flags are set but the option to configure this via NodeConfig was lost, this restores it and correctly defaults now again to silent for NodeConfig::test()

Note: CI is currently failing due to unrelated flaky test, addressed in #9182

@zerosnacks zerosnacks changed the title fix: add back --silent option in Anvil's NodeConfig fix: add back silent option in Anvil's NodeConfig Oct 24, 2024
Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

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

LGTM!

@zerosnacks zerosnacks marked this pull request as ready for review October 24, 2024 08:40
@mattsse mattsse merged commit 3ff0cdd into master Oct 24, 2024
18 of 21 checks passed
@mattsse mattsse deleted the zerosnacks/add-quiet-option-node-config branch October 24, 2024 08:54
rplusq pushed a commit to rplusq/foundry that referenced this pull request Nov 29, 2024
* add quiet handling for Anvil tests using NodeConfig

* add back `silent` flag, inheriting default from global shell --quiet setting, overrides as true in test

* fix unrelated failing test

* revert fix, moved to foundry-rs#9182
@grandizzy grandizzy added T-bug Type: bug C-anvil Command: anvil labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil T-bug Type: bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants