-
Notifications
You must be signed in to change notification settings - Fork 283
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
Add engine_getClientVersionV1 interface + ability to get commit hash #8070
Conversation
17c7c93
to
11c9f74
Compare
ethereum/spec/src/main/java/tech/pegasys/teku/spec/executionlayer/ExecutionLayerChannel.java
Outdated
Show resolved
Hide resolved
...tructure/version/src/main/java/tech/pegasys/teku/infrastructure/version/VersionProvider.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
@Test | ||
void getCommitHashIsEmpty_whenGitCommitIdIsNot40Characters(@TempDir Path tempDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh see thats interesting, i didn't realise that was important :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually it's overkill given we have tested the happy case constant, I think returning empty is more confusing, so removed that check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Description
getClientVersionV1
inExecutionEngineClient
engineGetClientVersion
inExecutionLayerChannel
generateGitProperties
to create agit.properties
file in runtime/JAR which is used byVersionProvider
to be able to retrieve the git commit hash (will be used in future PRs)Fixed Issue(s)
related to #7930
Documentation
doc-change-required
label to this PR if updates are required.Changelog