/usr/bin/appstream-util validate-relax data/com.github.wwmm.pulseeffects.appdata.xml
--- stdout ---
data/com.github.wwmm.pulseeffects.appdata.xml: FAILED:
• url-not-found : <screenshot> failed to connect: Cannot resolve hostname [https://raw.githubusercontent.com/wwmm/pulseeffects/master/images/appdata-screenshot-01.png]
• url-not-found : <screenshot> failed to connect: Cannot resolve hostname [https://raw.githubusercontent.com/wwmm/pulseeffects/master/images/appdata-screenshot-05.png]
• url-not-found : <screenshot> failed to connect: Cannot resolve hostname [https://raw.githubusercontent.com/wwmm/pulseeffects/master/images/appdata-screenshot-04.png]
• url-not-found : <screenshot> failed to connect: Cannot resolve hostname [https://raw.githubusercontent.com/wwmm/pulseeffects/master/images/appdata-screenshot-02.png]
• url-not-found : <screenshot> failed to connect: Cannot resolve hostname [https://raw.githubusercontent.com/wwmm/pulseeffects/master/images/appdata-screenshot-03.png]
--- stderr ---
@AsavarTzeth
Fixed it by adding --nonet.
Well you could just not build the test target? Or is Debian tools somehow enforcing this globally? I mean at the moment these are the only tests run in that target and they are mostly useful to upstream anyhow.
Debian runs tests by default. That's a good idea to avoid pushing broken packages into the repository (and for 'continious integration').
22 августа 2018 г. 10:58:51 GMT+03:00, Patrik Nilsson notifications@github.com пишет:
Well you could just not build the test target, or is Debian tools doing
that by default?--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/wwmm/pulseeffects/issues/306#issuecomment-414946501
Oh I agree that its a good idea, but in this specific case these are the only tests. So here it would work as a temporary workaround.
I did not fully understand, what do these requiring network tests do? Thay download screenshots, what for?
22 августа 2018 г. 10:58:51 GMT+03:00, Patrik Nilsson notifications@github.com пишет:
Well you could just not build the test target, or is Debian tools doing
that by default?--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/wwmm/pulseeffects/issues/306#issuecomment-414946501
To validate the size and format of the screenshots so that they can displayed properly in frontends such as GNOME Software.
Basically, a frontend will pull in images from these URL's and unless verified, there is no way for the frontend to know if it will work or look right.
Although, now that I think about it, these screenshots have so far only ever been updated by me and I do test them well.
If --nonet only affects screenshots I suppose it would not be as big of a deal if those were not tested at build time. It just means it will have to be verified manually upon updates.
The man page isn't too clear on what tests --nonet disables. I will try to dig some more to find out.
At some point it crossed my mind to update these appdata screenshots. But I was not sure if there was some restriction regarding quality and size. At this moment we have images shown in github readme and images used only in appstream. We could unify this.
I agree they need to be updated and ideally unified. And yes there are quite a list of restrictions that are horrible to work with.
I have more questions on that issue. Perhaps I should open an issue about unifying the screenshots? I could add a lot of information and maybe a todo list?
If there are more details to be discussed about the screenshots it is better to open another issue
Why can't the screenshots be taken from source code instead of downloading them from GitHub?
good question
What? I fail to see your reasoning.
The screenshots are stored in the source code, on GitHub. They have to be hosted somewhere, and downloadable from a web server.
Oh you mean for the verification process? Well think about what I said above.
You could theoretically verify just the screenshots offline, but that would require what? Some weird tag in the appdata that describes a relative path to the image? It also offers no guarantee to frontends that image actually will be used.
Edit: I would so like a do over on this question :)
If that is how it works the online validation makes sense.
Haha glad I somehow got something through!
Side note: I am guessing the short answer would have been: Because those URL's are what frontends actually use to download and display screenshots? The rest is then apparent.