test: prune low-signal assertions and tighten guards
Quality Gate / gate (push) Failing after 47s

Co-authored-by: Copilot App <[email protected]>
This commit is contained in:
Jim Lancaster
2026-08-23 18:48:16 -05:00
co-authored by Copilot App
parent e5410708e4
commit 6c3eac0a44
4 changed files with 10 additions and 16 deletions
+5 -5
View File
@@ -154,8 +154,8 @@ class TestWorkflowReliability:
await session.commit()
loaded = await services.jobs.read_job(job_id=job.id, session=session)
setup_seconds = 0.40
budget_seconds = 0.20
setup_seconds = 0.25
budget_seconds = 0.15
real_build = workflows_module.build_provider_input
def _slow_build(source_arg, **kwargs):
@@ -188,9 +188,9 @@ class TestWorkflowReliability:
assert len(attempts) == 1
duration_ms = attempts[0].duration_ms
# At or just above the budget, and well clear of budget + setup.
assert duration_ms >= int(budget_seconds * 1000 * 0.9)
assert duration_ms < int((budget_seconds + setup_seconds) * 1000 * 0.9)
# At or above the timeout budget, and still well below setup + timeout.
assert duration_ms >= int(budget_seconds * 1000 * 0.7)
assert duration_ms < int((budget_seconds + setup_seconds) * 1000 * 0.75)
@pytest.mark.asyncio
async def test_attempt_metadata_persists_provider_and_processing_durations(