<?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>16291</bug_id>
          
          <creation_ts>2026-05-20 21:08:47 +0000</creation_ts>
          <short_desc>Buildbot &quot;branch selector&quot; does not always work</short_desc>
          <delta_ts>2026-11-11 00:00:09 +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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoann Congal">yoann.congal</reporter>
          <assigned_to name="Mathieu Dubois-Briand">mathieu.dubois-briand</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</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>105507</commentid>
    <comment_count>0</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-05-20 21:08:47 +0000</bug_when>
    <thetext>For example, see: https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3787. This is a build I started with the branch selector.

In the &quot;build properties&quot; we see:
branch	&quot;&quot;
swat_monitor true
reason &quot;&quot;


But
branchselector &quot;scarthgap-nut: {\&quot;reason\&quot;: \&quot;Stable maintenance - scarthgap-nut\&quot;, \&quot;branch\&quot;: \&quot;scarthgap\&quot;, \&quot;swat_monitor\&quot;: false, ...

... as if the branchselector data was not applied to the buildbot properties...

For scarthgap builds it crashes quickly, it tries to use bitbake-setup that does not exist in that environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105524</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-21 14:49:08 +0000</bug_when>
    <thetext>Try running with debug enabled in web browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105542</commentid>
    <comment_count>2</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-05-21 19:58:45 +0000</bug_when>
    <thetext>(In reply to Randy MacLeod from comment #1)
&gt; Try running with debug enabled in web browser.

https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3857 got hit also:
I had the javascript console open and saw:
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
    a https://autobuilder.yoctoproject.org/valkyrie/plugins/yocto_console_view/scripts.js:13
    a https://autobuilder.yoctoproject.org/valkyrie/plugins/yocto_console_view/scripts.js:13
    u https://autobuilder.yoctoproject.org/valkyrie/plugins/yocto_console_view/scripts.js:13
    EventListener.handleEvent* https://autobuilder.yoctoproject.org/valkyrie/plugins/yocto_console_view/scripts.js:13
    mz https://autobuilder.yoctoproject.org/valkyrie/assets/index-DAU-Rq3u.js:105
    ur https://autobuilder.yoctoproject.org/valkyrie/assets/index-DAU-Rq3u.js:99
    &lt;anonymous&gt; https://autobuilder.yoctoproject.org/valkyrie/plugins/yocto_console_view/scripts.js:13
    &lt;anonymous&gt; https://autobuilder.yoctoproject.org/valkyrie/plugins/yocto_console_view/scripts.js:1
    &lt;anonymous&gt; https://autobuilder.yoctoproject.org/valkyrie/plugins/yocto_console_view/scripts.js:1

The exception appears at scripts.js:13:54260</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105543</commentid>
    <comment_count>3</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-05-21 20:02:03 +0000</bug_when>
    <thetext>Note: the build I retried just after did not have the exception and did not have the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105716</commentid>
    <comment_count>4</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-06-04 15:14:17 +0000</bug_when>
    <thetext>Some more info:
* I use Firefox (version 151.0.2)
* I see this bug when building a-full
* The fields missing in the transition from the branch selector to the actual builds include:
  * &quot;branch&quot; (the yocto-autobuilder-helper branch): set to my stable branch -&gt; reset to default &quot;master&quot;
  * &quot;swat_monitor&quot;: set to False -&gt; reset to default &quot;True&quot;
* Since I&apos;ve started monitoring, this bug happened if and only if the &quot;Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data&quot; error appeared</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105729</commentid>
    <comment_count>5</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-06-04 16:15:30 +0000</bug_when>
    <thetext>Gemini (!) helped me found a reproducer:
* Go to a-full: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/29
* Click &quot;Start a-full Build&quot;
* In &quot;Release Shortcut Selector&quot; field, type &quot;sc&quot;
* use keyboard arrows to target &quot;scarthgap&quot;
* hit enter with the keyboard (that the part Gemini pointed to)
* Click on &quot;Start build&quot;
* Wait for the build page to load

In the build property, the &quot;branch&quot; field is &quot;&quot; when &quot;scarthgap&quot; is expected.

Note: This sequence triggers the bug BUT NOT the exception (the exception is note the cause of this bug)

Side note: The exception is easily triggered by hitting enter in any field, eg &quot;Reason&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107336</commentid>
    <comment_count>6</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-11-06 23:13:01 +0000</bug_when>
    <thetext>despite recent commits from Mathieu (thanks!):
releaseselector: Fix release selector not applied on keyboard use
https://git.yoctoproject.org/yocto-autobuilder2/commit/?id=92ac54e35a76e66ca6b596a1bc7763f06aa261e8
releaseselector: Fix checkbox filling
https://git.yoctoproject.org/yocto-autobuilder2/commit/?id=aadd487aa9a44beaf1140ef2062e494353df2b44
releaseselector: Read release shortcuts from the force scheduler spec
https://git.yoctoproject.org/yocto-autobuilder2/commit/?id=6430d31028f9da5630b40deebc480ad5b744b147

... I had the issue:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/29/builds/5075 (wrynose build using master helper)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107337</commentid>
    <comment_count>7</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-11-06 23:31:39 +0000</bug_when>
    <thetext>Might just be because Mathieu&apos;s commits do not seem to be deployed on the AB instance:
https://autobuilder.yoctoproject.org/valkyrie/plugins/yocto_console_view/scripts.js: (after reindentation)
          const w = n.get(&apos;force-field-branchselector&apos;),
          O = w.parentNode.previousSibling,
          j = O.textContent.indexOf(&apos;:&apos;);

That look like the removed code of
https://git.yoctoproject.org/yocto-autobuilder2/commit/?id=6430d31028f9da5630b40deebc480ad5b744b147</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107338</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-11-07 07:51:01 +0000</bug_when>
    <thetext>(In reply to Yoann Congal from comment #7)
&gt; Might just be because Mathieu&apos;s commits do not seem to be deployed on the AB
&gt; instance:

Yes, I believe it&apos;s still the old code. As an easy proof, on a broken browser (like Firefox on my phone), we can see each line of the drop down menu still contains the whole serialized configuration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107368</commentid>
    <comment_count>9</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-11-11 00:00:09 +0000</bug_when>
    <thetext>I think it&apos;s fixed now (beware: old code can linger in the browser cache!)

IIUC, the plugin needed a manual rebuild before being deployed.

I&apos;d say to use it for a few days/builds and then close this bug as fixed.

Thanks Mathieu!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>