Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: append export AWS_ENDPOINT_URL_DEADLINE at end of worker SSM commands #141

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

YutongLi291
Copy link
Contributor

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.

@YutongLi291 YutongLi291 requested a review from a team as a code owner August 14, 2024 00:40
…mands

Signed-off-by: Yutong Li <52769999+YutongLi291@users.noreply.github.com>
Copy link

sonarcloud bot commented Aug 14, 2024

Copy link
Contributor

@ddneilson ddneilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@ddneilson ddneilson merged commit cfec139 into aws-deadline:mainline Aug 14, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants