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

[TT-414] Test Env E2E Builder Changes for Non EVM Chains #10753

Merged
merged 5 commits into from
Sep 29, 2023

Conversation

tateexon
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@tateexon tateexon force-pushed the TT-414-e2e-docker-conversion branch 2 times, most recently from 98ebd64 to ee647fc Compare September 21, 2023 22:10
@tateexon tateexon force-pushed the TT-414-e2e-docker-conversion branch from ee647fc to 516828e Compare September 22, 2023 16:03
@tateexon tateexon changed the title [TT-414] Test Env E2E Builder Changes for Non Geth Chains [TT-414] Test Env E2E Builder Changes for Non EVM Chains Sep 26, 2023
@tateexon tateexon marked this pull request as ready for review September 26, 2023 14:36
@tateexon tateexon requested a review from a team as a code owner September 26, 2023 14:36
te.Cfg = cfg
n := []string{te.Network.Name}
te.Geth = test_env.NewGeth(n, test_env.WithContainerName(cfg.Geth.ContainerName))
te.MockServer = test_env.NewMockServer(n, test_env.WithContainerName(cfg.MockServer.ContainerName))
Copy link
Collaborator

@lukaszcl lukaszcl Sep 26, 2023

Choose a reason for hiding this comment

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

@tateexon Is there an option to just pass cfg.MockServer.ContainerName as param? test_env.NewMockServer(n, cfg.MockServer.ContainerName)? This would make it simpler

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya we can do that. Would be a separate ticket that deals with CTF changes since these methods and patterns would need to be changed there.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, ok!

@@ -46,6 +48,32 @@ func NewCLTestEnvBuilder() *CLTestEnvBuilder {
}
}

func (b *CLTestEnvBuilder) WithTestEnv(te *CLClusterTestEnv) (*CLTestEnvBuilder, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tateexon what this function does? Creates builder from config file? If yes, maybe it should not be CLTestEnvBuilder method but a normal function? And maybe a better name could be sth like "NewTestEnvBuilderFromConfig()`?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add a comment to the function but I intend it to be used just like any of the other With commands except this one needs some error handling. We had handling of the CLClusterTestEnv configuration spread out and unable to easily be changed and used outside of EVM use cases so this just bundles it up into one place and exposes it as part of the builder chain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lukaszcl
lukaszcl previously approved these changes Sep 27, 2023
@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tateexon tateexon enabled auto-merge September 27, 2023 19:28
@tateexon tateexon requested a review from a team September 27, 2023 19:39
@tateexon tateexon added this pull request to the merge queue Sep 27, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 27, 2023
@tateexon tateexon added this pull request to the merge queue Sep 29, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 29, 2023
@tateexon tateexon added this pull request to the merge queue Sep 29, 2023
Merged via the queue into develop with commit 55c7baa Sep 29, 2023
83 checks passed
@tateexon tateexon deleted the TT-414-e2e-docker-conversion branch September 29, 2023 17:51
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