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: append export AWS_ENDPOINT_URL_DEADLINE at end of worker SSM commands #141

Closed YutongLi291 closed 1 month ago

YutongLi291 commented 1 month ago

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

When we spin up multiple workers, the 2nd worker and so forth always fails since in the command to install the worker agent, we runuser as a deadline-worker user that has not been created yet, trying to export an env variable.

What was the solution? (How)

Move the runuser command to the end of the commands, so the user is actually created during the worker agent install.

What is the impact of this change?

The failing worker-agent tests that use a separate worker from the main session worker should pass again

How was this change tested?

Built into worker-agent repo, and used hatch run cross-os-e2e-test to verify on Linux that it works

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