/srv/irclogs.ubuntu.com/2023/06/19/#ubuntu-desktop.txt

seb128goood morning IRC08:05
lissyxso installing packages from build-packages avoid snapcraft trying to install them08:07
lissyxbut packages from stage-packages, snapcraft still tries08:07
nteodosioHi seb128, good morning!08:10
nteodosioHi lissyx, yes that's true08:10
lissyxnteodosio, it's really making my life miserable08:11
nteodosioEven now that you know it?08:11
lissyxyes?08:11
lissyxbecause there's no way I can fix this ?08:11
lissyxso bassically i've been working since ~2 weeks on getting snap builds on taskcluster for mostly nothing because of this limitation08:11
lissyxwhy would stage-packages be handled differently ?08:12
nteodosioThey are defined as "a list of packages required at runtime by a snap." https://snapcraft.io/docs/snapcraft-parts-metadata08:12
nteodosioSo it makes sense that packages there are installed.08:13
lissyxthe package is installed08:13
lissyxbut snapcraft tries to install it again08:13
lissyxhttps://firefoxci.taskcluster-artifacts.net/ZwsoSrvdQNCVrS27wn_8ZA/0/public/build/snapcraft-20230619-074003.661062.log08:13
lissyxhttps://treeherder.mozilla.org/logviewer?job_id=419814904&repo=try&lineNumber=66608:13
nteodosioSo the problem is that libavcodec58 is installed but snapcraft is trying to install it again?08:15
lissyxyes08:16
nteodosioWhere is it installed, in the host?08:16
lissyxI'm using --destructive-mode so yes it's installed on the host08:16
nteodosioAnd you don't want it in the snap?08:17
lissyx?08:17
lissyxi dont know what i want08:17
nteodosioI don't know what is the actual issue you are having.08:17
lissyxI'm just trying to build the firefox snap08:17
lissyxthe issue is simple: package is installed but snapcraft tries to install it again.08:18
nteodosioI don't see evidence to that. You said it is installed in the host, but in the snap it seems to be trying to install it only once.08:19
lissyxnteodosio, please look at the links?08:19
lissyx[task 2023-06-19T07:40:01.604Z] Setting up libavcodec58:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...08:19
lissyxso it's installed08:20
lissyxand I'm using --destructive-mode08:20
nteodosioI did. Perhaps I'm missing context.08:20
nteodosioIt seems correct that it's trying to install something in stage-packages, even if it is in the host.08:21
lissyxif it's in destructive mode, where is it going to install it?08:21
nteodosioI don't know what is destructive mode.08:21
lissyxsnapcraft --destructive-mode08:21
nteodosioOK, that says "Designed to be used in temporary/short-lived environments, such as on a CI system, because the build could contaminate the host build environment."08:22
nteodosioAh OK this describes it better: "Unlike broader snap packages, kernel snaps are typically built within the host environment using snapcraft --destructive-mode."08:23
nteodosioSo yes now I see your problem and I don't have an answer.08:23
lissyxmaybe this? https://github.com/canonical/craft-parts/blob/main/craft_parts/packages/deb.py#L40708:29
lissyxjbicha, regarding my workspace focus issue: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/290908:31
-ubottu:#ubuntu-desktop- Merge 2909 in GNOME/mutter "core/window: Change MRU update behavior for windows on all workspaces" [Merged]08:31
nteodosioMaybe, but as far as I know it could still try to install it even without updating the packages list.08:33
nteodosioIn that destructive mode you can only build for the same base your host is on, I suppose?08:34
lissyxyes08:35
lissyxbut I can make an image matching what I want to build08:36
nteodosioSo when you said you didn't want Snapcraft to install the package even though it was in stage, you meant that it should not try to `apt install` it in the snap, but still install the version from the host.08:37
lissyxI dont want snapcraft to run any "apt-get"08:38
lissyxthe "update" that chocked was from https://github.com/canonical/craft-parts/blob/047a8e55196aeccd77eb01091025971e406ca97c/craft_parts/packages/deb.py#L64408:38
lissyxany install would seem to only occur from https://github.com/canonical/craft-parts/blob/047a8e55196aeccd77eb01091025971e406ca97c/craft_parts/packages/deb.py#L53708:39
lissyxand as long as we installed it prior I guess we should be safe wrt https://github.com/canonical/craft-parts/blob/047a8e55196aeccd77eb01091025971e406ca97c/craft_parts/packages/deb.py#L526-L52708:39
lissyx:( https://treeherder.mozilla.org/logviewer?job_id=419817867&repo=try&lineNumber=559-57808:59
KGB-0gnome-shell-extension-harddisk-led tags f7d219b Jonathan Carter upstream/34 * https://deb.li/3z0fN09:02
lissyxgrr09:03
lissyxset to 0 to inhibit ...09:03
KGB-2gnome-shell-extension-hide-activities tags ef2da15 Jonathan Carter upstream/44 * https://deb.li/370qh09:09
KGB-0gnome-shell-extension-dash-to-panel tags f436d47 Jonathan Carter upstream/56 * https://deb.li/XHL709:16
KGB-0deja-dup tags 25c5fb8 Sebastien Bacher upstream/44.2 * Upstream version 44.2 * https://deb.li/yf0j09:17
KGB-2deja-dup upstream/latest 18a9d16 Sebastien Bacher * pushed 38 commits (first 5 follow) * https://deb.li/3jvWi09:17
KGB-2deja-dup upstream/latest bcbaa93 Balázs Úr po/hu.po * Update Hungarian translation * https://deb.li/YfM009:17
KGB-2deja-dup upstream/latest 4e1bb85 Kukuh Syafaat po/id.po * Update Indonesian translation * https://deb.li/3B0L209:17
KGB-2deja-dup upstream/latest 1a6b1e3 Anders Jonsson po/sv.po * Update Swedish translation * https://deb.li/Z0ys09:17
KGB-2deja-dup upstream/latest 9c4a58b Michael Terry help/tr/tr.po * chore: add back license marker to tr.po to fix linting * https://deb.li/I0Ax09:17
KGB-2deja-dup upstream/latest fe353ab Michael Terry libdeja/ (5 files in 3 dirs) * feat: more duplicity 2.0 preparations * https://deb.li/3mHhE09:17
KGB-2deja-dup pristine-tar 0cd342c Sebastien Bacher deja-dup_44.2.orig.tar.gz.delta deja-dup_44.2.orig.tar.gz.id * pristine-tar data for deja-dup_44.2.orig.tar.gz * https://deb.li/3dHZU09:18
lissyxseems like it might be doing the trick :p https://treeherder.mozilla.org/jobs?repo=try&revision=192be1f1fff5f21537132d6723bb410e31f34fdc09:50
lissyxkenvandine, https://launchpad.net/~desktop-snappers/+related-packages gnome-3-38-2004-sdk disappeared?12:26
lissyxok weird it's not listed on the main page but I still find it https://launchpad.net/~desktop-snappers/+snap/gnome-3-38-2004-sdk12:28
seb128lissyx, you want https://launchpad.net/~desktop-snappers/+snaps no ?13:06
lissyxseb128, maybe13:07
lissyxeither way, we have a few issues on symbols right now :(13:07
lissyxwe miss gnome 42 ones13:07
lissyxwe dont have firefox core22 branch ones13:07
seb128lissyx, do you know why we are missing the gnome ones?13:24
=== pizzaiolo is now known as pizza
seb128lissyx, is that your collector job not fetching those?13:28
seb128https://git.launchpad.net/gnome-sdk/tree/snapcraft.yaml#n1747 suggests the snapcraft side is there?13:28
lissyxseb128, both because we collect only gnome-3-38-2004-sdk for now13:45
lissyxseb128, and because when I test gnome-42-2204-sdk I have issues13:45
lissyxseb128, much bigger problem for me is that core22 build does not place .debug file next to .snap13:46
lissyxseb128, this is going to be problematic for upload to the launchpad library?13:46
lissyxat least it's problematic on my local tests13:46
seb128lissyx, is that an error in the snapcraft?yaml?13:46
lissyxI dont know13:47
lissyxthe gnome sdk issue is weird, files are corrupted https://treeherder.mozilla.org/logviewer?job_id=419848480&repo=try&lineNumber=368 but it looks to be a bug on our code13:49
lissyxthe lack of .debug for core22 is different, it's properly generated but not copied at the end13:49
lissyxo_O I can open it with file-roller correctly13:58
lissyxand when I download it manually it works as well.14:03
lissyxseb128, ok I think it's because we end up finding two branches, and the download code we have makes things broken because the file names are identical14:14
lissyxbetween gnome-42-2204-sdk-proposed and gnome-42-2204-sdk14:15
seb128I didn't even know we have a proposed...14:16
lissyxseb128, is it possible this cp is broken? https://github.com/canonical/firefox-snap/blob/140a377cdf079b799c845457a71e75582dee6c7d/snapcraft.yaml#L59114:38
seb128lissyx, it could be but I think the issue is earlier, checking a recent build log from core2214:42
seb128https://launchpadlibrarian.net/671347170/buildlog_snap_ubuntu_jammy_amd64_firefox-snap-core22_BUILDING.txt.gz14:42
seb128Executing parts lifecycle: pull debug-symbols14:42
seb128Executing action14:42
seb128:: ++ find /build/firefox/stage/debug-symbols/ -type f -name 'firefox-*.crashreporter-symbols.zip'14:42
seb128:: + export SYMBOLS_ARCHIVE=14:42
seb128:: + SYMBOLS_ARCHIVE=14:42
seb128:: + '[' -f '' ']'14:42
seb128Executed: pull debug-symbols14:42
seb128it seems the pull debug-symbols isn't pulling any?14:43
lissyx:[14:43
lissyxmach buildsymbols worked?14:43
seb128I need to drop from IRC for a bit moving location but I will read the irclog once I reconnect14:43
seb128bandali, ^ any idea about those issues?14:43
seb128the log has14:47
seb128:: + cp obj-x86_64-pc-linux-gnu/dist/firefox-114.0.1.en-US.linux-x86_64.crashreporter-symbols.zip /build/firefox/stage/debug-symbols/14:47
seb128so at least the .zip seems generated14:47
seb128but the cp is earlier in the log than the zip creation14:48
seb128so ordering issue in the rules?14:48
seb128bbiab14:48
lissyxnteodosio, since seb128 is not there I hope you can help :p15:55
lissyxis override-pull a bug here ? https://github.com/canonical/firefox-snap/blob/stable/snapcraft.yaml#L56215:55
lissyxwe want to do this after a firefox build, I believe override-pull will be done at the wrong moment?15:56
lissyx(but I also think we had to use override-pull because of something network-related15:58
lissyxfrom the log shared above https://launchpadlibrarian.net/671347170/buildlog_snap_ubuntu_jammy_amd64_firefox-snap-core22_BUILDING.txt.gz, checking line number it's obvious the debug-symbols override-pull has been done before the build of the symbols16:03
lissyx  39137 Executed: pull firefox                                                          16:03
lissyx  39138 Executing parts lifecycle: pull debug-symbols                                   16:03
lissyxhttps://github.com/snapcore/snapcraft/issues/422016:12
-ubottu:#ubuntu-desktop- Issue 4220 in snapcore/snapcraft "Using after leads to pull after instead of waiting for complete part" [Open]16:12
nteodosiolissyx, yes, I think it is. The documentation is not clear. It explicitly mentions "build and stage" but not pull and that is what you observed in the build log.16:29
lissyx"runs the same lifecycle step of all parts before moving to the next step. However, you can change this behavior using the after keyword"16:30
lissyxthis does not mention build and stage ?16:30
nteodosioYes, it mentions all lifecycle steps. And then it goes on to say that changes with the after keyword. But it never really says explicitly _how_, leaving margin for the natural interpretation, namely "all lifecycle steps of X are executed before any lifecycle step of Y".16:36
seb128lissyx, I will add the firefox core22/debug issue on our active backlog and follow up with the snapcraft team about it20:45

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!