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

feat: print versions of 1st party dependencies to worker log #82

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

ddneilson
Copy link
Contributor

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

When diagnosing issues it can be useful to have the versions of the deadline and openjd-sessions packages available in the log.

What was the solution? (How)

Import the version numbers of the job attachments, model, and sessions libraries and add them to the log header that we print out at the start of the worker logs.

What is the impact of this change?

More information available in logs.

How was this change tested?

Just running the tests.

Was this change documented?

No

Is this a breaking change?

No

@ddneilson ddneilson requested a review from a team as a code owner November 7, 2023 22:02
When diagnosing issues it can be useful to have the versions of the
`deadline` and `openjd-sessions` packages available in the log. This
commit adds that information.

Signed-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>
@@ -19,6 +19,10 @@ class FakeSessionUser(SessionUser):
def __init__(self, user: str):
self.user = user

@staticmethod
def get_process_user() -> str:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Turns out that there was an API break in the -sessions module, but we didn't spot it in code review. So, we have a patch release of that module that breaks the agent tests.

@jusiskin jusiskin added the enhancement New feature or request label Nov 8, 2023
@ddneilson ddneilson merged commit b98be06 into mainline Nov 8, 2023
9 checks passed
@ddneilson ddneilson deleted the ddneilson/16670 branch November 8, 2023 15:23
gmchale79 pushed a commit that referenced this pull request Feb 12, 2024
When diagnosing issues it can be useful to have the versions of the
`deadline` and `openjd-sessions` packages available in the log. This
commit adds that information.

Signed-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>
gmchale79 pushed a commit that referenced this pull request Mar 11, 2024
When diagnosing issues it can be useful to have the versions of the
`deadline` and `openjd-sessions` packages available in the log. This
commit adds that information.

Signed-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>
Signed-off-by: Graeme McHale <gmchale@amazon.com>
jusiskin pushed a commit to jusiskin/deadline-cloud-worker-agent that referenced this pull request Sep 4, 2024
Signed-off-by: Samuel Anderson <119458760+AWS-Samuel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants