Skip to content

Refactor Existing k6 Tests to Measure Accurately #1957

@ata-nas

Description

@ata-nas

Story Form

As a Block Node Engineer
I want to have sane k6 tests, which accurately reflect important for me metrics
So that I can know if performance suddenly changes

Technical Notes

DEPENDS ON: #1878

  • currently, tests that are written for k6 include multiple method calls
    • this by itself is not problematic
  • we have found out, however, that the grpc module of k6 is very limited, and unfortunately, as of today, it appears we will not be able to create custom metrics
    • custom metrics are needed so that we know for sure what we are measuring and if multiple calls of different methods are made, we can differentiate them and only look at what interest us
  • in order to achieve an e2e test for example, we will need to make a test for publisher only and then for subscriber only, to work around the limitations
  • the simulator could be utilized to feed data to the BN and then tests could only focus on a single method call for the tests to be accurate
  • the main purpose of the k6 tests is to give us averages and not exact performance, we have to be able to quickly detect severe performance degradation based on current changes and know that our current changes have caused it

Metadata

Metadata

Assignees

Labels

Block NodeIssues/PR related to the Block Node.Testsissue related to enhancing the tests

Projects

Status

🛠 Tasks In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions