[OpenStack-Infra] A reminder about the compare-xml job for JJB

Bailey, Darragh dbailey at hp.com
Wed Sep 3 16:13:49 UTC 2014


Hi,

Any chance that zuul could report back a 'WARNING' in yellow for non-voting jobs that fail? Still useful to know that it ran.

Seems just a little too easy to miss that the text is different.


Regards,
Darragh Bailey

"Nothing is foolproof to a sufficiently talented fool" - Unknown




On 03/09/14 00:25, Zaro wrote:
Thanks for the reminder Jim.  I think it would be helpful if zuul reported a message back to gerrit only if the xml output has changed.  Something like "builder-compare-xml job reported changes in xml output for OpenStack jobs".


On Tue, Sep 2, 2014 at 4:02 PM, James E. Blair <corvus at inaugust.com<mailto:corvus at inaugust.com>> wrote:
Hi,

Jenkins-job-builder runs a job called "jenkins-job-builder-compare-xml"
which runs JJB master against openstack's JJB config, then runs it again
with the proposed change and compares the output.

Instead of success/failure, what it does is reports whether the output
changed or not.  If you follow the link, you can see exactly what
changed (it produces a diff).

Generally in JJB, by default we should expect that most changes do not
change the XML output.  Of course they can and should sometimes, which
is why the job doesn't vote.  In those cases, I think it's worth
highlighting either in the commit message or in the comments what you
would expect to change and why it's okay.

If the compare job says that the output changed, reviewers should ask
why it changed -- it may be an error.  Or if it was intentional, make
sure that the output of the compare job matches the intent of the
change.

Recently, a change was merged where JJB completely failed to run on the
production openstack-infra config.  Not only is this a problem for
infra, but it likely is a very legitimate bug in JJB itself.  The
problem was visible in the output of the compare XML job, which also
indicated that the XML output changed.  Hopefully in the future, we can
catch this in review.  If it would help catch people's attention, we can
change the message that Zuul leaves on the XML compare job.

-Jim

_______________________________________________
OpenStack-Infra mailing list
OpenStack-Infra at lists.openstack.org<mailto:OpenStack-Infra at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra




_______________________________________________
OpenStack-Infra mailing list
OpenStack-Infra at lists.openstack.org<mailto:OpenStack-Infra at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra





More information about the OpenStack-Infra mailing list