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

fix: improve filter test race condition #1529

Merged
merged 2 commits into from
Feb 3, 2023
Merged

Conversation

jm-clius
Copy link
Contributor

@jm-clius jm-clius commented Feb 2, 2023

Partially addresses #1357

Currently the most common cause for test failures in the CI pipeline, seems to be related to filter tests.

This is caused by a race condition between a subscribing client and a publishing filter service node. In each case I looked at, the race condition was a matter of ~100ms or less, so extra time padding should improve this.

Longer term this race condition should be avoided by using the improved filter specification and waiting for the subscribe transaction to be complete.

NB: I think .editorconfig changed quite a lot on this one! Please ignore whitespace to see the diff.

@jm-clius jm-clius marked this pull request as ready for review February 2, 2023 14:30
Copy link
Contributor

@rymnc rymnc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@alrevuelta alrevuelta left a comment

Choose a reason for hiding this comment

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

lgtm! thanks!

did all ci checks passed on the first run :O?

@status-im-auto
Copy link
Collaborator

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ eae2d1d #1 2023-02-02 15:24:32 ~13 min macos 📦bin

Copy link
Contributor

@LNSD LNSD left a comment

Choose a reason for hiding this comment

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

Longer term this race condition should be avoided by using #1357 and waiting for the subscribe transaction to be complete.

LGTM 💯

Indeed, we need to review the test strategy after the new filter version is implemented.

@jm-clius
Copy link
Contributor Author

jm-clius commented Feb 3, 2023

did all ci checks passed on the first run :O?

Very first run was cancelled as I pushed a new version. But this version did!

@jm-clius jm-clius merged commit f36d708 into master Feb 3, 2023
@jm-clius jm-clius deleted the fix/filter-test-timing branch February 3, 2023 08:00
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.

5 participants