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

(FACT-3441) improve reliability of uname resolver #2620

Merged

Conversation

jonathannewman
Copy link
Contributor

In the case that the uname command fails to return expected content, this adds validation to the output looking for both an empty result, or missing results.

Logging is added to help identify the condition.

@jonathannewman jonathannewman requested a review from a team as a code owner October 4, 2023 16:56
@jonathannewman jonathannewman force-pushed the maint/main/dont-deref-nil branch from 65a9c17 to 3e50ce2 Compare October 4, 2023 17:13
@jonathannewman
Copy link
Contributor Author

Note that in testing, we are seeing occasional failures with puppetserver failing to start because of nil dereferences related to this code.

@joshcooper
Copy link
Contributor

Sorry @jonathannewman I forgot about this. Could you file a JIRA and update the commit summary to reference that?

@jonathannewman jonathannewman force-pushed the maint/main/dont-deref-nil branch from 3e50ce2 to dbf8ff3 Compare October 19, 2023 14:44
@jonathannewman jonathannewman changed the title (maint) improve reliability of uname resolver (FACT-3441) improve reliability of uname resolver Oct 19, 2023
@jonathannewman
Copy link
Contributor Author

@joshcooper done!

@jonathannewman jonathannewman force-pushed the maint/main/dont-deref-nil branch from dbf8ff3 to 61f18e6 Compare October 19, 2023 17:57
@joshcooper
Copy link
Contributor

@jonathannewman could you rebase to pick up this change #2625?

In the case that the uname command fails to return expected content,
this adds validation to the output looking for both an empty result,
or missing results.

Logging is added to help identify the condition.
@jonathannewman jonathannewman force-pushed the maint/main/dont-deref-nil branch from 61f18e6 to 25edad7 Compare October 24, 2023 18:42
@jonathannewman
Copy link
Contributor Author

Sorry @joshcooper didn't see your ping. rebased.

@mhashizume
Copy link
Contributor

Thanks for this @jonathannewman !

@mhashizume mhashizume merged commit af386f9 into puppetlabs:main Oct 26, 2023
18 checks passed
@jonathannewman jonathannewman deleted the maint/main/dont-deref-nil branch October 27, 2023 23:28
@joshcooper joshcooper added the bug Something isn't working label Nov 15, 2023
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