Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938024 - sys-apps/portage: pre-merge failures are hard to find in verbose output
Summary: sys-apps/portage: pre-merge failures are hard to find in verbose output
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-16 19:54 UTC by Michał Górny
Modified: 2024-08-18 00:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-08-16 19:54:46 UTC
Long story short, I had an emerge run failing with:

31.64 >>> Running pre-merge checks for sys-kernel/linux-firmware-20240811
31.67 --2024-08-16 19:50:35--  http://127.0.0.1:8787/sys-kernel/linux-firmware/linux-firmware-20240811-1.gpkg.tar
31.67 Connecting to 127.0.0.1:8787... connected.
31.67 HTTP request sent, awaiting response... 404 File not found
31.67 2024-08-16 19:50:35 ERROR 404: File not found.
31.67 
31.83 >>> Failed to emerge sys-kernel/linux-firmware-20240811


However, this was followed by tons of verbose binpkg fetching output from other pre-merge checks, and it was really hard to find what actually failed.

I think Portage should at least print some summary which pre-merge checks failed at the end.
Comment 1 Zac Medico gentoo-dev 2024-08-16 22:58:13 UTC
(In reply to Michał Górny from comment #0)
> However, this was followed by tons of verbose binpkg fetching output from
> other pre-merge checks, and it was really hard to find what actually failed.

Ultimately the fetch output should be suppressed and support retry in the background for bug 936287.

> I think Portage should at least print some summary which pre-merge checks
> failed at the end.

Good plan.
Comment 2 Zac Medico gentoo-dev 2024-08-18 00:28:25 UTC
Each pre-merge check failure is supposed to trigger a call to the _record_pkg_failure method, so maybe we should add a parameter there to indicate which phase failed.