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

[JENKINS-65068] RestartableJenkinsRule: Handle NoSuchFileException thrown from FileTreeWalker #302

Merged
merged 2 commits into from Apr 27, 2021

Conversation

bitwiseman
Copy link
Contributor

@bitwiseman bitwiseman commented Apr 27, 2021

The FileTreeWalker is quite a bit less hardened that one might hope.
The visitor must handle a NoSuchFileException throw during copy, but
the visitFileFailed method must handle NoSuchFileException if thrown
by the walker.

https://issues.jenkins.io/browse/JENKINS-65068

@jtnord @olamy

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

The FileTreeWalker is quite a bit less hardened that one might hope.
The visitor must handle a NoSuchFileException throw during copy, but
the visitFileFailed method must handle NoSuchFileException if thrown
by the walker.
@bitwiseman
Copy link
Contributor Author

@jglick Merge?

@jglick jglick changed the title [JENKINS-65068] Handle NoSuchFileException thrown from FileTreeWalker [JENKINS-65068] RestartableJenkinsRule: Handle NoSuchFileException thrown from FileTreeWalker Apr 27, 2021
});
}

@Test
Copy link
Member

Choose a reason for hiding this comment

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

BTW you can use @Issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just tried, but too late.

Copy link
Member

Choose a reason for hiding this comment

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

np

@jglick jglick added the bug label Apr 27, 2021
@jglick jglick merged commit e14c168 into jenkinsci:master Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants