Repository navigation
Create basic stress tests for LM and HM - #1102
MilanTripkovic02 wants to merge 1 commit into
Conversation
* Create Basic Stress Tests for LM and HM Signed-off-by: Milan Tripkovic <Milan.Tripkovic@rt-rk.com>
|
Documentation preview for this pull request is available at: |
SimonKozik
left a comment
There was a problem hiding this comment.
Maybe we should merge those test, but if not then I would try to use better names.
I'm worried a bit about that flaky tag...
| ) | ||
|
|
||
| integration_test( | ||
| name = "stress_launch", |
There was a problem hiding this comment.
I would suggest to have better folder names and test names.
For Launch Manager stress test I would use stress_test_launch_manager and stress_test_health_monitor for HM.
We could also go for a single top level folder stress_test and then have two sub folders (launch_manager and health_monitor)
This way:
counting_process.cppcould be moved to this folder.- You could run tests by calling:
bazel run //tests/integration/stress_test:launch_managerbazel run //tests/integration/stress_test:health_monitor
- You will have single
BUILDfile
| const auto start = std::chrono::steady_clock::now(); | ||
|
|
||
| const auto result = client.activate_run_target(RunTargetName{name}, true); | ||
| EXPECT_TRUE(result.has_value()) << "Activation of " << name << " failed: " << result.error().Message(); |
There was a problem hiding this comment.
Maybe we should use ASSERT_TRUE here. If you fail to put Run Target activation into the queue, then the pop_event doesn't make sense at all (the original request was not accepted).
Additionally if you fail to activate Stress Run Target, then there is no point in measuring the deactivation time.
The same comment applies to the health monitor stress test.
| ], | ||
| config = ":config.json", | ||
| tags = [ | ||
| "flaky", # Test uses heartbeat monitoring which can be flaky |
There was a problem hiding this comment.
What is meant here by this flaky tag. If this test cannot consistently pass on a CI server, then maybe we should change what we are measuring
| "//score/launch_manager:control_cc", | ||
| "//score/launch_manager:lifecycle_cc", | ||
| "//tests/utils/test_helper", | ||
| "@googletest//:gtest_main", |
There was a problem hiding this comment.
We should switch to @googletest//:gtest as we are supplying our own main function.
Created 2 integration tests:
Tested with:
bazel test --config=x86_64-qnx //tests/integration/... //examples/... //score/...
bazel test --config=x86_64-linux //tests/integration/... //examples/... //score/...
bazel test --config=arm64-qnx //tests/integration/... //examples/... //score/...
Closes #437