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

feat(besu-test-ledger): send funds to already created address #2251

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

AndreAugusto11
Copy link
Contributor

Enable sending funds to an existing account.

New method created:

  • sendEthToAccount

closes #2250

Signed-off-by: André Augusto [email protected]

@AndreAugusto11
Copy link
Contributor Author

FYI @RafaelAPB @petermetz the cactus-plugin-connector-ubiquity is failing the CI here

@RafaelAPB
Copy link
Contributor

@petermetz as @AndreAugusto11 said, the ubiquity connector tests fail, because this workspace does not have an api key for that connector. Tests only run successfully on my repo. Given this, shall we remove the ubiquity connector tests from the CI?

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.

@AndreAugusto11 LGTM but please fix the test(s) that started failing:

2023-01-31_205215_cacti_ci_besu_connector_crash.log

@petermetz
Copy link
Contributor

@petermetz as @AndreAugusto11 said, the ubiquity connector tests fail, because this workspace does not have an api key for that connector. Tests only run successfully on my repo. Given this, shall we remove the ubiquity connector tests from the CI?

@RafaelAPB I'd rather just "power through it" as-in, fix the failing tests as soon as possible instead of removing them. Seeing the tests fail on every PR (pointlessly) is annoying (to me at least) but this way it is a constant reminder that we should really fix them... :-)

@AndreAugusto11
Copy link
Contributor Author

AndreAugusto11 commented Feb 9, 2023

@AndreAugusto11 LGTM but please fix the test(s) that started failing:

2023-01-31_205215_cacti_ci_besu_connector_crash.log

@petermetz I am able to run the failing tests related to Besu locally (Cactus_CI / cactus-test-plugin-ledger-connector-besu and Cactus_CI / cactus-plugin-ledger-connector-besu), could you confirm this is an issue caused by this code pls?

get-balance-endpoint.test.ts.log
openapi-validation.test.ts.log

@RafaelAPB
Copy link
Contributor

RafaelAPB commented Feb 17, 2023

@petermetz

The tests are failing because we are not giving them a valid API key for Ubiquity. Is the solution you to generate one and put it on the env vars of the project?

@petermetz
Copy link
Contributor

@petermetz

The tests are failing because we are not giving them a valid API key for Ubiquity. Is the solution you to generate one and put it on the env vars of the project?

@RafaelAPB @AndreAugusto11 Sorry, I forgot about that. We need to fix it somehow but not in scope for this PR so nvm on that topic for here.

@petermetz
Copy link
Contributor

@AndreAugusto11 LGTM but please fix the test(s) that started failing:
2023-01-31_205215_cacti_ci_besu_connector_crash.log

@petermetz I am able to run the failing tests related to Besu locally (Cactus_CI / cactus-test-plugin-ledger-connector-besu and Cactus_CI / cactus-plugin-ledger-connector-besu), could you confirm this is an issue caused by this code pls?

get-balance-endpoint.test.ts.log openapi-validation.test.ts.log

@AndreAugusto11 If they pass locally then it's probably just a flake that it did not on the CI. I've done a rebase onto upstream main and force pushed it for you. Let's see how it goes now but I'll approve in the meantime because there's no other problem with it AFAICT.

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.

@AndreAugusto11 LGTM, thank you and sorry for the slow reviews!

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.

@AndreAugusto11 @RafaelAPB The test is failing consistently now unfortunately. Please remedy and then it's good to go AFAICT!

Attaching the CI logs - fails the same way on my local machine so I'm pretty sure it's not a fluke.
2023-04-03T01-53-43_PR_2251_besu_test_crash.log

@AndreAugusto11
Copy link
Contributor Author

@AndreAugusto11 @RafaelAPB The test is failing consistently now unfortunately. Please remedy and then it's good to go AFAICT!

Attaching the CI logs - fails the same way on my local machine so I'm pretty sure it's not a fluke. 2023-04-03T01-53-43_PR_2251_besu_test_crash.log

@petermetz thank you very much! This is weird because I have been trying to run those tests locally, and they pass. The changes are minimal, and I cannot understand where the problem might be. Do you have any idea?

get-balance-endpoint.test.ts.log

Enable sending funds to an existing account

New method created:
* sendEthToAccount

Closes hyperledger-cacti#2250

Co-authored-by: Peter Somogyvari <[email protected]>

Signed-off-by: André Augusto <[email protected]>
Signed-off-by: Peter Somogyvari <[email protected]>
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.

@AndreAugusto11 You were missing an await which looks like ended up creating a race condition - at least that's what I'm thinking for now. LGTM

@petermetz petermetz enabled auto-merge (rebase) August 13, 2023 21:53
@petermetz petermetz merged commit 3a58508 into hyperledger-cacti:main Aug 13, 2023
108 of 117 checks passed
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.

feat(besu-test-ledger): enable sending funds to already created account
5 participants