build-pkgs fails to build golang-1.13.15-1.13.15-3.tis.1.src.rpm

Bug #1943770 reported by Rafael Lucas Camargos
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Scott Little

Bug Description

Brief Description
-----------------
The official STX build is failing for the current master on the build-pkgs step trying to build the freshly added golang package.

Severity
--------
Major

Steps to Reproduce
------------------
Just follow the StarlingX Build Guide for master:
https://docs.starlingx.io/developer_resources/build_guide.html

Expected Behavior
------------------
build-pkgs should succeed.

Actual Behavior
----------------
build-pkgs fail with "Failed to build packages: golang-1.13.15-1.13.15-3.tis.1.src.rpm"

Reproducibility
---------------
100%

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
Sep 14 2021

Last Pass
---------
N/A

Timestamp/Logs
--------------
08:32:06 Failed to build packages: golang-1.13.15-1.13.15-3.tis.1.src.rpm

EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 736, in do_with_status
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
mockbuild.exception.Error: Command failed:
# bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/golang.spec

--- FAIL: TestCloneNEWUSERAndRemapNoRootDisableSetgroups (0.00s)
    exec_linux_test.go:132: Cmd failed with err fork/exec /usr/bin/whoami: operation not permitted, output:
--- FAIL: TestEmptyCredGroupsDisableSetgroups (0.00s)
    exec_linux_test.go:180: fork/exec /usr/bin/whoami: operation not permitted
--- FAIL: TestUnshareUidGidMapping (0.02s)
    exec_linux_test.go:482: Cmd failed with err fork/exec /tmp/go-build775881194/b1053/syscall.test: operation not permitted, output:
--- FAIL: TestAmbientCapsUserns (0.00s)
    exec_linux_test.go:667: fork/exec /tmp/gotest921900309: operation not permitted
FAIL
FAIL syscall 0.258s

Test Activity
-------------
N/A

Workaround
----------
N/A

Revision history for this message
Scott Little (slittle1) wrote :

Please attach

$MY_WORKSPACE/std/results/*-std/golang-1.13.15-1.13.15-3.tis.1/*log

Revision history for this message
Rafael Lucas Camargos (rcamargo) wrote :

The logs follows attached.

Scott Little (slittle1)
Changed in starlingx:
assignee: nobody → Scott Little (slittle1)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to compile (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/compile/+/810905

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compile (master)

Reviewed: https://review.opendev.org/c/starlingx/compile/+/810905
Committed: https://opendev.org/starlingx/compile/commit/7b11e5b7c47e7e7df17ec1ad1abb07513df1d709
Submitter: "Zuul (22348)"
Branch: master

commit 7b11e5b7c47e7e7df17ec1ad1abb07513df1d709
Author: Scott Little <email address hidden>
Date: Thu Sep 23 14:13:04 2021 -0400

    golang unit test fix

    golang unit tests may fail on a call to 'whoami'

    Two issues found.

    1) A missing BuildRequires on coreutils which provides 'whoami'.

    2) 'whoami' may fail when golang 1.13.15 unit tests run within a
    container due to a name space issue. Backporting a call to checkUserNS
    which bypasses some unit tests, as seen in golang 1.15.14 fixed the
    issue.

    Closes-Bug: 1943770
    Signed-off-by: Scott Little <email address hidden>
    Change-Id: Ic1e49ca00ebe5bd274e3b202d02338a36292e369

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.6.0 stx.build
Changed in starlingx:
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.