From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E7134139694 for ; Mon, 17 Jul 2017 15:48:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B320E0D35; Mon, 17 Jul 2017 15:48:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10773E0D35 for ; Mon, 17 Jul 2017 15:48:06 +0000 (UTC) Received: from mail-yb0-f182.google.com (mail-yb0-f182.google.com [209.85.213.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: alicef) by smtp.gentoo.org (Postfix) with ESMTPSA id C665B341785 for ; Mon, 17 Jul 2017 15:48:05 +0000 (UTC) Received: by mail-yb0-f182.google.com with SMTP id z37so1967775ybh.1 for ; Mon, 17 Jul 2017 08:48:05 -0700 (PDT) X-Gm-Message-State: AIVw113HiTT8PNPsm0CAzZwJNURiQ6uB4ApMDyMxrywitbrWI5TW6vJ9 u769MEfn1s9FRHMHN68AN7gglWd22g== X-Received: by 10.37.16.70 with SMTP id 67mr9752673ybq.29.1500306483472; Mon, 17 Jul 2017 08:48:03 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org MIME-Version: 1.0 Received: by 10.37.171.83 with HTTP; Mon, 17 Jul 2017 08:48:02 -0700 (PDT) From: Alice Ferrazzi Date: Tue, 18 Jul 2017 00:48:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: [gentoo-soc] Google Summer of Code summary week 07 To: gentoo-soc@lists.gentoo.org Cc: Gokturk Yuksek , Mike Pagano Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: af29329c-ddc4-442c-bf88-9220a60e69c0 X-Archives-Hash: 72d80e969ba4b2bad4c46af4663fb146 Summary: elivepatch: * improved code as per mentor review * fixing uuid design moved the uuid generating to the client and read rfc 4122 that states: "A UUID is 128 bits long, and requires no central registration process." * made regex function for checking the format of uuid is actually correct. * made elivepatch multi-threading kpatch-build: * Sended pull request to kpatch for adding dynamic output folder option https://github.com/dynup/kpatch/pull/718 * Sended pull request to kpatch for small style fix https://github.com/dynup/kpatch/pull/719 ----------------------------------------- day 32: `What was my plan for today?` * testing and improving elivepatch `What i did today?` client checkers: * used os.path.join for ungz function * implemented temporary folder using python tempfile `what i will do next time?` * testing and improving elivepatch ----------------------------------------- day 31: `What was my plan for today?` * testing and improving elivepatch `What i did today?` Dispatcher.py: * fixed comments * added static method for return the kernel path * Added todo * fixed how to make directory with uuid livepatch.py * fixed docstring * removed sudo on kpatch-build * fixed comments * merged ebuild commands in one on build livepatch restful.py * fixed comment `what i will do next time?` * testing and improving elivepatch ----------------------------------------- day 30: `What was my plan for today?` * testing and improving elivepatch `What i did today?` * fixing uuid design moved the uuid generating to the client and read rfc 4122 that states "A UUID is 128 bits long, and requires no central registration process." * made regex function for checking the format of uuid is actually correct. `what i will do next time?` * testing and improving elivepatch ----------------------------------------- day 29: `What was my plan for today?` * testing and improving elivepatch `What i did today?` * Refactored for code clarity [not finished yet] * Sended pull request to kpatch for adding dynamic output folder option https://github.com/dynup/kpatch/pull/718 * Sended pull request to kpatch for small style fix https://github.com/dynup/kpatch/pull/719 `what i will do next time?` * testing and improving elivepatch ----------------------------------------- day 28: `What was my plan for today?` * testing and improving elivepatch `What i did today?` * Testing elivepatch with multi threading * Removed check for uname kernel version as is getting the kernel version directly from the kernel configuration file header. * Starting kpatch-build under the output folder Because kpatch-build is making the livepatch under the $PWD folder we are starting it under the uuid tmp folder and we are getting the livepatch from the uuid folder. this is usefull for dealing with multi-threading * Added some helper function for code clarity [not finished yet] * Refactored for code clarity [not finished yet] For making elivepatch multithread we can simply change app.run() of flask with app.run(threaded=True). This will make flask spawn thread for each request (using class SocketServer.ThreadingMixIn and baseWSGIserver)1, but also if is working pretty nice, the suggested way of threading is probably using gunicorn or uWSGI.2 maybe like using flask-gunicorn: https://github.com/doobeh/flask-gunicorn `what i will do next time?` * testing and improving elivepatch [1] https://docs.python.org/2/library/socketserver.html#SocketServer.ThreadingMixIn [2] http://flask.pocoo.org/docs/0.12/deploying/ -- Thanks, Alice Ferrazzi Gentoo Kernel Project Leader Mail: Alice Ferrazzi PGP: 2E4E 0856 461C 0585 1336 F496 5621 A6B2 8638 781A