From owner-freebsd-testing@FreeBSD.ORG Thu Jun 18 15:05:44 2015 Return-Path: Delivered-To: freebsd-testing@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3CDF089C; Thu, 18 Jun 2015 15:05:44 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F0271A0C; Thu, 18 Jun 2015 15:05:43 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykfr66 with SMTP id r66so68358496ykf.0; Thu, 18 Jun 2015 08:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=uNox7mjNNSOCtDIpJ3G0NNYspiBe/gSwV2MfGTkVLiQ=; b=aB3NW1B+nHeZrni0wetAKE34kWRbpOmKc6aM7bwV1wKFEqbzv8rgmWYa8Tw2HSeEot K/z8XoPsjocJT8+PC9LR6yGT8iyX/z1KFUK3gsGmmKOMqj88w5dOuHlKGKIVaDe+XFTV kjkkF4o4Du1SDxqyn6CmUdEaeqOT5xT+0sfmzcLuGCShwd40Seilqva7As4j5VZIgyM0 d6hVXjMo41GnhibaivL70kObo7jSlbG9XbSVpP7kjThQi1eb9wHEpJR79C+2bySBHSpX TbKPJgOltPca4+sORMrgAhI56ODZKWT4lAy06kRdwb7t7kNesdiCdhhJ/NcYLXCW0QGr m9hg== MIME-Version: 1.0 X-Received: by 10.170.204.15 with SMTP id v15mr14062270yke.57.1434639942628; Thu, 18 Jun 2015 08:05:42 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.37.125.198 with HTTP; Thu, 18 Jun 2015 08:05:42 -0700 (PDT) Date: Thu, 18 Jun 2015 08:05:42 -0700 X-Google-Sender-Auth: dlxzGw5oxBi1rpfeDmXqrdN-0UU Message-ID: Subject: Requests for Help: add FreeBSD procstat support to akuma library for Jenkins From: Craig Rodrigues To: "freebsd-testing@freebsd.org" , "freebsd-java@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 15:05:44 -0000 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. If we can get this functionality into akuma, then we can eventually get this functionality into Jenkins itself. This will make Jenkins behave more like on Linux, and much nicer to upgrade plugins. -- Craig