From 73cb64aad1ddb98bc29fde6fae6b0c51ca8f1868 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Sun, 9 Apr 2023 12:02:22 +0200 Subject: [PATCH] fix: update a/b tests to run --- codegen/src/abtest.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/codegen/src/abtest.rs b/codegen/src/abtest.rs index 6408e58..7d4b470 100644 --- a/codegen/src/abtest.rs +++ b/codegen/src/abtest.rs @@ -18,10 +18,7 @@ pub enum ABTest { TrendsVideoTab = 4, } -const TESTS_TO_RUN: [ABTest; 2] = [ - ABTest::AttributedTextDescription, - ABTest::ChannelHandlesInSearchResults, -]; +const TESTS_TO_RUN: [ABTest; 1] = [ABTest::TrendsVideoTab]; #[derive(Debug, Serialize, Deserialize)] pub struct ABTestRes { @@ -29,6 +26,8 @@ pub struct ABTestRes { name: ABTest, tests: usize, occurrences: usize, + vd_present: Option, + vd_absent: Option, } #[derive(Debug, Serialize)] @@ -124,12 +123,14 @@ pub async fn run_all_tests(n: usize, concurrency: usize) -> Vec { let mut results = Vec::new(); for ab in TESTS_TO_RUN { - let (occurrences, _, _) = run_test(ab, n, concurrency).await; + let (occurrences, vd_present, vd_absent) = run_test(ab, n, concurrency).await; results.push(ABTestRes { id: ab as u16, name: ab, tests: n, occurrences, + vd_present, + vd_absent, }); } results