generated from john/python-template
Co-authored-by: Copilot App <[email protected]>
This commit is contained in:
co-authored by
Copilot App
parent
e5410708e4
commit
6c3eac0a44
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user