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

Feature t8n gnosis #7319

Merged
merged 9 commits into from
Oct 16, 2024
Merged

Feature t8n gnosis #7319

merged 9 commits into from
Oct 16, 2024

Conversation

stdevMac
Copy link
Member

@stdevMac stdevMac commented Aug 9, 2024

Changes

  • Added support for running t8n ethereum/tests over gnosis

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

@stdevMac stdevMac requested a review from yerke26 August 9, 2024 11:16
{
TestContext.Write($"Running {test.Name} at {DateTime.UtcNow:HH:mm:ss.ffffff}");
Console.WriteLine("Passing over here");
Copy link
Contributor

Choose a reason for hiding this comment

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

Debug log?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed here

@@ -36,6 +36,7 @@ static void ConfigureT8NCommand(ref RootCommand rootCmd)
var traceOpt = new Option<bool>("--trace", description: "Configures the use of the JSON opcode tracer. This tracer emits traces to files as trace-<txIndex>-<txHash>.jsonl", getDefaultValue: () => false);
var traceNoStackOpt = new Option<bool>("--trace.noStack", description: "Trace no stack", getDefaultValue: () => false);
var traceReturnDataOpt = new Option<bool>("--trace.returnData", description: "Trace return data", getDefaultValue: () => false);
var isGnosisTests = new Option<bool>("--run.gnosis", description: "If set to true, will run under Gnosis spec", getDefaultValue: () => false);

Choose a reason for hiding this comment

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

Just an idea for an improvement: instead of using a new --run.gnosis option maybe we can reuse --state.chainId and choose ISpecProvider based on chain / networkid? With such a way we will not need to add a new flag every time we have to add a new network to t8n.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea, removed --run.gnosis flag

@yerke26 yerke26 merged commit aeed2fd into feature/t8n Oct 16, 2024
60 checks passed
@yerke26 yerke26 deleted the feature/t8n-gnosis branch October 16, 2024 09:56
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