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

Add engine_getClientVersionV1 interface + ability to get commit hash #8070

Merged
merged 12 commits into from
Mar 13, 2024

Conversation

StefanBratanov
Copy link
Contributor

@StefanBratanov StefanBratanov commented Mar 12, 2024

PR Description

  • Add getClientVersionV1 in ExecutionEngineClient
  • Add engineGetClientVersion in ExecutionLayerChannel
  • Add gradle task generateGitProperties to create a git.properties file in runtime/JAR which is used by VersionProvider to be able to retrieve the git commit hash (will be used in future PRs)

Fixed Issue(s)

related to #7930

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

}

@Test
void getCommitHashIsEmpty_whenGitCommitIdIsNot40Characters(@TempDir Path tempDir)
Copy link
Contributor

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 :)

Copy link
Contributor Author

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.

Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

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

LGTM

@StefanBratanov StefanBratanov enabled auto-merge (squash) March 13, 2024 11:39
@StefanBratanov StefanBratanov merged commit be4dfc0 into Consensys:master Mar 13, 2024
15 checks passed
@StefanBratanov StefanBratanov deleted the 7930_start branch March 13, 2024 12:30
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