Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873589 - app-containers/docker-compose-2.11.2 fails tests: docker: buildx is not a docker command
Summary: app-containers/docker-compose-2.11.2 fails tests: docker: buildx is not a doc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 894414
  Show dependency tree
 
Reported: 2022-09-30 06:59 UTC by Agostino Sarubbo
Modified: 2023-04-07 04:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,159.48 KB, application/x-xz)
2022-09-30 06:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-09-30 06:59:06 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-containers/docker-compose-2.11.2 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-09-30 06:59:10 UTC
Created attachment 814723 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Larry the Git Cow gentoo-dev 2022-12-05 02:30:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6d4a7b7e3156209bb838139a5b84e6a026440f1

commit e6d4a7b7e3156209bb838139a5b84e6a026440f1
Author:     Nic Boet <nic@boet.cc>
AuthorDate: 2022-12-05 00:55:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-05 02:29:00 +0000

    app-containers/docker-buildx: new package
    
    Today, Gentoo's offical docker-images depends on GitHub actions
    and Ubuntu image to build our release media. By adding this new
    docker "buildx" ebuild, building Gentoo docker images locally
    on Gentoo hosts becomes possible.
    
    Addtionally, Bug 873589 reports "buildx" not found.
    
    Bug: https://bugs.gentoo.org/873589
    Closes: https://github.com/gentoo/gentoo/pull/28543
    Signed-off-by: Nic Boet <nic@boet.cc>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-containers/docker-buildx/Manifest              |  1 +
 .../docker-buildx/docker-buildx-0.9.1.ebuild       | 42 ++++++++++++++++++++++
 app-containers/docker-buildx/metadata.xml          | 19 ++++++++++
 3 files changed, 62 insertions(+)
Comment 3 tka 2023-01-11 21:28:34 UTC
With docker-buildx installed, the command is found. Hence, the docker-compose ebuild should depend on app-containers/docker-buildx.

But there is another problem: The tests need access to a running docker instance, but that is denied:

>>> Test phase: app-containers/docker-compose-2.12.2
make -j8 test 
docker buildx bake test
[+] Building 0.0s (0/0)                                                         
ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied
make: *** [Makefile:96: test] Error 1
 * ERROR: app-containers/docker-compose-2.12.2::gentoo failed (test phase):
 *   emake failed

Maybe adding the portage user to the docker group would help. But for me personally, the solution will be to disable the tests.
Comment 4 Larry the Git Cow gentoo-dev 2023-04-07 04:56:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95004627eed0776b6e090335d1fe4fca7a36c07e

commit 95004627eed0776b6e090335d1fe4fca7a36c07e
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2023-04-07 04:54:45 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2023-04-07 04:54:45 +0000

    app-containers/docker-compose: restrict tests
    
    The tests require a running docker daemon.
    
    Closes: https://bugs.gentoo.org/873589
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 app-containers/docker-compose/docker-compose-2.17.2.ebuild | 1 +
 1 file changed, 1 insertion(+)