assert the testpackage appstream data validates
ClosedPublic

Authored by sitter on Jul 20 2017, 8:04 AM.

Details

Summary

helps us prevent invalid desktop->appstream conversion

Test Plan

depends on D6793, with that the tests pass

Diff Detail

Repository
R290 KPackage
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Jul 20 2017, 8:04 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 20 2017, 8:04 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
apol accepted this revision.Jul 20 2017, 2:34 PM
This revision is now accepted and ready to land.Jul 20 2017, 2:34 PM
This revision was automatically updated to reflect the committed changes.
dfaure added a subscriber: dfaure.Apr 18 2020, 2:24 PM

@sitter the error message in this commit shows up now in CI, can you investigate?

https://build.kde.org/job/Frameworks/view/Platform%20-%20SUSEQt5.12/job/kpackage/job/kf5-qt5%20SUSEQt5.12/95/testReport/projectroot/autotests/testpackage_appstream/

CMake Error at /home/jenkins/workspace/Frameworks/kpackage/kf5-qt5 SUSEQt5.12/autotests/kpackagetoolappstreamtest.cmake:45 (message):
  appstream data seems to be imperfect:

  (appstreamcli:1333): GLib-GIO-ERROR **: 09:53:41.936: No GSettings schemas
  are installed on the system
Restricted Application edited subscribers, added: kde-frameworks-devel; removed: Frameworks. · View Herald TranscriptApr 18 2020, 2:24 PM

I wonder if it is a coincidence that the images used to run the CI system we rebuilt in the past 48 hours - could this be an update to appstreamcli that is causing this perhaps?

No, I've seen this error for longer than that.

@bcooksley I would think the CI image needs to ship some general purpose schemas. install https://software.opensuse.org/package/gsettings-desktop-schemas I guess.

If it's still not working right with that installed I can take a look at what's missing. The warning does sound rather generic so I have high hopes for having any schemas resolving it.