[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Carroll Chiou updated JENKINS-25503 Shell wrapper script has now been replaced by pre-compiled golang binaries (for Unix and Darwin). The binary allows the script to have its own session id and removes some polling overhead. This should increase the survivability of long-running scripts when jenkins terminates unexpectedly. This does not change the survivability of the script when the underlying environment decides to terminate processes due to things like low memory. Note: Outside of *NIX systems, the behavior is unchanged. The binary itself is ~2.5MB per binary. There are 4 pre-compiled binaries (32 and 64bit versions for unix and darwin) while the memory footprint is ~800KB heavier than the shell wrapper. Here is a high-level breakdown of the memory footprint: Original version: two wrapper shell processes that are spawned, each process between 610-640KB a single 548KB sleep process used to poll the log output file Go binary version: a single golang binary ~2560KB Jenkins / JENKINS-25503 Use setsid instead of nohup Change By: Carroll Chiou Status: In Review Fixed but Unreleased Resolution: Fixed Released As: durable-task 1.31 Add Comment
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Carroll Chiou updated JENKINS-25503 Jenkins / JENKINS-25503 Use setsid instead of nohup Change By: Carroll Chiou Status: Fixed but Unreleased Resolved Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.159068.1415403303000.13474.1571775601726%40Atlassian.JIRA.
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Jesse Glick started work on JENKINS-25503 Change By: Jesse Glick Status: Open In Progress Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.159068.1415403303000.893.1568144880867%40Atlassian.JIRA.
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Jesse Glick updated JENKINS-25503 Jenkins / JENKINS-25503 Use setsid instead of nohup Change By: Jesse Glick Status: In Progress Review Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.159068.1415403303000.896.1568144880913%40Atlassian.JIRA.
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Jesse Glick assigned an issue to Carroll Chiou Jenkins / JENKINS-25503 Use setsid instead of nohup Change By: Jesse Glick Assignee: Carroll Chiou Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.159068.1415403303000.880.1568144820336%40Atlassian.JIRA.
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Jesse Glick assigned an issue to Unassigned Jenkins / JENKINS-25503 Use setsid instead of nohup Change By: Jesse Glick Assignee: Jesse Glick Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.159068.1415403303000.13854.1562024460329%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Jesse Glick commented on JENKINS-25503 Re: Use setsid instead of nohup The advantages of Golang for this purpose are clear: small size; fast startup; static linking to minimize the chance of divergent runtime behaviors; access to platform-dependent system APIs like this one; and of course the availability of cross-compilation so we could have a Dockerized build process creating binaries for all supported platforms (whatever subset of go tool dist list) at once. There will however still be some exotic platforms not supported by Golang, such as z/OS, and probably some cases where sh is being used in a semi-POSIX environment like Cygwin that might choke on lower-level calls. So I think the current shell wrapper still needs to be available as a fallback (not sure how you decide when to use it) and given some smoke test coverage, though it could be stripped of all its advanced features like PID tracking. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Vivek Pandey updated an issue Jenkins / JENKINS-25503 Use setsid instead of nohup Change By: Vivek Pandey Labels: pipeline triaged-2018-11 Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Craig Rodrigues commented on JENKINS-25503 Re: Use setsid instead of nohup jnr-posix has a wrapper for setsid() so this might be doable in Java: https://github.com/jnr/jnr-posix/blob/master/src/main/java/jnr/posix/POSIX.java#L107 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-25503) Use setsid instead of nohup
Title: Message Title Craig Rodrigues commented on JENKINS-25503 Re: Use setsid instead of nohup Kohsuke Kawaguchi I'm still having tons of problems with durable task plugin due to this problem. I think setsid is the way to go on this. The idea to write a setsid.py wrapper in Python is intriguing. It would definitely work. My concern is that now Python becomes a core dependency for running Jenkins Pipeline. I have no problem with that because I love Python and use Python heavily in my projects. However, from a devops perspective this might be a problem because people now need to add Python to their dependencies for running Jenkins. This becomes more interesting as more Jenkins deployments are running in a dockerized type of world. Would it be possible to write a small setsid wrapper in JNA? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.