<?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>14254</bug_id>
          
          <creation_ts>2021-02-24 20:21:12 +0000</creation_ts>
          <short_desc>oe-selftest-centos: gotoolchain.oeGoToolchainSelfTest.test_go_dep_build failed</short_desc>
          <delta_ts>2021-08-10 23:37:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval">leonardo.sandoval</reporter>
          <assigned_to name="vinay.m.engg@gmail.com">vinay.m.engg</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>oobitots</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>vinay.m.engg</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>89374</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2021-02-24 20:21:12 +0000</bug_when>
    <thetext>AB collection [1], build [2] failed:



2021-02-24 13:27:03,095 - oe-selftest - INFO - gotoolchain.oeGoToolchainSelfTest.test_go_dep_build (subunit.RemotedTestCase)
2021-02-24 13:27:03,095 - oe-selftest - INFO -  ... FAIL
2021-02-24 13:27:03,095 - oe-selftest - INFO - 8: 2/8 219/424 (3.70s) (gotoolchain.oeGoToolchainSelfTest.test_go_dep_build)
2021-02-24 13:27:03,095 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/selftest/cases/gotoolchain.py&quot;, line 69, in test_go_dep_build
    % (proj, name))
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-centos/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-centos/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/SDKQAd5odnd7l; . /tmp/SDKQAd5odnd7l/environment-setup-core2-64-poky-linux; export GOPATH=/tmp/SDKQAd5odnd7l/go; ${CROSS_COMPILE}go build  github.com/golang/dep/cmd/dep&apos; returned non-zero exit status 1:
no required module provides package github.com/golang/dep/cmd/dep: working directory is not part of a module

[1] https://swatbot.yoctoproject.org/collection/561/
[2] https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1869/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89375</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval">leonardo.sandoval</who>
    <bug_when>2021-02-24 20:31:20 +0000</bug_when>
    <thetext>The same collection [1] has several other build failures, but all yielding the same error log. Status and Notes at [1] have been updated accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89404</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-02-25 16:03:54 +0000</bug_when>
    <thetext>Patch in master-next.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89674</commentid>
    <comment_count>3</comment_count>
    <who name="Oleksiy Obitotskyy">oobitots</who>
    <bug_when>2021-03-22 09:07:48 +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>89791</commentid>
    <comment_count>4</comment_count>
    <who name="Oleksiy Obitotskyy">oobitots</who>
    <bug_when>2021-03-26 11:31:05 +0000</bug_when>
    <thetext>Wrong bug, copied to the https://bugzilla.yoctoproject.org/show_bug.cgi?id=14290</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90474</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-25 01:35:19 +0000</bug_when>
    <thetext>Khem, was this fix merged? If so can you paste link to the commit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91120</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-08-05 14:51:26 +0000</bug_when>
    <thetext>related to 14290?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91131</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-08-06 14:58:52 +0000</bug_when>
    <thetext>Vinay tried to reproduce this but wasn&apos;t able to. Is he missing something?

-- Randy

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

#With latest master-next brach
===============================
2021-08-05 23:25:09,676 - oe-selftest - WARNING - meta-selftest layer
not found in BBLAYERS, adding it
2021-08-05 23:25:13,563 - oe-selftest - INFO - Adding layer libraries:
2021-08-05 23:25:13,564 - oe-selftest - INFO -
/ala-lpggp31/vinay/R14290/master-next/meta/lib
2021-08-05 23:25:13,564 - oe-selftest - INFO -
/ala-lpggp31/vinay/R14290/master-next/meta-yocto-bsp/lib
2021-08-05 23:25:13,564 - oe-selftest - INFO -
/ala-lpggp31/vinay/R14290/master-next/meta-selftest/lib
2021-08-05 23:25:13,566 - oe-selftest - INFO - Running bitbake -e to
test the configuration is valid/parsable
2021-08-05 23:25:16,448 - oe-selftest - INFO - Adding: &quot;include
selftest.inc&quot; in /ala-lpggp31/vinay/R14290/bld-next-st/conf/local.conf
2021-08-05 23:25:16,448 - oe-selftest - INFO - Adding: &quot;include
bblayers.inc&quot; in bblayers.conf
2021-08-05 23:53:47,135 - oe-selftest - INFO - test_go_dep_build
(gotoolchain.oeGoToolchainSelfTest)
2021-08-05 23:53:55,845 - oe-selftest - INFO -  ... ok
2021-08-05 23:54:59,885 - oe-selftest - INFO -
----------------------------------------------------------------------
2021-08-05 23:54:59,886 - oe-selftest - INFO - Ran 1 test in 1784.926s
2021-08-05 23:54:59,886 - oe-selftest - INFO - OK
2021-08-05 23:55:08,620 - oe-selftest - INFO - RESULTS:
2021-08-05 23:55:08,620 - oe-selftest - INFO - RESULTS -
gotoolchain.oeGoToolchainSelfTest.test_go_dep_build: PASSED (8.71s)
2021-08-05 23:55:08,621 - oe-selftest - INFO - SUMMARY:
2021-08-05 23:55:08,621 - oe-selftest - INFO - oe-selftest () - Ran 1
test in 1784.927s
2021-08-05 23:55:08,621 - oe-selftest - INFO - oe-selftest - OK - All
required tests passed (successes=1, skipped=0, failures=0, errors=0)
===============================

#With latest master branch
===============================
2021-08-05 22:10:19,910 - oe-selftest - INFO - Adding layer libraries:
2021-08-05 22:10:19,911 - oe-selftest - INFO -
/ala-lpggp31/vinay/R14290/poky/meta/lib
2021-08-05 22:10:19,911 - oe-selftest - INFO -
/ala-lpggp31/vinay/R14290/poky/meta-yocto-bsp/lib
2021-08-05 22:10:19,911 - oe-selftest - INFO -
/ala-lpggp31/vinay/R14290/poky/meta-selftest/lib
2021-08-05 22:10:19,912 - oe-selftest - INFO - Running bitbake -e to
test the configuration is valid/parsable
2021-08-05 22:10:22,784 - oe-selftest - INFO - Adding: &quot;include
selftest.inc&quot; in /ala-lpggp31/vinay/R14290/bld-st/conf/local.conf
2021-08-05 22:10:22,785 - oe-selftest - INFO - Adding: &quot;include
bblayers.inc&quot; in bblayers.conf
2021-08-05 22:43:11,763 - oe-selftest - INFO - test_go_dep_build
(gotoolchain.oeGoToolchainSelfTest)
2021-08-05 22:43:24,795 - oe-selftest - INFO -  ... ok
2021-08-05 22:45:56,629 - oe-selftest - INFO -
----------------------------------------------------------------------
2021-08-05 22:45:56,631 - oe-selftest - INFO - Ran 1 test in 2135.280s
2021-08-05 22:45:56,631 - oe-selftest - INFO - OK
2021-08-05 22:46:16,071 - oe-selftest - INFO - RESULTS:
2021-08-05 22:46:16,072 - oe-selftest - INFO - RESULTS -
gotoolchain.oeGoToolchainSelfTest.test_go_dep_build: PASSED (13.03s)
2021-08-05 22:46:16,073 - oe-selftest - INFO - SUMMARY:
2021-08-05 22:46:16,074 - oe-selftest - INFO - oe-selftest () - Ran 1
test in 2135.283s
2021-08-05 22:46:16,074 - oe-selftest - INFO - oe-selftest - OK - All
required tests passed (successes=1, skipped=0, failures=0, errors=0)
===============================

Please let me know if anything is missing from my side to reproduce the issue.

Regards,
Vinay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91132</commentid>
    <comment_count>8</comment_count>
    <who name="vinay.m.engg@gmail.com">vinay.m.engg</who>
    <bug_when>2021-08-06 16:20:03 +0000</bug_when>
    <thetext>Hi,

Also, the issue is not reproducible on, 

hardknott branch:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=hardknott

poky-yocto-3.3 release:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/snapshot/poky-yocto-3.3.tar.gz

Regards,
Vinay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91133</commentid>
    <comment_count>9</comment_count>
    <who name="vinay.m.engg@gmail.com">vinay.m.engg</who>
    <bug_when>2021-08-06 16:24:03 +0000</bug_when>
    <thetext>Hi,

Could not reproduce issue with 

hardknott branch:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=hardknott

poky-yocto-3.3 release:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/snapshot/poky-yocto-3.3.tar.gz

Regards,
Vinay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91138</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-08-10 23:37:06 +0000</bug_when>
    <thetext>Works for Vinay. Please re-open if you can reproduce the problem and include step by step instructions. 
Thanks for testing Vinay, as a reward, I&apos;ve given you the other bug: 14290 ;-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>