From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 590C9E0096D; Wed, 6 Apr 2016 10:11:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, NUMERIC_HTTP_ADDR, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.45 listed in list.dnswl.org] * 1.2 NUMERIC_HTTP_ADDR URI: Uses a numeric IP address in URL * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C4712E0048B for ; Wed, 6 Apr 2016 10:11:34 -0700 (PDT) Received: by mail-wm0-f45.google.com with SMTP id u206so54694600wme.1 for ; Wed, 06 Apr 2016 10:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=R5X4ZJkMVGZopkP5rGl7UilgvFuljOJb+jLynPigXZI=; b=Yq9ltqUfB0y+ntiaQyeaSSFlmBNDpH+mB7wOw49JXgBU7Uiqas7bI9BEZxN6zGdgLj wzggVHrthKscbPzRzi1Yc1H9Qn6ncq1nHEGLVRHzunit+7RlKZ1QhFeBjyG3NDfmlY5t bcjoX5U+gog93k3qurnqfuQmlszmqfEywAy45hpiK/6/4A0JkbsyyqNsJclSanYb8yXs 0IJbBsSgQd2yaZwFKdmgxRikJfsbBlsrVmxQwguSsVjdJlnrBgBinS4DPzEIEguL7Et1 IzCvwvmXD60oNS+VrGl1gMnU6CfElyB8tCj1N2eALqPeq2tWIQ/63FJJwDwYuQPQiSSq do7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=R5X4ZJkMVGZopkP5rGl7UilgvFuljOJb+jLynPigXZI=; b=OjtZBUvbOj87AGUVV/3/e4aFFSkaa+51BZ3qXG+mqMGrRPt5SVqFQEoBxLTH7StRHi eJCZlfqvACb9Ns86ZcxZdiMoIN7fM7j11s48YdxoLn+dSn18l48bBnTs7Csi0dQRQTPP 6GHKl99cBznggMWu4v5Zf1kDSdDlV8+7+seQUXF8d/xaGyS1CsskCkS80BINavIfcOA4 VE1tOHRrE5QmahX3N3grBqjp3MlSXY60jADsIafGkZdIASTetRASzbX3Wucp1Gcdr1Lk VOQ5Y20NOHVcabZW5l5eUniKf22TbvIe7MPhevy07+1cTXJLe5KwTq/WmY8/zhFKVlCV W9YA== X-Gm-Message-State: AD7BkJJhtN6gvJPw2AHqprZcAmsTwWI/hZz3PP69SbW2Uo5CYzymtdz5qnM45P6umskLDM44 X-Received: by 10.28.24.80 with SMTP id 77mr24857215wmy.16.1459962693392; Wed, 06 Apr 2016 10:11:33 -0700 (PDT) Received: from [192.168.2.24] ([83.217.123.106]) by smtp.googlemail.com with ESMTPSA id v6sm25810197wmv.16.2016.04.06.10.11.32 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Apr 2016 10:11:32 -0700 (PDT) To: toaster@yoctoproject.org References: From: Michael Wood Message-ID: <57054344.4090709@intel.com> Date: Wed, 6 Apr 2016 18:11:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Subject: Re: [PATCH v9 00/42] per project build directory + build cancel + DL_DIR/SSTATE_DIR X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2016 17:11:37 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Right this has been pushed to upstream to bitbake-devel, poky and oe-core and is now in toaster-next Thanks all! Michael On 06/04/16 08:58, Ed Bartosh wrote: > Hi, > > Default build directory is not going to be used for project builds anymore. > It can be used only for command line builds. Toaster will use build-toaster- > directories for project builds. > > The patchset also contains implementation of build cancelation(#6787) and setting of > DL_DIR and SSTATE_DIR project variables. This work was done by Sujith and Michael. > > This patchset fixes the following bugs: > 7880 2.1M3 Medium+/Normal: Toaster uses the same /tmp dir across releases > 9058 2.1 Medium/Normal: Bad project MACHINE setting in conf/toaster.conf causes command line builds to fail > 8958 2.1M3 Medium/Normal: Toaster does not build with the Jethro release > 6787 2.1 Medium/Enhancement: Cancelling builds at any point in the build process > 8422 2.1 Medium/Enhancement: we currently don't allow setting of sstate_dir or dl_dir > > This is how to test this: > - run toaster > - run command line build: build zlib > - check if it's shown in Toaster UI > - create project for Yocto master > - trigger project build from UI > - wait until it succeeds > - create project for Jethro > - check that DL_DIR and SSTATE_DIR variables point to the same location for both projects > - trigger project build from UI > - wait until it succeds > - check that 2 build directories build-toaster- exist and contain > correct conf/toaster.conf and conf/bblayers.conf > - trigger any build from UI again and try to cancel it > > Changes in v2: stop bitbake server after the build > Changes in v3: fixed '/bin/sh: 1: source: not found' dash issue > used project id in build directory name > added 'INHERIT+='toaster buildhistory' to conf/local.conf on toaster start > Changes in v4: fixed builds on Ubuntu caused by dash being default shell > Changes in v5: fixed nasty bug in toasterui causing it to stuck in event loop > Changes in v6: added fix for 6787 build cancelation patchset > added fix for 8422 (DL_DIR and SSTATE_DIR) patchset > run bitbake client from sourcedir/bitbake/bin > fixed empty image data > fixed couple of crashes in buildinfohelper code > rebased on top of toaster-next@March 23rd 10:20 GMT > Changes in v7: fixed building for non-poky setup > fixed absent image package info > Changes in v8: fixed wrong status of cancelled build > reorganized migrations > rebased on top of toaster-next@Apr 4th 10:42 GMT > Changes in v9: rebased o top of toaster-next@Apr 5th 16:00 GMT after removal of > 3 patches from toaster-next > > > The following changes since commit 02ef3b5f66af8ada641cef1e2dfaff4a94ff444f: > > toaster: update the meta-yocto toaster configuration file (2016-04-05 10:04:32 +0100) > > are available in the git repository at: > > git://git.yoctoproject.org/poky-contrib ed/toaster/project-build-dir-cancel-dldir_sstatedir > http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/project-build-dir-cancel-dldir_sstatedir > > Ed Bartosh (26): > toaster: don't start bitbake server > toaster: get rid of noui option > toaster: set BITBAKE_UI environment variable > toasterui: add brbe parameter to buildinfohelper > uievent: improve BBUIEventQueue code > buildinfohelper: improve handling of providermap > toasterui: fix brbe reporting > toaster: remove startBBServer API > toaster: remove release API > toaster: add brbe parameter to triggerBuild > toaster: modified setLayers API > toaster: reimplement triggerBuild > toaster: add new parameter to _shellcmd > toaster: stop bitbake server after the build > toaster: update conf/local.conf > toaster: fix jethro build > toaster: use bash explicitly > toasterui: shutdown on BuildCompleted event > toaster: fix conflicting migrations > toaster: use empty token > toaster: add DL_DIR and SSTATE_DIR to oe toasterconf > toaster: export BBBASEDIR variable > toaster: get bitbake location from BBBASEDIR > buildinfohelper: fix KeyError > toasterui: update build in internal state > toaster: reorder migrations > > Michael Wood (9): > toaster: Move xhr calls for starting and stopping builds > toaster: xhr Update the implementation of the build cancellation > request > toaster: libtoaster Update implementation of startABuild and > cancelABuild > toaster: bldcontrol models Add a cancelling state the BuildRequest > buildinfohelper: Add handler for cancelling a build > toaster: mrb_section template Add build cancel button > toaster: models Exclude the CANCELLED builds from get_number_of_builds > toaster: runbuilds Make runbuilds aware of the build CANCELLED state > toaster: runbuilds Clean up runbuilds > > Sujith H (7): > toaster: bldcontrol Add forceShutDown function to BitbakeController > toaster: update BuildEnvironmentController and BitbakeController > toaster: models Add cancelled state to build outcome > toaster: tables BuildsTable exclude cancelled builds > toaster: add DL_DIR and SSTATE_DIR to poky toasterconf > toaster: update view to support DL_DIR and SSTATE_DIR > toaster: update projectconf.html for DL_DIR and SSTATE_DIR > > bitbake/bin/toaster | 82 ++--------- > bitbake/lib/bb/ui/buildinfohelper.py | 49 +++++-- > bitbake/lib/bb/ui/toasterui.py | 22 +-- > bitbake/lib/bb/ui/uievent.py | 10 +- > bitbake/lib/toaster/bldcontrol/bbcontroller.py | 62 +------- > .../toaster/bldcontrol/localhostbecontroller.py | 152 ++++++++++---------- > .../bldcontrol/management/commands/runbuilds.py | 109 +++++++++----- > .../migrations/0002_add_cancelling_state.py | 19 +++ > ...20160120_1250.py => 0003_auto_20160120_1250.py} | 2 +- > bitbake/lib/toaster/bldcontrol/models.py | 27 +++- > .../orm/migrations/0006_add_cancelled_state.py | 20 +++ > bitbake/lib/toaster/orm/models.py | 12 +- > bitbake/lib/toaster/toastergui/api.py | 110 ++++++++++++++ > .../toaster/toastergui/static/js/customrecipe.js | 4 +- > .../lib/toaster/toastergui/static/js/layerBtn.js | 3 +- > .../lib/toaster/toastergui/static/js/libtoaster.js | 41 ++++-- > .../lib/toaster/toastergui/static/js/mrbsection.js | 95 ++++++++++++ > .../toaster/toastergui/static/js/projectpage.js | 4 +- > .../toaster/toastergui/static/js/projecttopbar.js | 6 +- > .../toaster/toastergui/static/js/recipedetails.js | 4 +- > bitbake/lib/toaster/toastergui/tables.py | 48 +------ > bitbake/lib/toaster/toastergui/templates/base.html | 1 + > .../toaster/toastergui/templates/mrb_section.html | 148 +++++++------------ > .../toaster/toastergui/templates/projectconf.html | 160 ++++++++++++++++++++- > bitbake/lib/toaster/toastergui/urls.py | 5 + > bitbake/lib/toaster/toastergui/views.py | 40 +++++- > meta-poky/conf/toasterconf.json | 4 +- > meta/conf/toasterconf.json | 4 +- > 28 files changed, 801 insertions(+), 442 deletions(-) > create mode 100644 bitbake/lib/toaster/bldcontrol/migrations/0002_add_cancelling_state.py > rename bitbake/lib/toaster/bldcontrol/migrations/{0002_auto_20160120_1250.py => 0003_auto_20160120_1250.py} (87%) > create mode 100644 bitbake/lib/toaster/orm/migrations/0006_add_cancelled_state.py > create mode 100644 bitbake/lib/toaster/toastergui/api.py > create mode 100644 bitbake/lib/toaster/toastergui/static/js/mrbsection.js >