<?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>14290</bug_id>
          
          <creation_ts>2021-03-09 09:22:34 +0000</creation_ts>
          <short_desc>golang test_go_dep_build accessing network during testing</short_desc>
          <delta_ts>2025-07-24 14:43:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT AB-HAVE-PLAN</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Köry Maincent">kory.maincent</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>naveen.kumar.saini</cc>
    
    <cc>oobitots</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tvgamblin</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>89525</commentid>
    <comment_count>0</comment_count>
    <who name="Köry Maincent">kory.maincent</who>
    <bug_when>2021-03-09 09:22:34 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1886/steps/14/logs/stdio


2021-03-03 09:46:32,960 - oe-selftest - INFO - 13: 1/43 96/424 (2228.77s) (devtool.DevtoolExtractTests.test_devtool_build_image)
2021-03-03 09:46:50,320 - oe-selftest - INFO - gotoolchain.oeGoToolchainSelfTest.test_go_dep_build (subunit.RemotedTestCase)
2021-03-03 09:46:50,321 - oe-selftest - INFO -  ... FAIL
2021-03-03 09:46:50,321 - oe-selftest - INFO - 8: 2/8 97/424 (128.73s) (gotoolchain.oeGoToolchainSelfTest.test_go_dep_build)
2021-03-03 09:46:50,321 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/gotoolchain.py&quot;, line 68, in test_go_dep_build
    retv = self.run_sdk_go_command(&apos;build&apos;, proj, name)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/gotoolchain.py&quot;, line 54, in run_sdk_go_command
    return runCmd(cmd).status
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/utils/commands.py&quot;, line 210, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;cd /tmp/SDKQAbfw1wnh9/go/src/github.com/direnv/direnv; . /tmp/SDKQAbfw1wnh9/environment-setup-core2-64-poky-linux; export GOPATH=/tmp/SDKQAbfw1wnh9/go; ${CROSS_COMPILE}go build&apos; returned non-zero exit status 1:
go: github.com/BurntSushi/toml@v0.3.1: Get &quot;https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod&quot;: net/http: TLS handshake timeout</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89527</commentid>
    <comment_count>1</comment_count>
    <who name="Köry Maincent">kory.maincent</who>
    <bug_when>2021-03-09 09:26:50 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/3185/steps/19/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89530</commentid>
    <comment_count>2</comment_count>
    <who name="Köry Maincent">kory.maincent</who>
    <bug_when>2021-03-09 10:09:06 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/3185/steps/
&gt; 19/logs/stdio

Wrong bug sorry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89591</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-03-11 16:18:46 +0000</bug_when>
    <thetext>Should Go be accessing the network during SDK self-test.
Can this be avoided?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89637</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2021-03-18 02:18:59 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Should Go be accessing the network during SDK self-test.
&gt; Can this be avoided?

this would mean we have to have a fetcher hook for go mod. Its going to be
a similar problem like we have for npm or cargo fetchers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89790</commentid>
    <comment_count>5</comment_count>
    <who name="Oleksiy Obitotskyy">oobitots</who>
    <bug_when>2021-03-26 11:30:41 +0000</bug_when>
    <thetext>debian8-ty-1 oe-selftest-debian

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1936/steps/14/logs/stdio

2021-03-20 10:21:14,471 - oe-selftest - INFO - ======================================================================
2021-03-20 10:21:14,471 - oe-selftest - INFO - FAIL: gotoolchain.oeGoToolchainSelfTest.test_go_dep_build (subunit.RemotedTestCase)
2021-03-20 10:21:14,471 - oe-selftest - INFO - ----------------------------------------------------------------------
2021-03-20 10:21:14,472 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/gotoolchain.py&quot;, line 68, in test_go_dep_build
    retv = self.run_sdk_go_command(&apos;build&apos;, proj, name)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/gotoolchain.py&quot;, line 54, in run_sdk_go_command
    return runCmd(cmd).status
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/utils/commands.py&quot;, line 210, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;cd /tmp/SDKQAlwmawa9t/go/src/github.com/direnv/direnv; . /tmp/SDKQAlwmawa9t/environment-setup-core2-64-poky-linux; export GOPATH=/tmp/SDKQAlwmawa9t/go; ${CROSS_COMPILE}go build&apos; returned non-zero exit status 1:
go: github.com/BurntSushi/toml@v0.3.1: Get &quot;https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod&quot;: net/http: TLS handshake timeout


2021-03-20 10:21:14,472 - oe-selftest - INFO - ----------------------------------------------------------------------
2021-03-20 10:21:14,472 - oe-selftest - INFO - Ran 426 tests in 5585.262s
2021-03-20 10:21:14,472 - oe-selftest - INFO - FAILED
2021-03-20 10:21:14,472 - oe-selftest - INFO -  (failures=1, skipped=7)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90110</commentid>
    <comment_count>6</comment_count>
    <who name="Naveen Saini">naveen.kumar.saini</who>
    <bug_when>2021-04-26 02:28:15 +0000</bug_when>
    <thetext>Happened again (oe-selftest-ubuntu, master-next):
Worker: ubuntu2004-ty-2
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2048</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90766</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-06-25 22:03:10 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/2216/steps/14/logs/stdio

oe-selftest-debian debian10-ty-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91189</commentid>
    <comment_count>8</comment_count>
    <who name="vinay.m.engg@gmail.com">vinay.m.engg</who>
    <bug_when>2021-08-13 17:08:49 +0000</bug_when>
    <thetext>Hi, 

The bug seems to duplicate of,
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14254

The issue is not reproducible with below source branches dated 2021-08-06,
https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=master
https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=master-next
https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=hardknott
https://git.yoctoproject.org/cgit/cgit.cgi/poky/snapshot/poky-yocto-3.3.tar.gz
https://git.yoctoproject.org/cgit/cgit.cgi/poky/snapshot/poky-3.4_M2.tar.gz

Command:
$oe-selftest -r gotoolchain.oeGoToolchainSelfTest.test_go_dep_build

Please let me know if anything is missing from my side.

Regards,
Vinay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92142</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-12-10 15:45:31 +0000</bug_when>
    <thetext>This bug still occurs: https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/2918/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92936</commentid>
    <comment_count>10</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2022-04-07 03:10:28 +0000</bug_when>
    <thetext>I haven&apos;t reproduced this yet, but moving to accepted regardless.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93193</commentid>
    <comment_count>11</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-04-28 14:34:14 +0000</bug_when>
    <thetext>Hasn&apos;t failed but we should not be accessing the network.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97229</commentid>
    <comment_count>12</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-11-09 10:07:00 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/1977/steps/14/logs/stdio

oe-selftest-armhost ubuntu2204-arm-1

2023-08-29 01:37:11,050 - oe-selftest - INFO - gotoolchain.oeGoToolchainSelfTest.test_go_dep_build (subunit.RemotedTestCase)
2023-08-29 01:37:11,052 - oe-selftest - INFO -  ... FAIL
Stderr:
2023-08-29 01:17:53,053 - oe-selftest - INFO - Adding: &quot;include selftest.inc&quot; in /home/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1413609/conf/local.conf
2023-08-29 01:17:53,053 - oe-selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf
2023-08-29 01:37:11,052 - oe-selftest - INFO - 1: 13/56 261/535 (0.42s) (0 failed) (gotoolchain.oeGoToolchainSelfTest.test_go_dep_build)
2023-08-29 01:37:11,052 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/meta/lib/oeqa/selftest/cases/gotoolchain.py&quot;, line 67, in test_go_dep_build
    runCmd(&quot;cd %s; wget %s&quot; % (self.tmpdir_SDKQA, url))
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/meta/lib/oeqa/utils/commands.py&quot;, line 212, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;cd /tmp/SDKQA74h2f9ym; wget https://github.com/direnv/direnv/archive/v2.27.0.tar.gz&apos; returned non-zero exit status 8:
--2023-08-29 01:37:10--  https://github.com/direnv/direnv/archive/v2.27.0.tar.gz
Resolving github.com (github.com)... 192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/direnv/direnv/tar.gz/refs/tags/v2.27.0 [following]
--2023-08-29 01:37:10--  https://codeload.github.com/direnv/direnv/tar.gz/refs/tags/v2.27.0
Resolving codeload.github.com (codeload.github.com)... 192.30.255.121
Connecting to codeload.github.com (codeload.github.com)|192.30.255.121|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2023-08-29 01:37:10 ERROR 403: Forbidden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102503</commentid>
    <comment_count>13</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-07-24 14:43:38 +0000</bug_when>
    <thetext>This hasn&apos;t been seen for a long time, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>