Skip to content

[Merged by Bors] - Add CLI tool to generate an identity file#3167

Closed
orgr wants to merge 4 commits into
spacemeshos:developfrom
orgr:identity-gen-cli
Closed

[Merged by Bors] - Add CLI tool to generate an identity file#3167
orgr wants to merge 4 commits into
spacemeshos:developfrom
orgr:identity-gen-cli

Conversation

@orgr
Copy link
Copy Markdown
Contributor

@orgr orgr commented Apr 11, 2022

Motivation

Closes #3157

Changes

Change the ensureIdentity to public EnsureIdentity,
Add a CLI tool that calls EnsureIdentity

DevOps Notes

  • This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
  • This PR does not affect public APIs
  • This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
  • This PR does not make changes to log messages (which monitoring infrastructure may rely on)

Copy link
Copy Markdown
Contributor

@dshulyak dshulyak left a comment

Choose a reason for hiding this comment

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

additionally we need to package it somehow. probably add it to the spacemesh docker image for simplicity

Comment thread gen_identity/gen_identity.go Outdated
Comment thread gen_identity/gen_identity.go Outdated
Comment thread gen_identity/gen_identity.go Outdated
Comment thread gen_identity/gen_identity.go Outdated
Comment thread Dockerfile
@@ -84,6 +84,7 @@ COPY . .
# And compile the project
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

btw, docker build fails on the curl line 57 unless I add the -k flag (ignore certificates), but also I've been working from a WSL on a Windows machine so it could be a local issue.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

definitely something local, it works on the rest of prs and other dev environments

@orgr orgr requested a review from dshulyak April 15, 2022 15:18
@orgr orgr force-pushed the identity-gen-cli branch from 709861c to 81f3e45 Compare April 20, 2022 10:11
Copy link
Copy Markdown
Contributor

@dshulyak dshulyak left a comment

Choose a reason for hiding this comment

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

i wonder what would be a better name for the binary. maybe genp2pid or more verbose gen-p2p-identity ?

Comment thread gen_identity/gen_identity.go Outdated
Comment thread Makefile Outdated
Comment thread Dockerfile
@@ -84,6 +84,7 @@ COPY . .
# And compile the project
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

definitely something local, it works on the rest of prs and other dev environments

Comment thread Makefile
cd $@ ; go build -o $(BIN_DIR)$@$(EXE) $(GOTAGS) .
hare p2p: get-libs
cd cmd/$@ ; go build -o $(BIN_DIR)go-$@$(EXE) $(GOTAGS) .
cd $@ ; go build -o $(BIN_DIR)go-$@$(EXE) $(GOTAGS) .
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this actually needs to be removed, i forgot about it

@orgr orgr requested a review from countvonzero as a code owner April 25, 2022 12:22
@orgr orgr requested a review from dshulyak April 25, 2022 12:50
@dshulyak
Copy link
Copy Markdown
Contributor

bors try

bors Bot added a commit that referenced this pull request Apr 26, 2022
@bors
Copy link
Copy Markdown

bors Bot commented Apr 26, 2022

try

Build failed:

@orgr orgr force-pushed the identity-gen-cli branch from dc852db to 3fd9890 Compare April 26, 2022 09:01
@bors
Copy link
Copy Markdown

bors Bot commented Apr 26, 2022

🔒 Permission denied

Existing reviewers: click here to make orgr a reviewer

@orgr
Copy link
Copy Markdown
Contributor Author

orgr commented Apr 26, 2022

@dshulyak, I've fixed the comments, linter should pass now

@dshulyak
Copy link
Copy Markdown
Contributor

bors try

bors Bot added a commit that referenced this pull request Apr 27, 2022
@bors
Copy link
Copy Markdown

bors Bot commented Apr 27, 2022

try

Build failed:

@dshulyak
Copy link
Copy Markdown
Contributor

bors try

bors Bot added a commit that referenced this pull request Apr 27, 2022
@bors
Copy link
Copy Markdown

bors Bot commented Apr 27, 2022

try

Build succeeded:

@dshulyak
Copy link
Copy Markdown
Contributor

bors merge

bors Bot pushed a commit that referenced this pull request Apr 27, 2022
## Motivation
Closes #3157 

## Changes
Change the ensureIdentity to public EnsureIdentity,
Add a CLI tool that calls EnsureIdentity

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link
Copy Markdown

bors Bot commented Apr 27, 2022

Build failed:

@dshulyak
Copy link
Copy Markdown
Contributor

new test is somewhat flaky. i will take a look

@dshulyak
Copy link
Copy Markdown
Contributor

bors merge

bors Bot pushed a commit that referenced this pull request Apr 27, 2022
## Motivation
Closes #3157 

## Changes
Change the ensureIdentity to public EnsureIdentity,
Add a CLI tool that calls EnsureIdentity

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link
Copy Markdown

bors Bot commented Apr 27, 2022

Build failed:

@dshulyak
Copy link
Copy Markdown
Contributor

bors merge

bors Bot pushed a commit that referenced this pull request Apr 28, 2022
## Motivation
Closes #3157 

## Changes
Change the ensureIdentity to public EnsureIdentity,
Add a CLI tool that calls EnsureIdentity

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link
Copy Markdown

bors Bot commented Apr 28, 2022

Pull request successfully merged into develop.

Build succeeded:

@bors bors Bot changed the title Add CLI tool to generate an identity file [Merged by Bors] - Add CLI tool to generate an identity file Apr 28, 2022
@bors bors Bot closed this Apr 28, 2022
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.

cmd, p2p: add command line tool to generate and save p2p identity

2 participants