<div dir="ltr"><div dir="ltr">On Wed, Apr 23, 2025 at 9:49 PM Stefano Crocco <<a href="mailto:stefano.crocco@alice.it">stefano.crocco@alice.it</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On martedì 22 aprile 2025 20:57:53 Ora legale dell’Europa centrale Ben <br>
Cooksley wrote:<br>
> On Wed, Apr 23, 2025 at 5:24 AM Stefano Crocco <<a href="mailto:stefano.crocco@alice.it" target="_blank">stefano.crocco@alice.it</a>><br>
> <br>
> wrote:<br>
> > Hello to everyone,<br>
> <br>
> Hi Stefano,<br>
<br>
Hello Ben,<br>
> <br>
> > recently, I've being trying to fix failing Konqueror tests, and in doing<br>
> > so I'm<br>
> > facing some issue with the CI tests which I don't know how to solve.<br>
> > <br>
> > The first issue is that one test passes on my system but fails when run by<br>
> > the<br>
> > CI (it's the konqview test at [1]). I couldn't spot anything in the code<br>
> > which<br>
> > would be likely to be different on the CI than on my system. What do you<br>
> > think<br>
> > is the best way to try and fix this test? Should I try and add some<br>
> > debugging<br>
> > statement in the tests, then run it again on the CI to try to pinpoint the<br>
> > cause of the failure? I wouldn't want to waste CI resources, but I have no<br>
> > better idea.<br>
> <br>
> This test looks like it might be a KXMLGUI initialisation failure:<br>
> <br>
> QWARN : KonqViewTest::textThenHtml() kf.xmlgui: cannot find .rc file<br>
> "konqueror.rc" for component "konqviewtest"<br>
> QWARN : KonqViewTest::textThenHtml() kf.xmlgui: cannot find .rc file<br>
> "konqueror.rc" for component "konqviewtest"<br>
> <br>
> It is probably masked on your local system because there will be old files<br>
> / configuration / etc present.<br>
> Might be worth creating a new user account, doing a build of Konqueror<br>
> alone there (without logging in or running Konqueror normally there) and<br>
> seeing if the unit test fails there as that is basically what CI does.<br>
<br>
I don't think this can be the difference because I get the same message on my <br>
system where the test succeeds (because the konqueror.rc file is installed in <br>
the konqueror directory, while the KXmlGui frameworks expects it in the <br>
konqviewtest directory since that's the name of the component) . Just to be <br>
sure, I tried following your suggestion but nothing changed and the test <br>
succeeded.<br></blockquote><div><br></div><div>In the absence of KatePart, is there any other KPart that supports viewing text/plain?</div><div><br></div><div>Looking at your overall CI log as well as your .kde-ci.yml I don't see either a build or runtime dependency on Kate, so it won't be around in the CI environment.</div><div>That would explain why autotests/konqviewtest.cpp#L42 is false.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> > A similar issue regards tests failing on FreeBSD but not on Linux: how<br>
> > should<br>
> > I proceed, since that I have no FreeBSD machine available and I'm not<br>
> > familiar<br>
> > enough with it to try setting up a virtual machine?<br>
> <br>
> In the not too distant future once we have VM based CI you'd be able to<br>
> download the VM image the CI system uses.<br>
> This is weeks, not months, away at this point.<br>
<br>
This should be very useful. Thanks for the information.<br>
<br>
> <br>
> > Lastly, there's a test (konqviewmgrtest at [2]) which is marked as failed<br>
> > by<br>
> > the CI but, looking at the output it reports, seems successful to me (I<br>
> > can't<br>
> > see any mention of failing tests or errors in the output). I attach a file<br>
> > with<br>
> > the output of the test. My only guess is that the word "failed" which<br>
> > appears<br>
> > in lines 3 and 28 but which is unrelated to the test itself may be<br>
> > confusing<br>
> > the CI. Do you think it is possible? Otherwise, do you have any idea about<br>
> > why<br>
> > the test could be marked as failed?<br>
> <br>
> Reading the full build log reveals why that happened:<br>
> <br>
> 4/12 Test #4: konqviewmgrtest ...................***Timeout 60.12 sec<br>
> <br>
> My guess would be that it is popping up a message box as something didn't<br>
> quite work out when it tries to activate the link:<br>
> <br>
> QDEBUG : ViewMgrTest::testLinkedViews() ACTIVATING LINK<br>
<br>
Thanks for pointing this out. I didn't think of looking at the full output. <br>
I'll try to find out could be producing a message box, but it won't be easy.<br></blockquote><div><br></div><div>What sort of link is being activated here? Could it be KIO / Konqueror having an issue with understanding the URL schema / not having something to render the returned mimetype?</div><div>Reading the code it appears to be doing similar things to KonqViewTest, so fixing one will likely fix the other.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> <br>
> > Thanks in advance<br>
> > <br>
> > Stefano<br>
> <br>
> Hope that gives you some ideas!<br>
> <br>
> Cheers,<br>
> Ben<br>
<br>
Thanks<br>
<br>
Stefano<br></blockquote><div><br></div><div>Cheers,</div><div>Ben</div></div></div>