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: add test that worker reports task progress and message #403

Closed YutongLi291 closed 2 months ago

YutongLi291 commented 2 months ago

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

The worker is able to report the progressPercent of a task, as well as the progressMessage, which should both be returned in the GetSessionActions API.

We should confirm that this functionality is working properly, to prevent future regressions.

What was the solution? (How)

Add a test to make sure that the progressPercent and progressMessage fields are reported as expected.

What is the impact of this change?

Better code quality in the future regarding the progressPercent and progressMessage reporting logic in the worker.

How was this change tested?

# Linux
source .e2e_linux_infra.sh
hatch run linux-e2e-test
hatch run cross-os-e2e-test

# Windows
source .e2e_windows_infra.sh
hatch run windows-e2e-test
hatch run cross-os-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