-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 process package and introduce ProcessManager{} with tests #75
Conversation
if timeout == -1 { | ||
timeout = DEFAULT | ||
timeout = DefaultTimeout |
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 set the default within the exec function?
This is ready to merge. |
|
||
// Add a process to the ProcessManager and returns its PID. | ||
func (pm *Manager) Add(description string, cmd *exec.Cmd) int64 { | ||
pid := pm.counter + 1 |
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.
Should this line put after the lock line?
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.
^
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.
Not necessarily. But probably better.
@metalmatze travis is failing. |
Travis fails because there's no openssh-client on travis. I think I'll leave this for now, until we're drone only. Then this will pass. |
@metalmatze did you try adding |
This PR is waiting until drone is ready. @tboerger |
Drone PR is #96 |
what's the block? |
I have dropped the blocked panel |
So this only needed to rebase |
Yes, and @metalmatze said that he will finish it this weekend |
Do we want to move it to 1.1 @metalmatze? |
I just move this to 1.1 and if @metalmatze back and 1.0 is not released yet, please move it back. |
Please rebase and we can review continue. |
@metalmatze can you finish that and resolve the conflicts? |
Yes I want to, but currently at 33C3 there's to less time. I'll try to rebase and finish on the weekend. |
Ok. Instead of rebasing I've now copied over my changes in |
Is this ready for review again? |
I guess. I fixed all the errors and rebased to the current |
|
||
// Add a process to the ProcessManager and returns its PID. | ||
func (pm *Manager) Add(description string, cmd *exec.Cmd) int64 { | ||
pid := pm.counter + 1 |
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.
^
otherwise LGTM |
LGTM |
Commit messages with superfluous empty lines on the top generate empty summaries. Trim the commit message so the summary contains something meaningful (as far as the commit message permits).
This is still WIP and other files need to be updated.
Some funcs that use this need get a ProcessManager instance passed.