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

Improve logging for Computer.getLogDir failures #4226

Merged
merged 1 commit into from
Sep 27, 2019

Conversation

jglick
Copy link
Member

@jglick jglick commented Sep 25, 2019

I saw a flake of jenkinsci/kubernetes-plugin#503 with a one-line error

Failed to create agent log directory /…/target/tmp/j h4252863025719703833/logs/slaves/null

Now the null nodeName looks wrong, but even still it should have been able to create a directory of that name. The File.mkdirs call does not tell us why it failed. Nor does the log message indicate what code was calling getLogDir, which may be relevant.

Proposed changelog entries

  • Better diagnostics in a failure message from Computer.getLogDir.

@oleg-nenashev oleg-nenashev added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Sep 26, 2019
@oleg-nenashev oleg-nenashev changed the title Better logging for Computer.getLogDir failures Improve logging for Computer.getLogDir failures Sep 26, 2019
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

I plan to merge it tomorrow if no negative feedback

@oleg-nenashev oleg-nenashev added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Sep 26, 2019
@oleg-nenashev oleg-nenashev merged commit dd047e5 into jenkinsci:master Sep 27, 2019
@jglick jglick deleted the Computer.getLogDir branch September 27, 2019 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants