From: Ian Jackson Subject: Re: [PATCH 2/3] Add a weekly coverity flight Date: Wed, 3 Feb 2016 12:12:46 +0000 Message-ID: <22193.61118.183626.135765@mariner.uk.xensource.com> References: <1454492776-23788-1-git-send-email-ian.campbell@citrix.com> <1454492776-23788-2-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1454492776-23788-2-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Andrew Cooper , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH 2/3] Add a weekly coverity flight"): > In my experiments the curl command took ~35 minutes to complete (rate > in the 100-200k range). Not sure if this is a problem. Note that curl > is run on the controller (via system_checked) and consequently has no > timeout etc. Can you use curl's builtin timeouts, or wrap it in alarm() ? Otherwise I think it is possible for this to become wedged indefinitely and need manual un-wedging. AFAICT during the curl the only lock or resource which is held is the build host share. I think we can live with that. > Note that the token must be supplied with @/path/to/token. The latter appears to the server as a file upload > rather than a text field in a form which doesn't work. In early > attempts I thought that the trailing \n in /path/to/token might be an > issue and hence wrote a big comment. However having discovered < vs @ > I am no longer 100% sure that is the case, but I left the comment > anyway since I can observe on the wire that the \n is included in the > upload (but each test takes ~35 mins and there is a ratelimit on the > server side too). Right. > Deployment notes: > - Put cov-analysis-linux64-7.7.0.4.tar.gz in the Images > directory. DONE in COLO > - Populate $HOME/.xen-osstest/coverity-secret with the token > DONE in COLO > - Populate xen.git#coverity-scanned with an initial baseline, update > ap-fetch-version-old to refer to it instead of master. ... > +coverity) > + #XXX doesn't exist yet, use master for now repo_tree_rev_fetch_git xen $TREE_XEN coverity-scanned $LOCALREV_XEN This XXX is out of date ? And so the code should be fixed ? > + case $branch in > + coverity) > + if [ "x$TREE_COVERITY" = x ]; then > + export TREE_COVERITY=$TREE_XEN > + fi > + if [ "x$REVISION_COVERITY" = x ]; then > + determine_version REVISION_COVERITY coverity COVERITY > + export REVISION_COVERITY > + fi > + NEW_REVISION=$REVISION_COVERITY I'm not sure why these variables are all REVISION_COVERITY rather than REVISION_XEN. But in general this looks good. Ian.