| Summary: | golang test_go_dep_build accessing network during testing | ||
|---|---|---|---|
| Product: | [QA/Testing] Functional (self) Testing | Reporter: | Köry Maincent <kory.maincent> |
| Component: | oe-selftest | Assignee: | Bruce Ashfield <bruce.ashfield> |
| Status: | RESOLVED OBSOLETE | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | alexandre.belloni, bruce.ashfield, naveen.kumar.saini, oobitots, randy.macleod, richard.purdie, ross.burton, tvgamblin |
| Version: | unspecified | ||
| Target Milestone: | 5.3 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | AB-INT AB-HAVE-PLAN | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Köry Maincent
2021-03-09 09:22:34 UTC
(In reply to comment #1) > https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/3185/steps/ > 19/logs/stdio Wrong bug sorry Should Go be accessing the network during SDK self-test. Can this be avoided? (In reply to comment #3) > Should Go be accessing the network during SDK self-test. > 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. 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 "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/gotoolchain.py", line 68, in test_go_dep_build retv = self.run_sdk_go_command('build', proj, name) File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/gotoolchain.py", line 54, in run_sdk_go_command return runCmd(cmd).status File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/utils/commands.py", line 210, in runCmd raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output)) AssertionError: Command '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' returned non-zero exit status 1: go: github.com/BurntSushi/toml@v0.3.1: Get "https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod": 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) Happened again (oe-selftest-ubuntu, master-next): Worker: ubuntu2004-ty-2 https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2048 https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/2216/steps/14/logs/stdio oe-selftest-debian debian10-ty-2 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 This bug still occurs: https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/2918/steps/14/logs/stdio I haven't reproduced this yet, but moving to accepted regardless. Hasn't failed but we should not be accessing the network. 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: "include selftest.inc" 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: "include bblayers.inc" 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 "/home/pokybuild/yocto-worker/oe-selftest-armhost/build/meta/lib/oeqa/selftest/cases/gotoolchain.py", line 67, in test_go_dep_build runCmd("cd %s; wget %s" % (self.tmpdir_SDKQA, url)) File "/home/pokybuild/yocto-worker/oe-selftest-armhost/build/meta/lib/oeqa/utils/commands.py", line 212, in runCmd raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output)) AssertionError: Command 'cd /tmp/SDKQA74h2f9ym; wget https://github.com/direnv/direnv/archive/v2.27.0.tar.gz' 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. This hasn't been seen for a long time, closing. |