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

Removing deprecated hash variable which was used to cache the transaction #3110

Merged
merged 20 commits into from
Jan 4, 2022

Conversation

mohitsaxenaknoldus
Copy link
Contributor

@mohitsaxenaknoldus mohitsaxenaknoldus commented Nov 26, 2021

PR description

Fixed Issue(s)

#2937

Changelog

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>
Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>
Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>
Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>
@macfarla
Copy link
Contributor

Looks ok to me @mohitsaxenaknoldus
However the unit test step is failing because the plugin API hash needs updating as a result of this change:

* What went wrong:
Execution failed for task ':plugin-api:checkAPIChanges'.
> For the Plugin APIs the checksum of the project did not match what was expected.
  
  If this is a deliberate change where you have thought through backwards compatibility,
  then update "Expected" for "Calculated" in the appropriate build.gradle as the knownHash for this task.
  Expected   : /M23BAhwqtMpjhcoHDMJvbHyhJ4z39z2jJMWUGOBO14=
  Calculated : iVl4LwulrgbVqYsahA4YvgrMqc22OxBk43hFsoYPA5w=

CHANGELOG.md Outdated Show resolved Hide resolved
@mohitsaxenaknoldus
Copy link
Contributor Author

Looks ok to me @mohitsaxenaknoldus However the unit test step is failing because the plugin API hash needs updating as a result of this change:

* What went wrong:
Execution failed for task ':plugin-api:checkAPIChanges'.
> For the Plugin APIs the checksum of the project did not match what was expected.
  
  If this is a deliberate change where you have thought through backwards compatibility,
  then update "Expected" for "Calculated" in the appropriate build.gradle as the knownHash for this task.
  Expected   : /M23BAhwqtMpjhcoHDMJvbHyhJ4z39z2jJMWUGOBO14=
  Calculated : iVl4LwulrgbVqYsahA4YvgrMqc22OxBk43hFsoYPA5w=

Oh ok. How can I fix that?

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>
@macfarla
Copy link
Contributor

Looks ok to me @mohitsaxenaknoldus However the unit test step is failing because the plugin API hash needs updating as a result of this change:

* What went wrong:
Execution failed for task ':plugin-api:checkAPIChanges'.
> For the Plugin APIs the checksum of the project did not match what was expected.
  
  If this is a deliberate change where you have thought through backwards compatibility,
  then update "Expected" for "Calculated" in the appropriate build.gradle as the knownHash for this task.
  Expected   : /M23BAhwqtMpjhcoHDMJvbHyhJ4z39z2jJMWUGOBO14=
  Calculated : iVl4LwulrgbVqYsahA4YvgrMqc22OxBk43hFsoYPA5w=

Oh ok. How can I fix that?
You have to do exactly what it says in the message above - update the knownHash in plugin-api/build.gradle

CHANGELOG.md Show resolved Hide resolved
@mohitsaxenaknoldus
Copy link
Contributor Author

@macfarla Fixed the chandelog, please check now. Sorry for the delays!

@macfarla
Copy link
Contributor

@mohitsaxenaknoldus the changelog entry for this should be moved under the topmost release in the changelog ie 22.1.0-RC2
Also the hash needs updating in
Build file '/home/circleci/project/plugin-api/build.gradle' line: 53

If this is a deliberate change where you have thought through backwards compatibility,
then update "Expected" for "Calculated" in the appropriate build.gradle as the knownHash for this task.
Expected : DhISJBKoARZyoiT387UIA7QfcEwyOcIYm17f/fLsJRM=
Calculated : pDLQUs2Gl9hFV1ecKSacbbfwovrjMf/IBPiY1zkOZlI=

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>
@mohitsaxenaknoldus
Copy link
Contributor Author

@mohitsaxenaknoldus the changelog entry for this should be moved under the topmost release in the changelog ie 22.1.0-RC2 Also the hash needs updating in Build file '/home/circleci/project/plugin-api/build.gradle' line: 53

If this is a deliberate change where you have thought through backwards compatibility, then update "Expected" for "Calculated" in the appropriate build.gradle as the knownHash for this task. Expected : DhISJBKoARZyoiT387UIA7QfcEwyOcIYm17f/fLsJRM= Calculated : pDLQUs2Gl9hFV1ecKSacbbfwovrjMf/IBPiY1zkOZlI=

Done.
Also, here it is showing DCO ok but on CI DCO is failing, why?

@macfarla
Copy link
Contributor

Also, here it is showing DCO ok but on CI DCO is failing, why?
There's a DCO issue on another branch. We are working on it, should be fixed shortly.

@mohitsaxenaknoldus
Copy link
Contributor Author

Also, here it is showing DCO ok but on CI DCO is failing, why?
There's a DCO issue on another branch. We are working on it, should be fixed shortly.

Oh ok, seems to be passing now.

plugin-api/build.gradle Outdated Show resolved Hide resolved
Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>
@mohitsaxenaknoldus
Copy link
Contributor Author

Let's see if it works now @macfarla

@mohitsaxenaknoldus
Copy link
Contributor Author

mohitsaxenaknoldus commented Dec 28, 2021

Hey, @macfarla Is this good to merge now?

@macfarla macfarla dismissed their stale review January 4, 2022 00:53

plugin-api hash has now been updated correctly

@macfarla
Copy link
Contributor

macfarla commented Jan 4, 2022

Somehow the hash got overwritten again in a "merge from main" commit. Fingers crossed I've fixed it now! Thanks for your patience with this one @mohitsaxenaknoldus !

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@macfarla macfarla merged commit 09fdc3d into hyperledger:main Jan 4, 2022
@macfarla
Copy link
Contributor

macfarla commented Jan 4, 2022

Thanks again for your patience with getting this change merged in @mohitsaxenaknoldus - hopefully your next contribution doesn't hit so many bumps in the road!!

matkt pushed a commit to matkt/besu that referenced this pull request Jan 5, 2022
…tion (hyperledger#3110)

* Removing deprecated code

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>

* Updating changelog and changing hash

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>

* updated plugin-api hash

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

* make breaking change more explicit in changelog

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
gezero pushed a commit that referenced this pull request Jan 6, 2022
…tion (#3110)

* Removing deprecated code

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>

* Updating changelog and changing hash

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>

* updated plugin-api hash

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

* make breaking change more explicit in changelog

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
@mohitsaxenaknoldus mohitsaxenaknoldus deleted the issue2937 branch January 7, 2022 19:35
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
…tion (hyperledger#3110)

* Removing deprecated code

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>

* Updating changelog and changing hash

Signed-off-by: Mohit Saxena <mohit.saxena@knoldus.com>

* updated plugin-api hash

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

* make breaking change more explicit in changelog

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Co-authored-by: Justin Florentine <justin+github@florentine.us>
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.

4 participants