aws-deadline / deadline-cloud-test-fixtures

This package contains pytest fixtures that are used to test AWS Deadline Cloud Python packages
Apache License 2.0
9 stars 13 forks source link

fix: increase timeout for fleet creation #43

Closed jericht closed 10 months ago

jericht commented 10 months ago

What was the problem/requirement? (What/Why)

The Worker Agent integration tests failed to setup due to timeouts when waiting for fleet status to become ACTIVE after creating it.

What was the solution? (How)

Use the boto waiter for fleet creation instead of rolling our own poller.

What is the impact of this change?

Worker Agent integration tests should be able to get passed fleet setup again.

How was this change tested?

Creating a fleet using this package in a Python shell:

>>> fleet = deadline.Fleet.create(client=client, display_name="test-fleet", farm=farm, configuration={"customerManaged": { "mode": "NO_SCALING", "workerRequirements": { "vCpuCount": {"min":1}, "memoryMiB": {"min": 1024}, "osFamily": "linux", "cpuArchitectureType": "x86_64"}}}, max_worker_count=1, role_arn="<my_role>")
>>> fleet.id
'fleet-531fd8d9bb7a405db488d16b35682444'
>>> client.get_fleet(farmId=farm.id, fleetId=fleet.id)["status"]
'ACTIVE'

Was this change documented?

N/A

Is this a breaking change?

No