Skip to content

Conversation

@vbrown608
Copy link
Contributor

@vbrown608 vbrown608 commented May 12, 2020

Buildbot can panic with an error like this: humio link

We're attempting to stat a filepath in this code, but only checking for one error case: that the file wasn't found.

I'm guessing we're hitting permission denied because the user provided a path outside the working directory (https://golang.org/pkg/os/#IsPermission)

I think it would be nice to warn if we're ignoring some path because of an error, but we don't have access to a logger here and returning early with the error would cause us to fail builds that could have proceeded with some other path.

Fixes https://github.com/netlify/buildbot/issues/742

@vbrown608 vbrown608 added the type: bug code to address defects in shipped code label May 12, 2020
@vbrown608 vbrown608 requested review from a team, Benaiah and mheffner May 12, 2020 23:14
Copy link
Contributor

@mheffner mheffner 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, yeah would be great to provide more error handling/notification in the future.

@vbrown608 vbrown608 merged commit c6df7b5 into master May 13, 2020
@vbrown608 vbrown608 deleted the buildbot-742-fix-ntoml-panic branch May 13, 2020 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug code to address defects in shipped code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants