<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11507</bug_id>
          
          <creation_ts>2017-05-12 14:08:05 +0000</creation_ts>
          <short_desc>Assertion error when two buildset configurations use GitPoller for same repository</short_desc>
          <delta_ts>2017-06-07 14:52:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Johannes Schrimpf">johannes.schrimpf</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>pidge</cc>
    
    <cc>pokylinux</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73235</commentid>
    <comment_count>0</comment_count>
      <attachid>3762</attachid>
    <who name="Johannes Schrimpf">johannes.schrimpf</who>
    <bug_when>2017-05-12 14:08:05 +0000</bug_when>
    <thetext>Created attachment 3762
A suggested patch which is tested and working on my local setup

When two different buildset configurations register a GitPoller for the same repository, an assertion error occurs in buildbot. To prevent this, a check should be implemented whether a GitPoller for this repository is already in yocto-sources and it should only be added if not.

A suggested patch which is tested and working on my local setup is attached.

When reproducing, please note that other than in the documentation different GitPollers have to have different names and that the second poller in the MultiBranch GitPoller example in the documentation overwrites the first one. This will be reported as an additional bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73808</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-06-07 14:52:33 +0000</bug_when>
    <thetext>Thanks for the report and the patch! I&apos;ve merged the attached patch, with some slight changes to the format of the commit message, to the yocto-autobuilder repository:
http://git.yoctoproject.org/clean/cgit.cgi/yocto-autobuilder/commit/?id=15aedc363019afc4361c93ac5571719d1dc6d453

For future contributions we ask that patches are sent to the mailing list yocto@yoctoproject.org for wider review.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3762</attachid>
            <date>2017-05-12 14:08:05 +0000</date>
            <delta_ts>2017-05-12 14:08:05 +0000</delta_ts>
            <desc>A suggested patch which is tested and working on my local setup</desc>
            <filename>0001-lib-python2.7-site-packages-autobuilder-Autobuilder..patch</filename>
            <type>application/octet-stream</type>
            <size>2112</size>
            <attacher name="Johannes Schrimpf">johannes.schrimpf</attacher>
            
              <data encoding="base64">RnJvbSBmZTcyNzdlY2EwOGM5YzQyN2MwMGExYmE2MDg1MjVlN2E1ZGNlOWZmIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBKb2hhbm5lcyBTY2hyaW1wZiA8am9oYW5uZXMuc2NocmltcGZA
Ymx1ZXllLm5vPgpEYXRlOiBGcmksIDEyIE1heSAyMDE3IDE1OjU2OjI3ICswMjAwClN1YmplY3Q6
IFtQQVRDSF0gbGliL3B5dGhvbjIuNy9zaXRlLXBhY2thZ2VzL2F1dG9idWlsZGVyL0F1dG9idWls
ZGVyLnB5OiBDaGVjawogd2hldGhlciBHaXRQb2xsZXIgYWxyZWFke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WxzZToKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIyBkZWZhdWx0IHRvIDUgbWludXRlcyBwb2xsIGludGVydmFscwog
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbnRlcnZhbCA9IDYwKjUKLSAgICAgICAg
ICAgICAgICAgICAgICAgICAgICBzZWxmLnlvY3RvX3NvdXJjZXMuYXBwZW5kKEdpdFBvbGxlcihy
ZXBvdXJsPXJlcG9bJ3JlcG91cmwnXSwgYnJhbmNoPWJyYW5jaCwgcG9sbEludGVydmFsPWludGVy
dmFsKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2cubXNnKCJBZGRpbmcgR2l0UG9s
bGVyIGFzIGNoYW5nZXNvdXJjZSBmb3IgIiArIHJlcG9uYW1lKQorICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIGdpdHBvbGxlciA9IEdpdFBvbGxlcihyZXBvdXJsPXJlcG9bJ3JlcG91cmwnXSwg
YnJhbmNoPWJyYW5jaCwgcG9sbEludGVydmFsPWludGVydmFsKQorICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIGlmIGdpdHBvbGxlciBub3QgaW4gc2VsZi55b2N0b19zb3VyY2VzOgorICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLnlvY3RvX3NvdXJjZXMuYXBwZW5kKGdpdHBv
bGxlcikKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9nLm1zZygiQWRkaW5nIEdp
dFBvbGxlciBhcyBjaGFuZ2Vzb3VyY2UgZm9yICIgKyByZXBvbmFtZSkKKyAgICAgICAgICAgICAg
ICAgICAgICAgICAgICBlbHNlOgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2cu
bXNnKCJHaXRQb2xsZXIgYWxyZWFkeSByZWdpc3RlcmVkIGFzIGNoYW5nZXNvdXJjZSBmb3IgIiAr
IHJlcG9uYW1lKQogICAgICAgICAgICAgICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAjIGRlZmF1bHQgdG8gdXNlIFBCQ2hhbmdlU291cmNlIGFzIHRoZSBjaGFu
Z2Vzb3VyY2UKICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLnlvY3RvX3NvdXJjZXMu
YXBwZW5kKFBCQ2hhbmdlU291cmNlKHVzZXI9dXNlciwgcGFzc3dkPXBhc3N3ZCkpCi0tIAoyLjcu
NAoK
</data>

          </attachment>
      

    </bug>

</bugzilla>