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

Add Version info to ServerAd #1753

Merged
merged 8 commits into from
Dec 11, 2024

Conversation

patrickbrophy
Copy link
Collaborator

This PR addresses issue #1725. This PR adds a version field to the server ad. The goal is use this version field in the future for monitoring purposes.

@patrickbrophy patrickbrophy added the enhancement New feature or request label Nov 18, 2024
@patrickbrophy patrickbrophy linked an issue Nov 18, 2024 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@turetske turetske left a comment

Choose a reason for hiding this comment

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

Two things.

1.) If the adV2 that the director gets from the origin/cache doesn't contain a version (so from anything older than this commit), we still want to be able to get the version. I know I said we'd discuss it later, but I think it's better as part of this PR, in hindsight. So in that case, get the version from the 'User-Agent' string.

2.) Write a unit test to ensure it gets the version properly in either case.

director/director_test.go Show resolved Hide resolved
Copy link
Collaborator

@turetske turetske left a comment

Choose a reason for hiding this comment

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

Looks good to me, I'll merge once the tests have passed.

@patrickbrophy patrickbrophy merged commit ac41f77 into PelicanPlatform:main Dec 11, 2024
22 checks passed
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.

Add version information to the ServerAd structure
2 participants