From a8a8b743f3638a3d73b327af49762320239c7ff5 Mon Sep 17 00:00:00 2001 From: kireto Date: Mon, 3 Aug 2026 21:51:43 +0000 Subject: [PATCH] DEVX-147: fix: increase CI_SCALE_FACTOR default from 4 to 6 Co-authored-by: kireto --- src/devx/tools/check_test_speed.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/devx/tools/check_test_speed.py b/src/devx/tools/check_test_speed.py index b9307e0..def4323 100644 --- a/src/devx/tools/check_test_speed.py +++ b/src/devx/tools/check_test_speed.py @@ -14,11 +14,11 @@ total wall-clock time and individual test durations are parsed and validated. CI runner scaling ----------------- -CI runners (Gitea Actions Docker containers) are typically 3-4x slower than +CI runners (Gitea Actions Docker containers) are typically 5-8x slower than local development machines due to shared CPU, fewer cores, and container overhead. When the ``CI`` environment variable is set (standard CI convention), both the total and per-test limits are multiplied by -``CI_SCALE_FACTOR`` (default 4) to account for this. This keeps the local +``CI_SCALE_FACTOR`` (default 6) to account for this. This keeps the local budget strict while preventing false failures on slower CI runners. The scale factor can be overridden via the ``DEVX_CI_SCALE_FACTOR`` @@ -39,10 +39,10 @@ DEFAULT_MAX_SECONDS = 10.0 DEFAULT_MAX_SINGLE_SECONDS = 0.5 TEST_COMMAND = ["make", "test-unit"] -# CI runners are typically 3-4x slower than local machines (shared CPU, +# CI runners are typically 5-8x slower than local machines (shared CPU, # fewer cores, container overhead). Scale limits up when running on CI # so the gate catches real regressions, not infrastructure slowness. -CI_SCALE_FACTOR = float(os.environ.get("DEVX_CI_SCALE_FACTOR", "4")) +CI_SCALE_FACTOR = float(os.environ.get("DEVX_CI_SCALE_FACTOR", "6")) _IS_CI = bool(os.environ.get("CI") or os.environ.get("GITEA_ACTIONS")) # Matches pytest summary line: "234 passed in 0.70s"