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

Add bouncer tests involving the full deposit monitor pipeline. #5388

Merged
merged 20 commits into from
Nov 19, 2024

Conversation

MxmUrw
Copy link
Contributor

@MxmUrw MxmUrw commented Nov 6, 2024

Pull Request

Closes: PRO-1773
Closes: PRO-1774

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have written sufficient tests.
  • I have written and tested required migrations.
  • I have updated documentation where appropriate.

Summary

This PR integrates the deposit-monitor (https://github.com/chainflip-io/chainflip-deposit-monitor) into the localnet configuration. The broker_level_screening test now uses the monitor to mark transactions as tainted.

@MxmUrw MxmUrw changed the title Add deposit monitor test. Add bouncer tests involving the full deposit monitor pipeline. Nov 6, 2024
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72%. Comparing base (c22b70a) to head (e180826).
Report is 12 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff           @@
##            main   #5388    +/-   ##
======================================
  Coverage     71%     72%            
======================================
  Files        489     490     +1     
  Lines      86667   86768   +101     
  Branches   86667   86768   +101     
======================================
+ Hits       61958   62214   +256     
+ Misses     21798   21617   -181     
- Partials    2911    2937    +26     

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


🚨 Try these New Features:

@MxmUrw MxmUrw force-pushed the tests/pro-1773/add-bouncer-tests-for-deposit-monitor branch 8 times, most recently from 6858c9a to 3580cc3 Compare November 7, 2024 09:08
@kylezs kylezs self-requested a review November 7, 2024 15:35
@MxmUrw MxmUrw force-pushed the tests/pro-1773/add-bouncer-tests-for-deposit-monitor branch 5 times, most recently from 9f47df9 to 8ac6fe4 Compare November 11, 2024 16:40
@MxmUrw MxmUrw marked this pull request as ready for review November 11, 2024 17:17
@MxmUrw MxmUrw requested review from a team and martin-chainflip as code owners November 11, 2024 17:17
@MxmUrw MxmUrw requested review from ahasna and removed request for a team November 11, 2024 17:17
bouncer/tests/broker_level_screening.ts Outdated Show resolved Hide resolved
bouncer/tests/broker_level_screening.ts Outdated Show resolved Hide resolved
bouncer/tests/broker_level_screening.ts Outdated Show resolved Hide resolved
localnet/common.sh Outdated Show resolved Hide resolved
bouncer/tests/broker_level_screening.ts Outdated Show resolved Hide resolved
localnet/common.sh Outdated Show resolved Hide resolved
since we don't need to stop the bitcoin node anymore.
 - Use axios for sending requests.
 - Use a simpler health check.
 - Smaller fixes.

Additional changes:
 - Integrate new "/mockmode" feature of deposit monitor which controls the behaviour of the mock analysis provider.
@MxmUrw MxmUrw force-pushed the tests/pro-1773/add-bouncer-tests-for-deposit-monitor branch from de38342 to 3fc522f Compare November 13, 2024 07:51
@MxmUrw MxmUrw requested a review from kylezs November 13, 2024 09:21
bouncer/tests/broker_level_screening.ts Outdated Show resolved Hide resolved
We don't want to break the bouncer tests if we change the deposit-monitor
configuration for example.
@MxmUrw MxmUrw enabled auto-merge November 13, 2024 10:35
@MxmUrw MxmUrw added this pull request to the merge queue Nov 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 13, 2024
This change is supported by moving the start code for
the deposit-monitor to its own file.
@MxmUrw MxmUrw force-pushed the tests/pro-1773/add-bouncer-tests-for-deposit-monitor branch from 4595cbd to e59d9d1 Compare November 18, 2024 13:19
@MxmUrw MxmUrw force-pushed the tests/pro-1773/add-bouncer-tests-for-deposit-monitor branch from e59d9d1 to fcc5e8c Compare November 18, 2024 14:23
bouncer/tests/broker_level_screening.ts Outdated Show resolved Hide resolved
@MxmUrw MxmUrw added this pull request to the merge queue Nov 19, 2024
Merged via the queue into main with commit 43d2ce2 Nov 19, 2024
49 checks passed
@MxmUrw MxmUrw deleted the tests/pro-1773/add-bouncer-tests-for-deposit-monitor branch November 19, 2024 06:54
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