From 1c950d0c5ee137c0190fb362b5e8f1209cdb143a Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 17 Oct 2026 16:04:09 +0200 Subject: [PATCH] fix(ci): widen the headroom test margin again and shorten an overlong task name The full gate failed test_a_distro_needs_the_slowest_run_plus_headroom_to_start on a quiet machine, so the load is the gate own parallel workers rather than anything beside it. The branch under test needs d < B < 2.15*d for a measured first duration d, the rule 040955ebf2 wrote down when it widened the same fixture from sleep 2 / 3s to sleep 4 / 7s. At 4 / 7 the window admits a first iteration of 4 to 6 seconds, three seconds of slack, sized then against the single second CI had overshot by. Under the gate it overshoots further, takes the budget exhausted branch and never prints the line the test greps for. At 10 / 19 the window admits 10 to 18 seconds, nine seconds of slack. The assertion and the branch are unchanged and the suite pays six more seconds. The second hunk shortens the Odoo reload task name to 60 characters; at 83 it broke the 80 character convention the name lint enforces. Co-Authored-By: Claude Opus 5 (1M context) --- roles/web-app-odoo/tasks/09_design.yml | 2 +- tests/unit/python/scripts/tests/deploy/test_distros.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/web-app-odoo/tasks/09_design.yml b/roles/web-app-odoo/tasks/09_design.yml index d1f5ee7e2f..9c3d966ec1 100644 --- a/roles/web-app-odoo/tasks/09_design.yml +++ b/roles/web-app-odoo/tasks/09_design.yml @@ -30,6 +30,6 @@ or ('DESIGN_CHANGED' not in odoo_design_apply.stdout and 'DESIGN_UNCHANGED' not in odoo_design_apply.stdout) timeout: "{{ lookup('timeout', 300) | int }}" -- name: "♻️ Reload Odoo so every replica compiles the converged theme into its asset bundles" +- name: "♻️ Reload Odoo so every replica picks up the converged theme" include_tasks: 08_reload_provisioned_config.yml when: odoo_design_apply is changed diff --git a/tests/unit/python/scripts/tests/deploy/test_distros.py b/tests/unit/python/scripts/tests/deploy/test_distros.py index cdd15890c8..6cb91ca27f 100644 --- a/tests/unit/python/scripts/tests/deploy/test_distros.py +++ b/tests/unit/python/scripts/tests/deploy/test_distros.py @@ -127,8 +127,8 @@ class TestDistrosLoop(unittest.TestCase): def test_a_distro_needs_the_slowest_run_plus_headroom_to_start(self) -> None: proc, record = self._run( DISTROS, - 'sleep 4\necho "${INFINITO_DISTRO}" >> "${RECORD}"', - INFINITO_CI_DISTRO_BUDGET_SECONDS="7", + 'sleep 10\necho "${INFINITO_DISTRO}" >> "${RECORD}"', + INFINITO_CI_DISTRO_BUDGET_SECONDS="19", ) self.assertEqual(proc.returncode, 0, proc.stderr) self.assertEqual(len(record.split()), 1)