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

feat(eigen-client-extra-features): Replace third party dependant tests with mock tests #356

Conversation

juan518munoz
Copy link

@juan518munoz juan518munoz commented Nov 25, 2024

What ❔

  • Ignore existing EigenDA tests inside of library zksync_da_clients to prevent a CI failure in case of third party issues (no connection to rpc used in tests)
  • Verifier tests now use a MockVerifierClient when running on the CI.
  • Client tests no longer run on the CI.
  • To run previous tests (now ignored) execute:
    cargo test -p zksync_da_clients -- --ignored

Why ❔

Prevent CI running longer that it should, or even failing in case a third party service is not available.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zkstack dev fmt and zkstack dev lint.

@juan518munoz juan518munoz marked this pull request as ready for review November 26, 2024 18:41
Ignore test

Co-authored-by: Gianbelinche <39842759+gianbelinche@users.noreply.github.com>
Co-authored-by: Gianbelinche <39842759+gianbelinche@users.noreply.github.com>
@@ -291,6 +300,7 @@ mod tests {
assert_eq!(retrieved_data.unwrap(), data);
}

#[ignore = "remote dependency"]

Choose a reason for hiding this comment

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

replace it with something more descriptive like:

"Depends on external RPC node"

Copy link
Author

Choose a reason for hiding this comment

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

Done!

Copy link

@juanbono juanbono left a comment

Choose a reason for hiding this comment

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

See comments

@gianbelinche gianbelinche merged commit 75090b6 into eigen-client-extra-features Nov 28, 2024
4 of 7 checks passed
@gianbelinche gianbelinche deleted the eigen-client-extra-features-mock-tests branch November 28, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants