aws-deadline / deadline-cloud-worker-agent

The AWS Deadline Cloud worker agent can be used to run a worker in an AWS Deadline Cloud fleet.
Apache License 2.0
15 stars 21 forks source link

test: fixed failed session action test race condition #415

Closed moorec-aws closed 2 months ago

moorec-aws commented 2 months ago

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

There is a race condition where a job can complete and the exitenv action has not been run yet which can result in an unexpected session action status.

What was the solution? (How)

Poll the session action status until it is the expected FAILED state.

What is the impact of this change?

resolves inconsistent results of the failed session action test

How was this change tested?

hatch run e2e-test

Was this change documented?

No

Is this a breaking change?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud