From 7cbb2ff7d3b3187b91109b34adbaf110a8a54039 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 24 Nov 2026 08:50:50 +0000 Subject: [PATCH] fix(tests): drop the timing-dependent exit code from the masker settle negative control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The negative control that settles before the container is gone expected the broken masker to exit 0. Its fake container keeps writing into the staged reports dir, so a masker descheduled inside the staged dir deletion leaves the dir behind and exits 70 although it already published the reports. That made the test flaky under load ('masker 70' != 'masker 0' on PR 2756 Workspace centos:stream10). A forced pause in that deletion reproduces 'masker 70' with 'published masked' 10 of 10 times. The published state alone separates the broken masker from the real one, whose positive test expects 'published none'. 🎯 Fix: 90 % 💥 Break: 2 % 💸 Tokens: 100 % ⏱️ Velocity: 100 % 🛡️ Security: 100 % 🏆 Score: 88 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 --- .../roles/test-e2e-playwright/test_spec_secrets_masking.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/unit/python/roles/test-e2e-playwright/test_spec_secrets_masking.py b/tests/unit/python/roles/test-e2e-playwright/test_spec_secrets_masking.py index 49dad241ef..4f09e5e068 100644 --- a/tests/unit/python/roles/test-e2e-playwright/test_spec_secrets_masking.py +++ b/tests/unit/python/roles/test-e2e-playwright/test_spec_secrets_masking.py @@ -495,7 +495,6 @@ class TestSpecSecretsMaskingNegativeControls(unittest.TestCase): for broken in (settling, (PROOF, "True")): with self.subTest(old=broken[0]): found = detached_run(True, broken) - self.assertEqual(found[0], "masker 0") self.assertNotEqual(found[1], "published none") def test_a_masker_that_publishes_or_keeps_unmasked_reports_is_caught(