-
Notifications
You must be signed in to change notification settings - Fork 17
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
Refactor Build_log
module
#98
Conversation
672db73
to
b474c10
Compare
Starting to review this PR, thanks @MisterDA ! I added a test for a very simple spec file that fails on ZFS (so I presume windows too iiuc) with the expected failure and the spec file -- now I'll look through the code to see why it's not working :)) EDIT: As the original comment points out, this PR currently does not have the fix so the failure is expected, my bad :)) |
Build_log
file descriptors just after sandbox finishesBuild_log
module
Changed the PR just to refactor the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just 2 small fixes on the pattern matches.
Applied, thanks. |
Sorry, I closed #90 by mistake.
On Windows, one cannot move a directory if it has files opened inside. A similar case occurs with ZFS. Ensure that all
Build_log
file descriptors are closed before promoting the temporary build directory and the log file it contains as definitive build result.We can either ensure that all tailers have finished reading before closing the log file and moving the directory, or pause the tailers and resume reading from the moved log file.
I'm still
strugglingworking on it, it's not easy, I think I always end up in some sort of deadlock where the tailers and theDb_store
layer are waiting on each other reciprocally.There's just a little refactoring before my attempt (that I haven't pushed yet).