Bug 10376

Summary: patchtest: deploy patchtest on server
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: PatchtestAssignee: Michael Halstead <mhalstead>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: benjamin.esquivel, bluelightning, eduard.bartosh
Version: 2.3   
Target Milestone: 2.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 10877    
Bug Blocks:    

Description Leonardo Sandoval Gonzalez 2016-10-04 21:23:51 UTC
Once dependencies are solved, patchtest should be deployed on a server so it starts monitoring community patches.

README file has all instructions for setting up the server with patchtest and patchtest-oe. Because patchtest execution is expected to be an automated process, the section 'Host installation & guest execution' must be used this time. Once this step is done, a new cronjob must be scheduled (the frequency needs to be defined) calling the script scripts/pt-cronjob with correct parameter.
Comment 1 Leonardo Sandoval Gonzalez 2016-10-26 21:31:06 UTC
Michael,
Currently tool is running locally (not in a YP server) and using some beta users. I let you know when the tool is ready to be deployed.
Comment 2 Ross Burton 2016-11-08 10:23:00 UTC
*** Bug 10620 has been marked as a duplicate of this bug. ***
Comment 3 Ross Burton 2016-11-08 13:16:29 UTC
*** Bug 10620 has been marked as a duplicate of this bug. ***
Comment 4 Leonardo Sandoval Gonzalez 2016-11-30 17:34:16 UTC
Michael, patchtest can be now be deployed at one of the LF servers. Full documentation is located at patchtest repo, under the doc folder.
Comment 5 Leonardo Sandoval Gonzalez 2017-01-04 18:10:21 UTC
Michael,

last weeks I worked on some  scripts and documentation that easier patchtest deployment on a server (all this work under the patchtest repo, so please pull). Jose and myself will be working on resolving 10877 as soon as possible but in the mean time you may start with this one **except** running the cronjob (I am running the latter in my laptop and just sending to beta users). All documentation is now in just one file (usage.adoc) so follow that one.
Comment 6 Michael Halstead 2017-02-01 21:49:43 UTC
Server deployment complete. Thank you Leonardo for the excellent hand-off.
Comment 7 Leonardo Sandoval Gonzalez 2017-02-02 15:40:30 UTC
(In reply to comment #6)
> Server deployment complete. Thank you Leonardo for the excellent hand-off.

Michael, can you check the cron is running correctly? there are some untested series on patchwork (series > 5107 have been untested)
Comment 8 Michael Halstead 2017-02-02 19:04:23 UTC
It was stuck at a sudo prompt. It's passing that now.
Comment 9 Leonardo Sandoval Gonzalez 2017-02-03 15:20:57 UTC
Michael,

seems that just one run of the cronjob executed, but currently it is not working. Reopening the bug so we can fix it today.
Comment 10 Michael Halstead 2017-02-03 22:32:40 UTC
The network interface creation was failing due to requiretty in the default sudo settings. I've disabled this for the patchtest user. Cron runs appear to be working.
Comment 11 Leonardo Sandoval Gonzalez 2017-02-09 16:03:38 UTC
Cron is working as expected.