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: handle errors fetching actions and vouchers from the DB #693

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

pcarranzav
Copy link
Member

@pcarranzav pcarranzav commented Jul 27, 2023

This fix adds error handling to the two timers that periodically query
the database: one which gets actions from the queue, and other that gets pending
vouchers. In tests, the DB tables are dropped, so the timers would throw
errors and cause tests to fail. In production whatever errors cause
a DB fetch to fail could be recoverable so the timer will keep retrying
rather than bubbling up an exception, so hopefully that is okay.

We also change CI to only build using Ubuntu 22.04
(the node 18 version has dependency issues on Ubuntu 20.04) and on
node 16 and 18 (the node 17 version was failing to download node, and is EOL).

Additionally we make CI tests and formatting check happen on all PRs, not
only the ones to main.

@pcarranzav pcarranzav changed the base branch from main to tiago/multi-network-aware-components July 28, 2023 21:12
@tilacog tilacog force-pushed the tiago/multi-network-aware-components branch 2 times, most recently from 41ecb29 to 109a661 Compare July 31, 2023 19:02
@pcarranzav pcarranzav force-pushed the pcv/ci-tests branch 2 times, most recently from 6849b0f to f66b553 Compare July 31, 2023 22:13
@pcarranzav pcarranzav changed the title (Trying to fix CI on L2 branch) fix: handle errors fetching actions and vouchers from the DB Jul 31, 2023
This fix adds error handling to the two timers that periodically query
the database: one which gets actions from the queue, and other that gets pending
vouchers. In tests, the DB tables are dropped, so the timers would throw
errors and cause tests to fail. In production whatever errors cause
a DB fetch to fail could be recoverable so the timer will keep retrying
rather than bubbling up an exception, so hopefully that is okay.

We also change CI to only build using Ubuntu 22.04
(the node 18 version has dependency issues on Ubuntu 20.04) and on
node 16 and 18 (the node 17 version was failing to download node, and is EOL).

Additionally we make CI tests and formatting check happen on all PRs, not
only the ones to main.
@pcarranzav pcarranzav marked this pull request as ready for review July 31, 2023 22:15
@pcarranzav pcarranzav requested a review from tilacog July 31, 2023 22:36
Copy link
Contributor

@tilacog tilacog left a comment

Choose a reason for hiding this comment

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

I really liked the failsafe approach.
I just left a comment about a possible revert, but it's all good!
Thanks!

@pcarranzav pcarranzav merged commit f98074a into tiago/multi-network-aware-components Aug 2, 2023
3 checks passed
@pcarranzav pcarranzav deleted the pcv/ci-tests branch August 2, 2023 13:46
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