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

Improved e2e Test setup #52

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

aruokhai
Copy link
Contributor

@aruokhai aruokhai commented Oct 25, 2024

Improved E2E test setup

@aruokhai aruokhai marked this pull request as draft October 29, 2024 15:20
src/configuration.ts Outdated Show resolved Hide resolved
@aruokhai aruokhai changed the title Draft: Improved e2e Test setup Improved e2e Test setup Nov 9, 2024
@aruokhai aruokhai marked this pull request as ready for review November 9, 2024 12:12
@aruokhai aruokhai force-pushed the improved_e2e branch 6 times, most recently from f340962 to 7894fa7 Compare November 12, 2024 14:30
src/configuration.ts Outdated Show resolved Hide resolved
src/configuration.ts Outdated Show resolved Hide resolved
e2e/helpers/rpc.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/common.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/common.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/common.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/rpc.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Show resolved Hide resolved
e2e/setup.ts Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
e2e/indexer.e2e-spec.ts Outdated Show resolved Hide resolved
e2e/setup.ts Outdated
stderr: true,
});
logs.on('data', (log) => {
logger.log(log.toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

Log only essential information, such as errors or failed cases. Avoid excessive logging, as it would require sifting through unnecessary logs to identify failed test cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that is quite true that bitcoind has excessive info, setting bitcoind env variable debug=0 still doesn't solve it, one way i believe to solve it is to not output debug info for indexer, @theanmolsharma , what do you think.

Copy link
Collaborator

@theanmolsharma theanmolsharma Dec 3, 2024

Choose a reason for hiding this comment

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

Why can't we just write the stream to a file like .logs/bitcoind.log? and then in Github Actions, we can do cat .log/bitcoind.log

Copy link
Contributor

Choose a reason for hiding this comment

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

The logging issue persists. What if we add a separate dropdown specifically for logs? @theanmolsharma

@aruokhai aruokhai force-pushed the improved_e2e branch 7 times, most recently from 016999d to bd000da Compare December 5, 2024 07:27
Copy link
Collaborator

@theanmolsharma theanmolsharma left a comment

Choose a reason for hiding this comment

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

I think these should be the last round of comments, I will merge after you address these.

e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/helpers/wallet.helper.ts Outdated Show resolved Hide resolved
e2e/setup.ts Outdated Show resolved Hide resolved
Draft: Improved E2E Test

implemented improved e2e test structure
Copy link
Collaborator

@theanmolsharma theanmolsharma left a comment

Choose a reason for hiding this comment

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

ACK 5c87696

This PR will be a big improvement. Thank you for putting so much effort into this.

@theanmolsharma theanmolsharma merged commit 5c87696 into Bitshala-Incubator:main Dec 10, 2024
3 of 4 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.

3 participants