hotspot icon indicating copy to clipboard operation
hotspot copied to clipboard

Elfutils debug

Open lievenhey opened this issue 1 year ago • 8 comments
trafficstars

This will finally close #560. I successfully tested it with a local running debuginfod instance. I didn't managed to get it running by using the ci bundle, because the run_debuginfod_in_docker.sh didn't like my debuginfo.zip file.

lievenhey avatar Jan 29 '24 10:01 lievenhey

Adding the debug info blows up the image size to 8GB. Since I haven't pushed the image, the build fails.

lievenhey avatar Feb 06 '24 11:02 lievenhey

Adding the debug info blows up the image size to 8GB. Since I haven't pushed the image, the build fails.

That would be a quite stable download, no? How big is the current one?

That Is this the complete debuginfo for QT and elfutils, isn't it? I guess that, as QT is not compiled explicit, the debuginfo could be downloaded "somewhere", but as the elfutils is build on the container we'd need to also provide its debuginfo?

GitMensch avatar Feb 28 '24 15:02 GitMensch

On the image in the ci, which will make the ci super slow since it needs to download the hole image every time it runs.

lievenhey avatar Mar 04 '24 10:03 lievenhey

Isn't the distributed QT not enough? If it is then QT can be installed from the system package manager and the link to the matching download of debug infos can just be shared.

If the system-provided QT (and/or rest) isn't usable it should be possible to:

  • configure and build QT (and everything else) with full debug info (that's just the creation of the image)
  • before the creation is completed: either split the debuginfo "clean" and upload that (=once during container creation) or go easy and upload the 8GB result somewhere, then `strip`` the binaries and delete the sources completely -> the final container is small (=starts fast)

GitMensch avatar Mar 04 '24 10:03 GitMensch

can we instead output a separate debuginfo.zip for the base image and host that somewhere on github? then people interested in that could download it. but we wouldn't have to pay the price on every CI run

milianw avatar Mar 06 '24 13:03 milianw

Note: it should be possible to have a CI workflow building this, which is only manually triggered. This would allow to do that whenever the QT/elfutils version is changed, and after the build the debuginfo.zip can then be attached/updated to the release page (making it usable without logging in).

GitMensch avatar Apr 15 '24 07:04 GitMensch

I think I can create a workflow which is only run manually to create the image and upload it to github. This way the workflow could contain the debuginfo as an artifact.

lievenhey avatar May 03 '24 09:05 lievenhey

Yes, it just needs to be manually copied somewhere later on (ideally attached to a release) to allow downloading without login from a stable URL.

GitMensch avatar May 03 '24 15:05 GitMensch

@lievenhey Looks like a perfect candidate to finish after #648 :-) ... .or should that be included there?

GitMensch avatar May 28 '24 05:05 GitMensch

solved in #648

lievenhey avatar May 29 '24 08:05 lievenhey