Skip to content

Commit 27fc9ed

Browse files
committed
test: drop _ab suffix from performance tests
There is nothing that makes these tests specifically "ab" - any test can be run as an A/B-test as long as it produces more than one data point for a metric. So drop this suffix. It was only added originally when we transitioned to A/B-testing and the A/B-capable versions of the tests had to co-exist with the old baseline version of the tests in separate files. Signed-off-by: Patrick Roy <[email protected]>
1 parent 6f89a17 commit 27fc9ed

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.buildkite/pipeline_perf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,41 @@
1818
perf_test = {
1919
"virtio-block-sync": {
2020
"label": "💿 Virtio Sync Block Performance",
21-
"tests": "integration_tests/performance/test_block_ab.py::test_block_performance -k 'not Async'",
21+
"tests": "integration_tests/performance/test_block.py::test_block_performance -k 'not Async'",
2222
"devtool_opts": "-c 1-10 -m 0",
2323
},
2424
"virtio-block-async": {
2525
"label": "💿 Virtio Async Block Performance",
26-
"tests": "integration_tests/performance/test_block_ab.py::test_block_performance -k Async",
26+
"tests": "integration_tests/performance/test_block.py::test_block_performance -k Async",
2727
"devtool_opts": "-c 1-10 -m 0",
2828
},
2929
"vhost-user-block": {
3030
"label": "💿 vhost-user Block Performance",
31-
"tests": "integration_tests/performance/test_block_ab.py::test_block_vhost_user_performance",
31+
"tests": "integration_tests/performance/test_block.py::test_block_vhost_user_performance",
3232
"devtool_opts": "-c 1-10 -m 0",
3333
"ab_opts": "--noise-threshold 0.1",
3434
},
3535
"network": {
3636
"label": "📠 Network Latency and Throughput",
37-
"tests": "integration_tests/performance/test_network_ab.py",
37+
"tests": "integration_tests/performance/test_network.py",
3838
"devtool_opts": "-c 1-10 -m 0",
3939
# Triggers if delta is > 0.01ms (10µs) or default relative threshold (5%)
4040
# only relevant for latency test, throughput test will always be magnitudes above this anyway
4141
"ab_opts": "--absolute-strength 0.010",
4242
},
4343
"snapshot-latency": {
4444
"label": "📸 Snapshot Latency",
45-
"tests": "integration_tests/performance/test_snapshot_ab.py::test_restore_latency integration_tests/performance/test_snapshot_ab.py::test_post_restore_latency integration_tests/performance/test_snapshot_ab.py::test_snapshot_create_latency",
45+
"tests": "integration_tests/performance/test_snapshot.py::test_restore_latency integration_tests/performance/test_snapshot.py::test_post_restore_latency integration_tests/performance/test_snapshot.py::test_snapshot_create_latency",
4646
"devtool_opts": "-c 1-12 -m 0",
4747
},
4848
"population-latency": {
4949
"label": "📸 Memory Population Latency",
50-
"tests": "integration_tests/performance/test_snapshot_ab.py::test_population_latency",
50+
"tests": "integration_tests/performance/test_snapshot.py::test_population_latency",
5151
"devtool_opts": "-c 1-12 -m 0",
5252
},
5353
"vsock-throughput": {
5454
"label": "🧦 Vsock Throughput",
55-
"tests": "integration_tests/performance/test_vsock_ab.py",
55+
"tests": "integration_tests/performance/test_vsock.py",
5656
"devtool_opts": "-c 1-10 -m 0",
5757
},
5858
"memory-overhead": {

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ BUILDKITE_PULL_REQUEST=true BUILDKITE_PULL_REQUEST_BASE_BRANCH=main ./tools/devt
162162
Firecracker has a special framework for orchestrating long-running A/B-tests
163163
which run outside the pre-PR CI. Instead, these tests are scheduled to run
164164
post-merge. Specific tests, such as our
165-
[snapshot restore latency tests](integration_tests/performance/test_snapshot_ab.py)
165+
[snapshot restore latency tests](integration_tests/performance/test_snapshot.py)
166166
contain no assertions themselves, but rather they emit data series using the
167167
`aws_embedded_metrics` library. When executed by the
168168
[`tools/ab_test.py`](../tools/ab_test.py) orchestration script, these data
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)