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

rpc-alt: testing query transaction + pruning #21190

Open
wants to merge 1 commit into
base: amnn/rpc-suins
Choose a base branch
from

Conversation

amnn
Copy link
Contributor

@amnn amnn commented Feb 12, 2025

Description

Adding a test to make sure that transaction querying continues to work in the presence of pruning, because there is some tricky logic related to applying a lowerbound to the filtered results.

At the same time, I also created a testing-specific config for the indexer, which speeds up polling but reduces concurrency -- this shaves off about 10 to 15s from local testing runs overall, and 30s for the newly added test (which generates a lot of checkpoints).

Test plan

sui$ cargo nextest run -p sui-indexer-alt-e2e-tests \
 --test transaction_pruning_tests

Stack


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@amnn amnn requested review from emmazzz, gegaowp and wlmyng February 12, 2025 14:53
@amnn amnn self-assigned this Feb 12, 2025
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 0:50am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Feb 14, 2025 0:50am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Feb 14, 2025 0:50am

@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env February 12, 2025 14:53 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/rpc-tx-prune-test branch from 6f78de6 to 31d89ba Compare February 12, 2025 14:58
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env February 12, 2025 14:58 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/rpc-tx-prune-test branch from 31d89ba to 6a9183d Compare February 12, 2025 15:00
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env February 12, 2025 15:00 — with GitHub Actions Inactive
@amnn amnn requested a review from stefan-mysten as a code owner February 12, 2025 15:48
@amnn amnn force-pushed the amnn/rpc-tx-prune-test branch from 6a9183d to 7d51f89 Compare February 12, 2025 15:48
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env February 12, 2025 15:49 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/rpc-tx-prune-test branch from 7d51f89 to 4ea0ca4 Compare February 12, 2025 20:00
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env February 12, 2025 20:00 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/rpc-tx-prune-test branch from 4ea0ca4 to ba0a812 Compare February 12, 2025 22:39
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env February 12, 2025 22:40 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/rpc-tx-prune-test branch from ba0a812 to 56c96a5 Compare February 13, 2025 14:36
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env February 13, 2025 14:37 — with GitHub Actions Inactive
## Description

Adding a test to make sure that transaction querying continues to work
in the presence of pruning, because there is some tricky logic related
to applying a lowerbound to the filtered results.

At the same time, I also created a testing-specific config for the
indexer, which speeds up polling but reduces concurrency -- this shaves
off about 10 to 15s from local testing runs overall, and 30s for the
newly added test (which generates a lot of checkpoints).

## Test plan

```
sui$ cargo nextest run -p sui-indexer-alt-e2e-tests \
 --test transaction_pruning_tests
```
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.

1 participant