DEVX-147: fix: increase CI_SCALE_FACTOR default from 4 to 6

Co-authored-by: kireto <kireto@oblachno.com>
This commit is contained in:
2026-08-03 21:51:43 +00:00
committed by emo
parent a487bddb09
commit a8a8b743f3
+4 -4
View File
@@ -14,11 +14,11 @@ total wall-clock time and individual test durations are parsed and validated.
CI runner scaling 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 local development machines due to shared CPU, fewer cores, and container
overhead. When the ``CI`` environment variable is set (standard CI overhead. When the ``CI`` environment variable is set (standard CI
convention), both the total and per-test limits are multiplied by 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. budget strict while preventing false failures on slower CI runners.
The scale factor can be overridden via the ``DEVX_CI_SCALE_FACTOR`` 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 DEFAULT_MAX_SINGLE_SECONDS = 0.5
TEST_COMMAND = ["make", "test-unit"] 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 # fewer cores, container overhead). Scale limits up when running on CI
# so the gate catches real regressions, not infrastructure slowness. # 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")) _IS_CI = bool(os.environ.get("CI") or os.environ.get("GITEA_ACTIONS"))
# Matches pytest summary line: "234 passed in 0.70s" # Matches pytest summary line: "234 passed in 0.70s"