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

Wire edgeless in simulation mode for local testnet #1905

Merged
merged 5 commits into from
May 9, 2024

Conversation

tudor-malene
Copy link
Collaborator

@tudor-malene tudor-malene commented May 9, 2024

Why this change is needed

Sqlite doesn't work properly under load. The e2e tests running against a "local testnet" deployment fail with "database locked"

What changes were made as part of this PR

replace sqlite with edgeless for the "local testnet"

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

}

// only set the pccsAddr env var if it's defined
if d.cfg.pccsAddr != "" {
envs["PCCS_ADDR"] = d.cfg.pccsAddr
}

// todo - do we need this volume?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@BedrockSquirrel , can you think of any situation where we need the data between different runs of the testnet?
(Other than upgrades, which we don't test locally currently?)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm a bit confused, yeah it's just for upgrades. But doesn't this code gets used for the main testnets as well as the local testnets?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth deleting this then, or want to leave it in case we need to add it back in?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah. there might be scenarios we don't know

Copy link
Collaborator

@BedrockSquirrel BedrockSquirrel left a comment

Choose a reason for hiding this comment

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

LGTM

}

// only set the pccsAddr env var if it's defined
if d.cfg.pccsAddr != "" {
envs["PCCS_ADDR"] = d.cfg.pccsAddr
}

// todo - do we need this volume?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth deleting this then, or want to leave it in case we need to add it back in?

@tudor-malene tudor-malene merged commit 1bb752f into main May 9, 2024
8 of 9 checks passed
@tudor-malene tudor-malene deleted the tudor/add_local_edglessdb branch May 9, 2024 13:32
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.

2 participants