Date: Thu, 25 Jun 2015 15:52:59 -0400 From: Allan Jude <allanjude@freebsd.org> To: freebsd-testing@freebsd.org Subject: Re: Requests for Help: add FreeBSD procstat support to akuma library for Jenkins Message-ID: <558C5C1B.8080507@freebsd.org> In-Reply-To: <8CA148D7-81AF-41F8-AA41-9D7700B27242@neville-neil.com> References: <CAG=rPVc=L9pOuXD5KSLtbPA=X=wOhBbFbHgQy%2BZVjCLU6Z6wVQ@mail.gmail.com> <8CA148D7-81AF-41F8-AA41-9D7700B27242@neville-neil.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 2015-06-25 15:49, George Neville-Neil wrote: > > > On 18 Jun 2015, at 11:05, Craig Rodrigues wrote: > >> Hi, >> >> When setting up Jenkins, if you install new plugins, there >> is a checkbox: >> >> Restart Jenkins when installation is complete and no jobs are running >> >> This checkbox allows you to restart Jenkins automatically when new >> plugins are installed. This feature works on OS X, Linux, and Solaris, >> but not FreeBSD. >> >> I tracked down the problem on FreeBSD. It turns out in this file >> in the Jenkins core Jenkins: >> https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson/lifecycle/UnixLifecycle.java >> >> >> the akuma library ( https://github.com/kohsuke/akuma/ ) is used >> to figure out what command-line arguments >> were passed to the Java VM that is running Jenkins. >> This allows Jenkins to restart the VM with the same command-line >> arguments. >> >> The akuma library has platform specific code for >> OS X, Linux, and Solaris, but not FreeBSD. >> >> I am a bit overstretched with multiple things at this point. >> I was wondering if someone with Java coding experience can help >> with the following. >> >> (1) Take the akuma library from https://github.com/kohsuke/akuma/ >> >> (2) Implement FreeBSD support in akuma, by having it execute >> "procstat -c" to figure out the command-line arguments for a process. >> >> (3) Make sure that all tests in akuma pass >> >> (4) Send a GitHub pull request to incorporate the change upstream. >> >> > I do not code in Java but also didnt' see a followup to this. Has anyone > taken it upon themselves to fix this problem? If so, please speak up. > > Best, > George > _______________________________________________ > freebsd-testing@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-testing > To unsubscribe, send any mail to "freebsd-testing-unsubscribe@freebsd.org" I have looked into it, although the problem I foresee is that procstat -k doesn't separate the different argv values with \0, but with just a space. So it won't properly handle quoted arguments. My interest in this was mainly based on my patch to libxo procstat, and how it could solve the above problem. I am not sure how useful that ends up being, since it would rely on a feature which isn't in any release of FreeBSD yet. It is infact still waiting on a reviewer to get committed. -- Allan Jude [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJVjFwjAAoJEBmVNT4SmAt+G1kP/jz/Qwj2aJ4gcEKQ8IJEs8Un +eQJiYUKjqp+j+ueDa0fhB7fP37g2YWqSMgo3Ji0ntUXKpe/I/qAXdkZYwavdfLK tSQUrOtwC5v7ZTpfkiFe9tytHKXr9iP05WOlM3l0R7mNmbSK3Lsy/AB7YyDm5Rhi /xYbqUEA9C8hlvmvF2JJ4vCu2Vn0AlRz1BKA+8TT0n9M8CBsRFb4W0UQPs1xQZ2d CwDS6symm/ynSf7IrpvrEqXQdnVkNFYX+4Se9dKF59GrokhSI7Vb0+T7tzq0RcO4 FVvqNuwscEwLPGiUJpiZN1ZWVzzb3BWc5+Q9ql/pKdT/FYWw4lqfbhVkAgxcd13F KxTjEIw61jBXF/lOVBGgJbPBKcOP5FxS4KSgpcgo67zuB7i5xeSLnmfprpHEZWwm tiYP9Y+OUynqaG+IKsyUPSnCXFyrC/kg7ht1JHOI91XJ/82Rbkd1lK78COm8kZjM UpXtPwvlt8bmd3ZARc/4FRtLGnEXPDLYM4WoBrEGJ+MhV1fSO8oRB3wSmFKg0PFQ bCCZe7xx4t6aXB1NEgnQmBNuOvGiJBVo2IkXMZI4SXk4q36ZSN+eBeAYSLrLiI4m 3LKgLcsrotEw4unvGZqbIZUpb3aFiqr/YfihjRLU3Gf323Hc64HJZ8rY7Yw7ztFX y4UZYejsPf9vlHrUZt0z =X3o6 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?558C5C1B.8080507>
