[OpenStack-Infra] 答复: Re: [openstack-infra] how to config gerrit to get a summary of all jobs in gerrit page

2016-12-21 Thread dong . wenjuan
Hi all,

Thanks for your help. I'll try it.

BR,
dwj






Joshua Hesketh  
2016-12-21 19:29

收件人
dong.wenj...@zte.com.cn
抄送
openstack-infra 
主题
Re: [OpenStack-Infra] [openstack-infra] how to config gerrit to get a 
summary of all jobs in gerrit page






Hey,

We run some javascript that parses the comments in gerrit and pulls out 
the the results into a table as a summary:
http://git.openstack.org/cgit/openstack-infra/system-config/tree/modules/openstack_project/files/gerrit/hideci.js


This is loaded in by supplying the gerrit header:
http://git.openstack.org/cgit/openstack-infra/system-config/tree/modules/openstack_project/files/gerrit/GerritSiteHeader.html


Hope that helps!

Cheers,
Josh

On Wed, Dec 21, 2016 at 6:49 PM,  wrote:

Hi all, 

I setup a CI system, but after all the jobs run, the summary of all jobs 
don't show in gerrit page. 
Like this: 


Does anybody know how to config it? Thanks~ 



BR, 
dwj



___
OpenStack-Infra mailing list
OpenStack-Infra@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra


___
OpenStack-Infra mailing list
OpenStack-Infra@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra

[OpenStack-Infra] [nodepool] Heads up: 1.26.0 dib release for Xenial/glean network issues

2016-12-21 Thread Ian Wienand

Hi,

We found a regression where python3-only Xenial images have a messed
up pip, and incorrectly installs glean.  The result is that the system
boots but no network.

Because dib builds images for a wide range of platforms, some of which
ship python3 only, we need a way to call python scripts that is
version agnostic.  For this reason we have the dib-python element,
which installs a local dib-python binary which can be used as a #!
script.  This script decides basically to call python or python3 as
appropriate.  A recent change made this explicit [1] and removed the
(theoretically) redundant python2 install.

We believe this is due pollution of the VIRTUAL_ENV variable into the
building chroot and some magic that happens in site.py to fiddle paths
[2].  But we haven't quite sorted that out.  Of course, it is very
worrying that this all got past CI and we will be investigating that
too.

I have merged and released in 1.26.0 a hack [3] to ensure python2 is
installed for Xenial while we work on a better solution.

infra-root should be aware of this if there are any problems with
Xenial image generation that result in uncontactable hosts.  I believe
this will get us through the holidays.

Cheers & Happy Holidays/Merry Christmas all,

-i

[1] https://review.openstack.org/408288/
[2] https://review.openstack.org/413487/
[3] https://review.openstack.org/413410/

___
OpenStack-Infra mailing list
OpenStack-Infra@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra


[OpenStack-Infra] [nodepool] Heads up: 1.26.0 dib release for Xenial/glean network issues

2016-12-21 Thread Ian Wienand

Hi,

We found a regression where python3-only Xenial images have a messed
up pip, and incorrectly installs glean.  The result is that the system
boots but no network.

Because dib builds images for a wide range of platforms, some of which
ship python3 only, we need a way to call python scripts that is
version agnostic.  For this reason we have the dib-python element,
which installs a local dib-python binary which can be used as a #!
script.  This script decides basically to call python or python3 as
appropriate.  A recent change made this explicit [1] and removed the
(theoretically) redundant python2 install.

We believe this is due pollution of the VIRTUAL_ENV variable into the
building chroot and some magic that happens in site.py to fiddle paths
[2].  But we haven't quite sorted that out.  Of course, it is very
worrying that this all got past CI and we will be investigating that
too.

I have merged and released in 1.26.0 a hack [3] to ensure python2 is
installed for Xenial while we work on a better solution.

infra-root should be aware of this if there are any problems with
Xenial image generation that result in uncontactable hosts.  I believe
this will get us through the holidays.

Cheers & Happy Holidays/Merry Christmas all,

-i

[1] https://review.openstack.org/408288/
[2] https://review.openstack.org/413487/
[3] https://review.openstack.org/413410/

___
OpenStack-Infra mailing list
OpenStack-Infra@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra


Re: [OpenStack-Infra] [openstack-infra] how to config gerrit to get a summary of all jobs in gerrit page

2016-12-21 Thread Mikhail Medvedev
On Wed, Dec 21, 2016 at 1:49 AM,  wrote:
>
>
> Hi all,
>
> I setup a CI system, but after all the jobs run, the summary of all jobs
don't show in gerrit page.
> Like this:
>
>
> Does anybody know how to config it? Thanks~
>

OpenStack infra uses custom js script to create that table.

If you're asking how to configure your own gerrit instance to format CI
results like a table: you can use something similar to hideci.js script [1]
in your gerrit instance UI. To see how hideci.js is setup on OpenStack
gerrit instance, see puppet configuration at [2].

If you're asking how to get your third-party CI to show up on OpenStack
gerrit: your CI's comment needs to adhere to what hideci.js expects when it
parses CI comments.


[1]
https://github.com/openstack-infra/system-config/blob/dcacf61853fb5e4e2e2f15df8ce1fbab79a8494e/modules/openstack_project/files/gerrit/hideci.js
[2]
https://github.com/openstack-infra/system-config/blob/dcacf61853fb5e4e2e2f15df8ce1fbab79a8494e/modules/openstack_project/manifests/gerrit.pp

>
>
> BR,
> dwj
>
>
>
> ___
> OpenStack-Infra mailing list
> OpenStack-Infra@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra

--
Mikhail Medvedev
IBM
___
OpenStack-Infra mailing list
OpenStack-Infra@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra

Re: [OpenStack-Infra] [openstack-infra] how to config gerrit to get a summary of all jobs in gerrit page

2016-12-21 Thread Joshua Hesketh
Hey,

We run some javascript that parses the comments in gerrit and pulls out the
the results into a table as a summary:
http://git.openstack.org/cgit/openstack-infra/system-config/tree/modules/openstack_project/files/gerrit/hideci.js

This is loaded in by supplying the gerrit header:
http://git.openstack.org/cgit/openstack-infra/system-config/tree/modules/openstack_project/files/gerrit/GerritSiteHeader.html


Hope that helps!

Cheers,
Josh

On Wed, Dec 21, 2016 at 6:49 PM,  wrote:

>
> Hi all,
>
> I setup a CI system, but after all the jobs run, the summary of all jobs
> don't show in gerrit page.
> Like this:
>
>
> Does anybody know how to config it? Thanks~
>
>
>
> BR,
> dwj
>
>
>
> ___
> OpenStack-Infra mailing list
> OpenStack-Infra@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra
>
___
OpenStack-Infra mailing list
OpenStack-Infra@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra