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

testutil/compose: add support for real vcs #595

Merged
merged 1 commit into from
May 23, 2022
Merged

Conversation

corverroos
Copy link
Contributor

Adds support for real VCs.

category: feature
ticket: #568

b, err := static.ReadFile(path.Join(staticRoot, d.Name(), f.Name()))
if err != nil {
return errors.Wrap(err, "read file")
}

if err := os.WriteFile(path.Join(dir, d.Name(), f.Name()), b, info.Mode()); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can't use info.Mode() since that is 0o444 for embedded files.

@@ -9,23 +9,23 @@ x-node-base: &node-base
{{if .Bootnode }}depends_on: [bootnode] {{end}}

services:
{{ range $i, $node := .Nodes}}
{{- range $i, $node := .Nodes}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix spacing issues

Comment on lines +68 to +83
var vcByType = map[vcType]vc{
vcLighthouse: {
Label: string(vcLighthouse),
Build: "lighthouse",
},
vcTeku: {
Label: string(vcTeku),
Image: "consensys/teku:latest",
Command: `|
validator-client
--network=auto
--beacon-node-api-endpoint="http://node1:16002"
--validator-keys="/compose/node1:/compose/node1"
--validators-proposer-default-fee-recipient="0x0000000000000000000000000000000000000000"`,
},
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the meat of the PR.

@codecov
Copy link

codecov bot commented May 23, 2022

Codecov Report

Merging #595 (8d41cb5) into main (f8f08ec) will increase coverage by 0.24%.
The diff coverage is 92.30%.

@@            Coverage Diff             @@
##             main     #595      +/-   ##
==========================================
+ Coverage   54.16%   54.41%   +0.24%     
==========================================
  Files          95       95              
  Lines        8922     8929       +7     
==========================================
+ Hits         4833     4859      +26     
+ Misses       3389     3376      -13     
+ Partials      700      694       -6     
Impacted Files Coverage Δ
testutil/compose/define.go 47.42% <80.00%> (+1.71%) ⬆️
testutil/compose/run.go 81.08% <100.00%> (+4.41%) ⬆️
app/app.go 65.04% <0.00%> (+4.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f8f08ec...8d41cb5. Read the comment docs.

Copy link
Contributor

@xenowits xenowits left a comment

Choose a reason for hiding this comment

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

LGTM🚀

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label May 23, 2022
@obol-bulldozer obol-bulldozer bot merged commit 3c09b13 into main May 23, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/composevcs branch May 23, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants