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

Make integration-tests stable #761

Merged
merged 12 commits into from
Jan 4, 2024
Merged

Make integration-tests stable #761

merged 12 commits into from
Jan 4, 2024

Conversation

ysv
Copy link
Contributor

@ysv ysv commented Dec 22, 2023

Description

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

Copy link

codecov bot commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8b706ad) 33.14% compared to head (2843265) 33.12%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #761      +/-   ##
==========================================
- Coverage   33.14%   33.12%   -0.02%     
==========================================
  Files         169      169              
  Lines       48122    48141      +19     
==========================================
  Hits        15948    15948              
- Misses      29145    29164      +19     
  Partials     3029     3029              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ysv ysv marked this pull request as ready for review December 29, 2023 11:49
@ysv ysv requested a review from a team as a code owner December 29, 2023 11:49
@ysv ysv requested review from dzmitryhil, miladz68 and wojtek-coreum and removed request for a team December 29, 2023 11:49
Copy link
Contributor Author

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @dzmitryhil, @miladz68, and @wojtek-coreum)


pkg/client/tx.go line 297 at r2 (raw file):

	}

	if err := AwaitTargetHeight(ctx, clientCtx, txResponse.Height+3); err != nil {

waiting for 3 extra blocks helps and makes test stable in CI

if you are ok with this approach I can move this (block number to wait) into TimeoutConfig structure.
I propose to use 3 for integration-tests and for now 0 by default inside client because I'm not sure if this should be behaviour of default client.

We can live with this solution inside integration-tests for some time and see if this resolves our issue because right now I tried to run CI for ~10 times and had no failures

Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1, 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dzmitryhil, @wojtek-coreum, and @ysv)


pkg/client/tx.go line 297 at r2 (raw file):

Previously, ysv (Yaroslav Savchuk) wrote…

waiting for 3 extra blocks helps and makes test stable in CI

if you are ok with this approach I can move this (block number to wait) into TimeoutConfig structure.
I propose to use 3 for integration-tests and for now 0 by default inside client because I'm not sure if this should be behaviour of default client.

We can live with this solution inside integration-tests for some time and see if this resolves our issue because right now I tried to run CI for ~10 times and had no failures

I think it is ok for now.

miladz68
miladz68 previously approved these changes Dec 29, 2023
Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dzmitryhil, @wojtek-coreum, and @ysv)

Copy link
Contributor Author

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewable status: 3 of 7 files reviewed, all discussions resolved (waiting on @dzmitryhil, @miladz68, and @wojtek-coreum)


pkg/client/tx.go line 297 at r2 (raw file):

Previously, miladz68 (milad) wrote…

I think it is ok for now.

ok, moved it to a separate config & fixed some one issue in tests

Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dzmitryhil and @wojtek-coreum)

@ysv ysv merged commit 6a9050a into master Jan 4, 2024
9 of 10 checks passed
@ysv ysv deleted the yaroslav/fix-integr-test-v3 branch January 4, 2024 14:26
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