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

test(test-plugin-ledger-connector-besu): jestify get-block-endpoint #3607

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krriscode
Copy link

@krriscode krriscode commented Oct 30, 2024

test(test-plugin-ledger-connector-besu): jestify get-block-endpoint

Primary Changes:

packages/cactus-test-plugin-ledger-connector-besu/src/test/typescript/
integration/plugin-validator-besu/get-block-endpoint.test.ts

Fixes: #3500

Signed-off-by: krriscode [email protected]

Migration of get-block-endpoint.ts from tape-promise to Jest. Update tests for improved reliability and performance.

Pull Request Requirements

  • Rebased onto upstream/main branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.
  • Have git sign off at the end of commit message to avoid being marked red. You can add -s flag when using git commit command. You may refer to this link for more information.
  • Follow the Commit Linting specification. You may refer to this link for more information.

Character Limit

  • Pull Request Title and Commit Subject must not exceed 72 characters (including spaces and special characters).
  • Commit Message per line must not exceed 80 characters (including spaces and special characters).

A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@krriscode Looking good, thank you!

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@krriscode Please fix the commit lint check by modifying the git commit message. It looks like you need a line break somewhere to make the lines less than 100 characters each.

If you need any help with the git mechanics involved just let me know and I can help.

image

@krriscode krriscode force-pushed the test-jest-migration-besu-get-block-endpoint_ branch from 0f99b2e to 8bb1296 Compare November 6, 2024 10:53
@krriscode
Copy link
Author

Hi @petermetz,
I have fixed the commit message as you suggested
please review the PR.

@petermetz petermetz force-pushed the test-jest-migration-besu-get-block-endpoint_ branch from 8bb1296 to 822ae13 Compare November 7, 2024 15:41
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@krriscode Getting closer! Now the commit message is looking good but you are not doing the signoff with the correct name and/or email address. Please see the details here:

https://github.com/hyperledger-cacti/cacti/pull/3607/checks?check_run_id=32664817913

image

@krriscode krriscode force-pushed the test-jest-migration-besu-get-block-endpoint_ branch from 822ae13 to 0802711 Compare November 11, 2024 05:52
@petermetz petermetz force-pushed the test-jest-migration-besu-get-block-endpoint_ branch from 0802711 to ec26f37 Compare November 11, 2024 18:55
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@krriscode Same issue still. There's a more detailed explanation of how it works that might help if you read all of that: https://stackoverflow.com/a/62972983/698470

@krriscode krriscode force-pushed the test-jest-migration-besu-get-block-endpoint_ branch from ec26f37 to e25abca Compare November 13, 2024 08:53
@petermetz petermetz force-pushed the test-jest-migration-besu-get-block-endpoint_ branch from e25abca to 9f62e82 Compare November 13, 2024 14:21
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@krriscode The sign off is still not working. You are trying to submit your pull request being signed off as someone else:

 Error: The SoB (DCO) check failed

  9f62e82005578755f233384042f0b0068e5fea6a    Expected "Udhayakumari <[email protected]>", but got "krriscode <[email protected]>".

  What should I do to fix it ?

  All proposed commits should include a Signed-off-by: <your-name> <your-email-address> line in their commit message.
  This is most conveniently done by using --signoff (-s) when running git commit.

Source: https://github.com/hyperledger-cacti/cacti/actions/runs/11819193500/job/32928793439

.taprc Outdated Show resolved Hide resolved
@krriscode
Copy link
Author

krriscode commented Nov 15, 2024

Hi @petermetz,
I have check git config twice and it is correct, below is screenshot of it
I got stuck here, could you please help me to resolve this issue.
image

@krriscode krriscode force-pushed the test-jest-migration-besu-get-block-endpoint_ branch from a21065b to 641c8e9 Compare November 19, 2024 11:15
@petermetz
Copy link
Contributor

@krriscode That's strange, let me take a look at it myself then. FYI: I'll probably end up rebasing your branch manually, so if you see divergence between your local branch and the remote branch that's no cause for alarm.

Migration of get-block-endpoint.ts from tape-promise to Jest.
Update tests for improved reliability and performance.

Signed-off-by: krriscode <[email protected]>
@petermetz petermetz force-pushed the test-jest-migration-besu-get-block-endpoint_ branch from 641c8e9 to 64b6c4e Compare November 19, 2024 21:19
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@krriscode LGTM, thank you!

@petermetz
Copy link
Contributor

@krriscode Upon further investigation it looks like you did manage to fix it after all, so we are good to go now we just need other maintainers to review it and then it can be merged. Thank you again for the contribution!

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.

test(connector-besu): migrate get-block-endpoint test cases from Tap to Jest
2 participants