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: do not retry test jobs that are expected to fail in test_job_reports_failed_session_action #448

Closed YutongLi291 closed 1 month ago

YutongLi291 commented 1 month ago

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

test_job_reports_failed_session_action submits jobs that are expected to fail. However previously we are retrying the jobs despite them expected to fail. To save time and make the test behaviour more consistent, we should no retry them.

What was the solution? (How)

Give these test jobs that are expected to fail 0 retries.

What is the impact of this change?

Resources saved during testing, more consistent test behaviour.

How was this change tested?

# Linux
source .e2e_linux_infra.sh
hatch run e2e-test

# Windows
source .e2e_windows_infra.sh
hatch run e2e-test

The tests passed.

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 1 month 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