Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F415010422 for ; Fri, 11 Oct 2013 16:01:52 +0000 (UTC) Received: (qmail 90478 invoked by uid 500); 11 Oct 2013 16:01:52 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 90446 invoked by uid 500); 11 Oct 2013 16:01:51 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 90438 invoked by uid 99); 11 Oct 2013 16:01:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2013 16:01:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brian.leroux@gmail.com designates 209.85.223.178 as permitted sender) Received: from [209.85.223.178] (HELO mail-ie0-f178.google.com) (209.85.223.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2013 16:01:46 +0000 Received: by mail-ie0-f178.google.com with SMTP id to1so8716621ieb.37 for ; Fri, 11 Oct 2013 09:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=7/iA0xgnbg1hCo8ChMPsIK5b6xvXyi1EPVnCeiDQ/Y4=; b=HC93uzJzWHj/RrGVhZUYrhozhT3wxYT9UQg1LUJkXw4H8uYy7N/OQshdVSDWl3GUk+ 3wXZH0ZsVzsftJs+JJuBHqjGtlbZZw0WkgMDD2uUEIXTKD+SQsno/hDDFudgMJUAzy0o MCpXdLkAHel8u/GEmJLYMMwltk35c5a754lFjPJZTt1CTYAMJY0aLgjEIDcWqE93lV2X YvZFHbIxOoW34IW6zoa7fiTB5v5qQ0pcH1G3RQ5//V1tuxSdS5rIzI2l1MrgxzRpTCXE j8HPMrpkYcauJFYP9pH6UlknHMxkhmnXmpuS1aoOPg4KMp+6S08llCm8eLVmtHmpD/r2 mrZw== MIME-Version: 1.0 X-Received: by 10.50.122.102 with SMTP id lr6mr3492045igb.0.1381507285682; Fri, 11 Oct 2013 09:01:25 -0700 (PDT) Sender: brian.leroux@gmail.com Received: by 10.50.114.132 with HTTP; Fri, 11 Oct 2013 09:01:25 -0700 (PDT) In-Reply-To: References: <20a6512d686e44ccac7a789a211bbed7@BLUPR03MB263.namprd03.prod.outlook.com> <3ab30a9ffd884ae59f6ca95621285c07@BLUPR03MB263.namprd03.prod.outlook.com> Date: Fri, 11 Oct 2013 09:01:25 -0700 X-Google-Sender-Auth: T-QpDYweTrhamwpzFc6LuXUezgI Message-ID: Subject: Re: Medic status and plans From: Brian LeRoux To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=089e01538a8004957704e8793bba X-Virus-Checked: Checked by ClamAV on apache.org --089e01538a8004957704e8793bba Content-Type: text/plain; charset=ISO-8859-1 That works. Or even just tag and wipe it out, add the new bits. Either way: you should be able to commit directly very soon. =) On Fri, Oct 11, 2013 at 6:15 AM, David Kemp wrote: > Although it is not how I got to where the product is, I can fairly easily > make a buildbot branch from the exising medic repo. > > I will re-create a clean branch of the existing repo with my work. That > will then show the common history, > > David Kemp > > > > On Fri, Oct 11, 2013 at 8:12 AM, David Kemp wrote: > > > It would not be a clean merge, there are considerable differences. I > > started with medic, but many parts have been replaced. > > My repo contains many elements and structure from the original though. > > > > Because the overall project structure changed a great deal with 3.0, it > > was going to be a lot of work to rebuild and fix the git monitor, web > view > > and build administration that was in Medic. Since that was available out > of > > the box elsewhere, it made more sense to use an existing opensource tool > > for those elements. All of the deployment pieces of medic are still used, > > just as command line elements instead of being called directly. > > > > > > > > > > On Thu, Oct 10, 2013 at 6:09 PM, Lorin Beer >wrote: > > > >> and I do not believe there is any common history between the apache > medic > >> repo and David's bb-test repo > >> > >> > >> On Thu, Oct 10, 2013 at 3:07 PM, Anis KADRI > wrote: > >> > >> > You can't force push to apache :-/ > >> > > >> > On Thu, Oct 10, 2013 at 1:40 PM, Brian LeRoux wrote: > >> > > Kind of a chicken/egg problem. Will this cleanly merge or should we > >> just > >> > > force push it in? > >> > > > >> > > > >> > > On Thu, Oct 10, 2013 at 7:42 AM, David Kemp > >> wrote: > >> > > > >> > >> I'm happy to put the bb-test code into the official repo. > >> > >> I was hoping to do that soon but I do not think I am an official > >> > committer > >> > >> yet. > >> > >> > >> > >> As for USB hubs, the 2.1A one that I picked up has recently stopped > >> > working > >> > >> on the 2.1A port. > >> > >> I need to get it returned and replaced, but probably cannot > >> recommend it > >> > >> right now since the first one stopped working right after only > about > >> 3 > >> > >> weeks. When it was working it was awesome. > >> > >> > >> > >> Keeping iPads and tablets charged is definitely the hard part. > >> > >> Pretty much all the phones happily stay charged on a 500mA USB > port. > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> On Thu, Oct 10, 2013 at 10:07 AM, Mike Billau < > mike.billau@gmail.com > >> > > >> > >> wrote: > >> > >> > >> > >> > Hi Sergey, > >> > >> > > >> > >> > We have been using David's Medic++ over here without too many > >> issues. > >> > >> > (Moving the master to a linux box was key.) The setup was pretty > >> easy > >> > >> once > >> > >> > you get Buildbot installed. > >> > >> > > >> > >> > I'm not sure how much effort it would take to add Windows > platforms > >> > >> > support, but it doesn't seem like that much. I think that you > >> pretty > >> > much > >> > >> > just need to follow the examples of the other two platforms and > >> write > >> > >> > BuildBot commands (in Python) to shell out to the lower level dev > >> > tools > >> > >> to > >> > >> > create the project and deploy on your devices: > >> > >> > https://github.com/drkemp/bb-test/blob/master/master.cfg#L132 > >> > >> > > >> > >> > I think the next steps should be something like: > >> > >> > > >> > >> > 1. Set up a centralized couchDB where we can aggregate data from > >> all > >> > of > >> > >> the > >> > >> > CI instances. A few months ago I requested a VM for this purpose > >> and > >> > it > >> > >> > looks like we will get it soon: > >> > >> > https://issues.apache.org/jira/browse/INFRA-6422 > >> > >> > 2. Need a dashboard to view all of the results > >> > >> > 3. Set up reporting so that the CI actually gets used (email devs > >> who > >> > >> break > >> > >> > builds, possibly IRC bot, would be nice to have a TravisCI style > >> > badge on > >> > >> > the github pages, etc.) > >> > >> > 4. Documentation - there should at least be instructions to help > >> > others > >> > >> > quickly set up a CI and feed data back to the community (David's > >> > >> readme.md > >> > >> > ?) > >> > >> > There should also be docs about setting up the device wall, which > >> USB > >> > >> hubs > >> > >> > are the best to buy*, etc > >> > >> > > >> > >> > After those three immediate issues get resolved, I think the CI > >> will > >> > >> start > >> > >> > to really provide a lot of value to the community and the > project. > >> > After > >> > >> > that happens, we can talk about more long term goals and feature > >> > >> > enhancements. The biggest enhancement I can think of would be the > >> > ability > >> > >> > to run personal builds against the test devices and get feedback > >> > before > >> > >> > checking in code. I'm sure there are a lot of other things we can > >> do > >> > too, > >> > >> > like adding in the rest of the platforms, exercising the native > >> tests, > >> > >> > making the system more robust, etc. > >> > >> > > >> > >> > David, what do you think about pushing your bb-test branch into > the > >> > >> > cordova-medic repo? We can put Fil's old stuff into a branch for > >> safe > >> > >> > keeping, but it seems like we should all be concentrating on the > >> same > >> > >> > version of medic, and your buildbot branch is clearly the most > >> > complete > >> > >> and > >> > >> > working version. Having it in the official repo would make it > >> easier > >> > for > >> > >> > people to find and contribute to. > >> > >> > > >> > >> > Mike Billau > >> > >> > > >> > >> > *For USB hubs, we have been daisy chaining these hubs and have > only > >> > had > >> > >> > charging issues with Samsung tablets: > >> > >> > > >> > >> > >> > > >> > http://www.amazon.com/Plugable-Charger-Adapter-Charges-Kindle/dp/B005P2BY5I > >> > >> > > >> > >> > David has been using these ones that have a 2.1A port for iPad > >> > charging > >> > >> (we > >> > >> > haven't yet seen the iPads discharge ): > >> > >> > > >> > >> > > >> > >> > >> > > >> > http://www.amazon.ca/Release-Charging-Adapter-3-5-foot-Included/dp/B00B7FLPBU/ref=cm_cr_pr_product_top > >> > >> > I think part of the medic documentation should definitely have a > >> > >> discussion > >> > >> > about USB hubs because this is a difficult and potentially very > >> > expensive > >> > >> > part of setting up medic. > >> > >> > > >> > >> > > >> > >> > On Thu, Oct 10, 2013 at 9:47 AM, David Kemp > >> > wrote: > >> > >> > > >> > >> > > Hi Sergey, > >> > >> > > Yes that is the only change to mobilespec regarding medic. It > >> simply > >> > >> > allows > >> > >> > > the automated test components to be installed as a plugin > without > >> > >> editing > >> > >> > > any source files other than config.xml. > >> > >> > > > >> > >> > > There is a separate discussion going on about changing > mobilespec > >> > to a > >> > >> > > wrapper that gets tests out of plugins (since thats mostly what > >> it > >> > >> > tests), > >> > >> > > but even that would not significantly change how the CI system > >> > >> operates, > >> > >> > > just how the test app is built. > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > On Thu, Oct 10, 2013 at 9:37 AM, Sergey Grebnov (Akvelon) < > >> > >> > > v-segreb@microsoft.com> wrote: > >> > >> > > > >> > >> > > > Hi David, > >> > >> > > > > >> > >> > > > Thank you for the very valuable input. As per " I recent > made a > >> > >> change > >> > >> > to > >> > >> > > > mobilespec to support a medic plugin to make the insertion of > >> > >> testing a > >> > >> > > bit > >> > >> > > > smoother. " Do you refer to the following changes? Are there > >> other > >> > >> > > changes > >> > >> > > > in this direction in mobile-spec? > >> > >> > > > > >> > >> > > > > >> > >> > > > >> > >> > > >> > >> > >> > > >> > https://github.com/apache/cordova-mobile-spec/commit/de23e302daefcfac603fc992e41467d43ae40d87 > >> > >> > > > > >> > >> > > > Thx! > >> > >> > > > Sergey > >> > >> > > > -----Original Message----- > >> > >> > > > From: David Kemp [mailto:drkemp@google.com] > >> > >> > > > Sent: Thursday, October 10, 2013 5:06 PM > >> > >> > > > To: dev@cordova.apache.org > >> > >> > > > Subject: Re: Medic status and plans > >> > >> > > > > >> > >> > > > More info... > >> > >> > > > > >> > >> > > > The system I am using uses buildbot which has a master > >> controller > >> > >> that > >> > >> > > > provides a web interface, moitors the git repos and generally > >> > manages > >> > >> > > > things. When it detects a need for a build, it communicates > >> with > >> > >> > > > build-slaves to run the tests and report back. > >> > >> > > > > >> > >> > > > The build master is typically run on a linux box. It seems > >> happy > >> > >> there, > >> > >> > > > but should run on a Windows machine - I have never tried, but > >> the > >> > >> docs > >> > >> > > says > >> > >> > > > it works. > >> > >> > > > The build slaves can run on other machines and OSs (including > >> > >> Windows) > >> > >> > as > >> > >> > > > required to run tests. > >> > >> > > > If you are building iOS, that slave must be a Mac. If you are > >> > >> building > >> > >> > > > Windows, it probably needs to be a Windows slave. > >> > >> > > > > >> > >> > > > Buildbot is written (and configured) in Python. > >> > >> > > > > >> > >> > > > The test results are written to a couchDB on every run. You > can > >> > >> inspect > >> > >> > > > the DB and find out exactly which component versions were > used > >> and > >> > >> the > >> > >> > > > detailed test results. > >> > >> > > > > >> > >> > > > Plans (mine at least): > >> > >> > > > > >> > >> > > > Get the test output viewable by the community. We are very > >> close > >> > to > >> > >> > > > having our test master available on a public IP so anyone can > >> see > >> > the > >> > >> > > > current state. It is my hope that as more people run CI > >> systems, > >> > we > >> > >> can > >> > >> > > > aggregate the views on ci.cordova.io so all platforms are > >> easily > >> > >> > viewed. > >> > >> > > > This should include a tidy dashboard to look at the couchDB > >> > aggregate > >> > >> > > data. > >> > >> > > > > >> > >> > > > Make the test more plugin-based. The previous medic system > did > >> > >> > sed-style > >> > >> > > > editing of files to insert some of the automated test > elements. > >> > >> > > > I recent made a change to mobilespec to support a medic > plugin > >> to > >> > >> make > >> > >> > > the > >> > >> > > > insertion of testing a bit smoother. That is not being used > >> yet in > >> > >> the > >> > >> > > test > >> > >> > > > system because it does not exist in release 3.1. A rough > plugin > >> > >> exists > >> > >> > in > >> > >> > > > the repo. > >> > >> > > > > >> > >> > > > Move the medic deploy bits to simpler scripts that are just > >> > command > >> > >> > line > >> > >> > > > methods to run the package in debug/attached mode. > >> > >> > > > > >> > >> > > > Hope that helps. > >> > >> > > > There are several other people interested in or using this or > >> > similar > >> > >> > > > systems. Please jump in... > >> > >> > > > > >> > >> > > > David Kemp > >> > >> > > > > >> > >> > > > > >> > >> > > > > >> > >> > > > > >> > >> > > > > >> > >> > > > On Thu, Oct 10, 2013 at 3:08 AM, Sergey Grebnov (Akvelon) < > >> > >> > > > v-segreb@microsoft.com> wrote: > >> > >> > > > > >> > >> > > > > Hi guys, > >> > >> > > > > > >> > >> > > > > I would like to contribute to Medic project by adding > Windows > >> > >> > > > > platforms support (Windows 8, Windows Phone 8). After > >> reviewing > >> > >> > > > > related discussion threads and project status I have the > >> > following > >> > >> > > > > questions. Could someone clarify them? > >> > >> > > > > > >> > >> > > > > 1. The main repo[1] seems to be not active at all (last > >> commit > >> > was > >> > >> 6 > >> > >> > > > > months ago). I also see special ticket with done status to > >> > create > >> > >> > > > > official repo, but new repo is not active too. > >> > >> > > > > 2. Don't see any issue/task for Medic component in Jira. > >> > >> > > > > 3. Medic future is unclear. Fil Maj (Medic lead) has > recently > >> > moved > >> > >> > to > >> > >> > > > > saucelabs . Who drives this direction right now? Will we > >> > continue > >> > >> > > > > contributing to Medic project or there will be a different > >> > project > >> > >> > > > > used for test authomation (Appium)? > >> > >> > > > > 4. Are there plans or (anyone is already looking) on > adding > >> > WP8, > >> > >> W8 > >> > >> > > > > support? Are there any known technical restrictions or > issues > >> > here? > >> > >> > > > > The only big difference I see is that it should run on > >> Windows > >> > >> > instead > >> > >> > > > > of Mac OS. > >> > >> > > > > 5. Currently Medic uses own logic to install builds on > >> devices > >> > >> > > > > (cordova cli already provides this functionality). Are > there > >> > plans > >> > >> to > >> > >> > > > > change this (running Medic on top of cordova cli)? > >> > >> > > > > 6. To get test results Medic previously used special > >> logs/trace > >> > >> > > > > parsing so that final results were pushed to db from PC, > NOT > >> > >> directly > >> > >> > > > > from mobile test app installed on a device. Do you plan to > >> > change > >> > >> > this > >> > >> > > > behavior? > >> > >> > > > > > >> > >> > > > > [1] https://github.com/filmaj/medic/commits/master > >> > >> > > > > > >> > >> > > > > Thank you, > >> > >> > > > > Sergey Grebnov > >> > >> > > > > > >> > >> > > > > >> > >> > > > >> > >> > > >> > >> > >> > > >> > > > > > --089e01538a8004957704e8793bba--