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

[antithesis] Enable custom plugin dir for subnet-evm #3305

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

marun
Copy link
Contributor

@marun marun commented Aug 16, 2024

Why this should be merged

subnet-evm's docker image uses a non-default plugin dir and it needs to be possible to set it for nodes that will run under the antithesis docker compose project.

How this works

  • support setting the plugin dir for the compose project while still using the default plugin dir when initializing the db

How this was tested

@marun marun added the testing This primarily focuses on testing label Aug 16, 2024
@marun marun self-assigned this Aug 16, 2024
@marun marun force-pushed the antithesis-plugin-dir branch 3 times, most recently from 6b9c81b to 721bd9e Compare August 16, 2024 10:39
network.DefaultFlags[config.PluginDirKey] = pluginDirForCompose
} else {
// Ensure the plugin dir is not provided so that the default is used
delete(network.DefaultFlags, config.PluginDirKey)
Copy link
Contributor

Choose a reason for hiding this comment

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

You've already deleted it above, on line 72.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@@ -61,9 +61,27 @@ func GenerateComposeConfig(network *tmpnet.Network, baseImageName string) error
return fmt.Errorf("failed to get bootstrap volume path: %w", err)
}

// Save the plugin dir for use with compose configuration and remove it from flags so pluginDir can
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this relate to the pluginDir variable set earlier from the environment variable? Why does the flag need to be removed if pluginDir is passed as the third argument to initBootstrapDB()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@StephenButtolph StephenButtolph added this pull request to the merge queue Aug 19, 2024
Merged via the queue into master with commit df91c2f Aug 19, 2024
21 checks passed
@StephenButtolph StephenButtolph deleted the antithesis-plugin-dir branch August 19, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants