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: install-deadline-worker doesn't create queues persistence dir on Windows #377

Conversation

jusiskin
Copy link
Contributor

@jusiskin jusiskin commented Aug 8, 2024

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

On Linux, the install-deadline-worker command creates the <PERSISTENCE_DIR>/queues directory if it does not pre-exist.

On Windows, the install-deadline-worker command does not create the <PERSISTENCE_DIR>/queues directory.

See https://github.com/aws-deadline/deadline-cloud-worker-agent/blob/mainline/docs/state.md#persistence-directory for details on the persistence directory.

What was the solution? (How)

Add logic to the Windows install-deadline-worker implementation to create the <PERSISTENCE_DIR>/queues directory if it does not exist.

When trying to run the linting (hatch run lint) and unit tests (hatch run test) on Windows, I encountered some failures that I've included in this PR to get the tests passing.

What is the impact of this change?

The behavior of install-deadline-worker is consistent between Linux and Windows and creates the <PERSISTENCE_DIR>/queues directory if it does not exist.

How was this change tested?

Ran the modified install-deadline-worker on a Windows host and confirmed that the <PERSISTENCE_DIR>/queues directory was created as expected.

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.

@jusiskin jusiskin added the bug Something isn't working label Aug 8, 2024
@jusiskin jusiskin requested a review from a team as a code owner August 8, 2024 20:58
… Windows

Signed-off-by: Josh Usiskin <56369778+jusiskin@users.noreply.github.com>
@jusiskin jusiskin force-pushed the win_installer_create_queues_persistence_dir branch from f99aeaa to 9849a70 Compare August 9, 2024 18:23
Copy link

sonarcloud bot commented Aug 9, 2024

@jusiskin jusiskin merged commit bd40074 into aws-deadline:mainline Aug 9, 2024
15 checks passed
@jusiskin jusiskin deleted the win_installer_create_queues_persistence_dir branch August 9, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants