Skip to content

Conversation

@neithanmo
Copy link
Collaborator

This PR upgrades our integration-tests suite with the following key enhancements:

  • Load testing for the first half of the indexer
  • Introduced a CLI using clap to manage and execute different test suites
  • Refactored shared constants used across different test modules into a dedicated constants.rs (or similarly named) module
  • Refactored docker files to use only one startup script

Load testing for the TAP side of the indexer would be added in next iterations

neithanmo added 5 commits May 16, 2025 10:44
Introduces a command-line interface powered by Clap to select and
configure integration tests. This allows for more flexible test runs,
including the ability to pass specific parameters like 'num_receipts'
to different test suites.

Additionally, constants used across tests have been centralized into
a dedicated module for improved organization and maintainability.
suchapalaver
suchapalaver previously approved these changes May 16, 2025
Copy link
Collaborator

@suchapalaver suchapalaver left a comment

Choose a reason for hiding this comment

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

Always improving tooling!

@github-actions
Copy link
Contributor

Pull Request Test Coverage Report for Build 15074877446

Details

  • 0 of 112 (0.0%) changed or added relevant lines in 2 files are covered.
  • 3 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.7%) to 72.351%

Changes Missing Coverage Covered Lines Changed/Added Lines %
integration-tests/src/main.rs 0 17 0.0%
integration-tests/src/load_test.rs 0 95 0.0%
Files with Coverage Reduction New Missed Lines %
crates/tap-agent/src/agent/sender_account.rs 1 77.25%
integration-tests/src/main.rs 1 0.0%
integration-tests/src/rav_tests.rs 1 0.0%
Totals Coverage Status
Change from base Build 15033192265: -0.7%
Covered Lines: 8808
Relevant Lines: 12174

💛 - Coveralls

@neithanmo neithanmo merged commit ddda0c3 into main May 19, 2025
10 checks passed
@neithanmo neithanmo deleted the feat/load_test branch May 19, 2025 15:31
Copy link
Collaborator

@TypeLevelConsoli TypeLevelConsoli left a comment

Choose a reason for hiding this comment

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

this is great! I just left a note about a dependency we can remove :)

rand.workspace = true

indexer-receipt = { path = "../crates/indexer-receipt" }
num_cpus = "1.16.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't need num_cpus anymore, Rust has std::thread::available_parallelism since 1.59
One less dependency :)

Comment on lines +49 to +50
let concurrency = num_cpus::get();
receipt_handler_load_test(num_receipts, concurrency).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
let concurrency = num_cpus::get();
receipt_handler_load_test(num_receipts, concurrency).await?;
let parallelism = std::thread::available_parallelism().expect("unable to get available parallelism").get();
receipt_handler_load_test(num_receipts, parallelism).await?;

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.

4 participants