Page MenuHomePhabricator

QueryService UI test build fails on CI
Closed, ResolvedPublicPRODUCTION ERROR

Description

Example:

06:08:50 [INFO] Running "qunit:all" (qunit) task
06:08:51 [INFO] Testing wikibase/tests/index.html ..Failed loading default-config.json: $.getJSON_ERROR
06:08:51 [INFO] .Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
06:08:51 [INFO] ......................F.......................Error: <path> attribute d: Expected number, "…,441ZL51.5,441ZLM".
06:08:51 [INFO] Error: <path> attribute d: Expected number, "…0002ZL51.5,441ZLM".
06:08:51 [INFO] ..........................Not allowed to load local resource: blob:null/9628ee1a-51f8-4b45-b021-deac6896227b
06:08:51 [INFO] ..Access to XMLHttpRequest at 'file:///src/gui/wikibase/tests/queryService/api/code-examples/simple/query.sparql' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, https.
06:08:51 [INFO] Could not run code samples test because CORS is not available on file:// pages.
06:08:51 [INFO] To run this test, you must serve and access the tests over HTTP.
06:08:51 [INFO] .Access to XMLHttpRequest at 'file:///src/gui/wikibase/tests/queryService/api/code-examples/empty/query.sparql' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, https.
06:08:51 [INFO] Could not run code samples test because CORS is not available on file:// pages.
06:08:51 [INFO] To run this test, you must serve and access the tests over HTTP.
06:08:51 [INFO] .
06:08:51 [INFO] >> wikibase.queryService.ui.resultBrowser - When rendering TableResultBrowser then expected result should be displayed
06:08:51 [INFO] >> Message: Result must be expected result
06:08:51 [INFO] >> Actual: null
06:08:51 [INFO] >> Expected: true
06:08:51 [INFO] >> at Object.<anonymous> (file:///src/gui/wikibase/tests/queryService/ui/resultBrowser/ResultBrowser.test.js:94:11)
06:08:51 [INFO] 
06:08:52 [INFO] Testing wikibase/tests/QueryHelper.html .....................................OK
06:08:52 [INFO] Warning: 116 tests completed with 1 failed, 0 skipped, and 0 todo. 
06:08:52 [INFO] 275 assertions (in 1124ms), passed: 274, failed: 1 Use --force to continue.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Passes for me locally, so not sure what's wrong exactly.

The Wikidata query UI isn't in a CI gate, right? I don't see how this is a shared build failure.

@Jdforrester-WMF WDQS build depends on UI build, and currently runs tests too. I can disable that of course but normally would prefer not to do that since we need to ensure GUI works when shipping WDQS.

Krinkle renamed this task from UI test build fails on CI to QueryService UI test build fails on CI.Jun 24 2019, 11:17 PM

Change 518404 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[wikidata/query/gui@master] Revert "Temporarily disable tests with mvn"

https://gerrit.wikimedia.org/r/518404

It looks like only TableResultBrowser one fails, the rest of the browsers are fine. Maybe it's some mismatch in HTML...

Yep, the output has <div class="bootstrap-table bootstrap3"> instead.

Change 518404 merged by jenkins-bot:
[wikidata/query/gui@master] Revert "Temporarily disable tests with mvn"

https://gerrit.wikimedia.org/r/518404

Smalyshev claimed this task.
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:06 PM