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

refactor: Remove async indexer_rules_engine #387

Merged
merged 5 commits into from
Nov 14, 2023

Conversation

morgsmccauley
Copy link
Collaborator

We have two versions of indexer_rules_engine; sync and async. This logic does not need to be async so I've removed this version and refactored so only the sync version is used.

Additionally, I've migrated the async tests across to use the sync version, and have added cargo test to Github Actions so that they are always run. This required fixing the set_provisioning_flag test, as well as ignoring the integration tests which rely on AWS access keys.

@morgsmccauley morgsmccauley requested a review from a team as a code owner November 13, 2023 18:42
@@ -0,0 +1,3551 @@
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added as indexer_rules_engine tests depend on it

Copy link
Collaborator

@darunrs darunrs left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -204,6 +204,7 @@ mod tests {
/// Parses env vars from .env, Run with
/// cargo test s3::tests::list_delta_bucket -- mainnet from-latest;
#[tokio::test]
#[ignore]
Copy link
Collaborator

@darunrs darunrs Nov 13, 2023

Choose a reason for hiding this comment

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

Did you intend to leave all of these ignores around?

EDIT: Nevermind. I read your commit message again. Why did the tests not work anymore actually?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They do, but they rely on external sources and AWS access keys so I didn't want to run them in CI. They're mostly run locally so in that case the #[ignore] can be removed then.

@morgsmccauley morgsmccauley merged commit 3591090 into main Nov 14, 2023
6 checks passed
@morgsmccauley morgsmccauley deleted the fix/indexer-rules-engine-sync branch November 14, 2023 00:11
@morgsmccauley morgsmccauley mentioned this pull request Nov 20, 2023
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