Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1896540 - GNOME update notification sometimes not appearing in openQA test on Fedora Rawhide
Summary: GNOME update notification sometimes not appearing in openQA test on Fedora Ra...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fwupd
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: openqa
Depends On:
Blocks: F34FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2020-11-10 20:25 UTC by Adam Williamson
Modified: 2020-11-23 18:16 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-23 18:16:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
/var/log tarball from failed test (1.31 MB, application/gzip)
2020-11-10 20:25 UTC, Adam Williamson
no flags Details

Description Adam Williamson 2020-11-10 20:25:32 UTC
Created attachment 1728166 [details]
/var/log tarball from failed test

In today's Rawhide compose - Fedora-Rawhide-20201110.n.0 - GNOME update notifications seem to be broken, according to openQA:

https://openqa.fedoraproject.org/tests/719599#step/desktop_notifications/31

that should show an "updates available" notification, but it does not. The same test was passing consistently until today:

https://openqa.fedoraproject.org/tests/719599#next_previous

The most likely suspect in today's compose is PackageKit-1.2.2-2.fc34 , which backported https://github.com/hughsie/PackageKit/pull/437 . Nothing else relevant looks to have changed.

The openQA test boots a system installed from the Workstation live image to runlevel 3, downgrades a package (python3-kickstart) to ensure at least one update is available, then logs into the desktop, waits ten minutes, and opens the notifications pane. I'm attaching the tarball of /var/log from the failed test.

Comment 1 Adam Williamson 2020-11-10 20:26:26 UTC
This violates Final criterion "Release-blocking desktops must notify the user of available updates, but must not do so when running as a live image" - https://fedoraproject.org/wiki/Fedora_34_Final_Release_Criteria#Update_notification - so proposing as a Final blocker.

Comment 2 Adam Williamson 2020-11-10 20:37:18 UTC
so I guess to be specific here, the thing that's being tested is the update check that *should run on first log in to the desktop after system boot*.

Comment 3 Daniel Rusek 2020-11-18 19:30:10 UTC
I have tried an older PackageKit-1.2.2-1.fc33.x86_64 build on a F33 VM that I have here (that previously had 1.2.2-2 installed) and had the the same issue as with the 1.2.2-2 build: I did not get any new updates notification. When I manually opened GNOME Software, new updates were displayed correctly there, but that was also the case with 1.2.2-2 build.

I have also tried reverting the VM to a clean after-install (Fedora 33 Beta) state and got new updates notification. Then I have fully updated it to latest F33 state and tried manually downgrading some packages (gnome-boxes etc.), changing the check-timestamp gsettings (https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/master/f/tests/desktop_notifications.pm#_28) and rebooting/relogging. But at this point, I was not able to get any new update notification at all although I have tried this multiple times. Available updates were displayed fine when I opened GNOME Software, but no update notifications appeared.

I am beginning to think that this is not an issue caused by the PackageKit pk_dbus_get_uid() crash fix PR and probably also not a PackageKit issue at all (older PackageKit-1.2.1-1 that had no notification issues is still used on latest F33).

Would it be possible to run the desktop notification test again, this time on a fully updated Rawhide system using latest packages, but with a slightly older PackageKit build (1.2.2-1 or 1.2.1-1)?

Comment 4 Daniel Rusek 2020-11-19 15:30:48 UTC
I did more testing again and not sure what I did wrong before, but I now seem to get new update notifications without any issue in my F33 testing VM with latest updates (and gnome-boxes/podman/etc. manually downgraded to test the update notifications). Even when using latest libdnf-0.54.2-3.fc33.x86_64 and PackageKit-1.2.2-2.fc33.x86_64.

So, it seems that there is probably no regression (although I am still not 100% sure), just some issue with the Rawhide test.

Comment 5 Adam Williamson 2020-11-19 16:58:34 UTC
There's definitely a bug in something, but I agree it doesn't seem as clear-cut any more. I ran the test multiple times yesterday on various Rawhide builds and we see the issue across all of them, sometimes we get a notification, sometimes we don't - including builds before 20201110.n.0. I'm going to see if I can figure out anything more concrete today.

Comment 6 Adam Williamson 2020-11-21 01:24:08 UTC
I think I have a new suspect here: fwupd 1.5.0. A few factors:

* That arrived around the time the test *really* first failed in openQA. The first failure I can see in openQA where we got no update notification was https://openqa.fedoraproject.org/tests/708601#step/desktop_notifications/31 , on 2020-10-28. fwupd 1.5.0 landed on 2020-10-26.

* We've started getting problems with a test in F32 and F33 update tests now too. There's a test which makes an update available (same dodge with python3-kickstart) then runs GNOME Software and checks it can update the system. In the last day, that test has started failing quite often on F32 and F33. When it fails, GNOME Software is just stuck saying "Software catalog is being downloaded": https://openqa.stg.fedoraproject.org/tests/966265#step/desktop_update_graphical/35 . What happened in the last day? The base disk image that the test uses was updated, meaning packages that went stable in the last two weeks got baked into it. What went stable for both F32 and F33 in the last two weeks and is relevant to GNOME Software? fwupd: https://bodhi.fedoraproject.org/updates/FEDORA-2020-4cda00ea06 and https://bodhi.fedoraproject.org/updates/FEDORA-2020-e327f9f270

* Check out https://openqa.stg.fedoraproject.org/tests/overview?distri=fedora&version=Rawhide&build=Fedora-Rawhide-20201107.n.1-notetest-NOREPORT&groupid=1 . The tests with _mod_ in their name downgraded fwupd to 1.4.6. The ones without _mod_ in their name didn't...

Comment 7 Adam Williamson 2020-11-21 01:51:49 UTC
I wonder if the problem might be https://github.com/fwupd/fwupd/issues/2600 ?

Comment 8 Adam Williamson 2020-11-23 18:16:59 UTC
So I do think that was the problem - I backported the fix for that in fwupd 1.5.1-2 , and the openQA tests since then all seem to be passing. However, pbrobinson pointed out that I probably broke fwupd on Secure Boot-enabled systems since I'm not on the SB signing list. fwupd should be on the list of things that only people with SB signing privileges can tag, but apparently it wasn't. nirik is adding it.

hughsie has built an fwupd 1.5.2 today which should be SB signed *and* have this bug fixed. We hope. I'm going to close it for now, will re-open if it turns out we still have problems. It'd be good to get the fwupd 1.5.2 updates for f32 and f33 pushed stable ASAP (assuming they actually work OK).


Note You need to log in before you can comment on or make changes to this bug.