Skip to content

Verbosity (-vvv) improve style#8031

Merged
ChristopherDedominici merged 7 commits intoedr-upgrade-25from
improve-verbosity-style
Mar 30, 2026
Merged

Verbosity (-vvv) improve style#8031
ChristopherDedominici merged 7 commits intoedr-upgrade-25from
improve-verbosity-style

Conversation

@ChristopherDedominici
Copy link
Copy Markdown
Contributor

@ChristopherDedominici ChristopherDedominici commented Mar 5, 2026

Related to design doc: https://www.notion.so/nomicfoundation/Verbosity-via-vvv-319578cdeaf5805b8255ee9e24664add

This PR is on top of this PR.
In this PR, only the graphical style of -v is modified.

Run example

Run pnpm hardhat run scripts/demo-trace-output.ts -vvvv (or -vvvvv) in example-project

Screenshosts

Traces from the example demo-trace-output.ts with -vvvv:

image image

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 5, 2026

⚠️ No Changeset found

Latest commit: f801135

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

@ChristopherDedominici ChristopherDedominici changed the title mvp implementation Verbosity (-vvv) mvp implementation Mar 9, 2026
@@ -0,0 +1,93 @@
// SPDX-License-Identifier: MIT
Copy link
Copy Markdown
Contributor Author

@ChristopherDedominici ChristopherDedominici Mar 16, 2026

Choose a reason for hiding this comment

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

IGNORE: only used for manual testing - will be removed before merging.

Run pnpm hardhat run scripts/demo-trace-output.ts -vvvv (or -vvvvv) in example-project to see a demo

Copy link
Copy Markdown
Contributor Author

@ChristopherDedominici ChristopherDedominici Mar 30, 2026

Choose a reason for hiding this comment

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

Actually, I will keep them, it could be useful for the future

@@ -0,0 +1,176 @@
/**
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

IGNORE: only used for manual testing - will be removed before merging.

Run pnpm hardhat run scripts/demo-trace-output.ts -vvvv (or -vvvvv) in example-project to see a demo

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Actually, I will keep them, it could be useful for the future

@ChristopherDedominici ChristopherDedominici marked this pull request as ready for review March 16, 2026 12:07
return lines;
}

function formatKind(kind: CallKind): string | undefined {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

move and re-organized at line 127 in this file

includeCallTraces !== IncludeTraces.None;

let traceOutput: TraceOutputManager | undefined;
if (tracesEnabled) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So we never do response.getCallTraces() if not needed, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Correct

this.#traceOutput?.clearTracedHashes();
// Detach the snapshot-revert listener so nothing keeps a reference
// to this instance and it can be garbage collected.
this.removeAllListeners(EDR_NETWORK_REVERT_SNAPSHOT_EVENT);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This will conflict with another PR where we remove all listeners, not just this one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed, restored with original behavior

@ChristopherDedominici ChristopherDedominici merged commit 96b785c into edr-upgrade-25 Mar 30, 2026
415 of 417 checks passed
@ChristopherDedominici ChristopherDedominici deleted the improve-verbosity-style branch March 30, 2026 15:50
@ChristopherDedominici ChristopherDedominici changed the title Verbosity (-vvv) mvp implementation Verbosity (-vvv) improve style Mar 30, 2026
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.

3 participants