test(test-e2e-playwright): prove scheduler concurrency from the trace, not the wall clock

Gate pass 2 on store-i18n 9154a03fed failed test_jobs_run_concurrently_within_the_cap_and_keep_their_own_results at 2.7046 s against a 2.7 s bound: five interpreter starts under full host load. The peak of 2 read from the job trace already proves the overlap and the cap independent of load, and test_a_freed_slot_is_refilled_without_waiting_a_poll covers prompt refills, so the wall-clock bound goes.

🎯 Fix: 95 %
💥 Break: 1 %
💸 Cost: –
⏱️ Time: –
🛡️ Security: 100 %
🏆 Score: 94
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-11-05 17:23:36 +00:00
1 parent 9154a03fed
commit eb6940a9ad
1 file changed
-3
@@ -372,11 +372,8 @@ class TestRun(unittest.TestCase):
for index, name in enumerate(["a", "b", "c", "d"], start=1):
self._job(index, name, 0.6, rc=1 if name == "b" else 0, after=["head"])
(self.jobs / rp.SEALED).touch()
began = time.monotonic()
self.assertEqual(self._run(2), 0)
elapsed = time.monotonic() - began
self.assertEqual(self._peak(), 2)
self.assertLess(elapsed, 0.3 + 4 * 0.6)
self.assertEqual(self._result("b")["rc"], 1)
for name in ("head", "a", "c", "d"):
self.assertEqual(self._result(name)["rc"], 0)