The azure pipeline is failing for WebUI_Unit_Tests. See for instance in PR #6688
Logs available at https://dev.azure.com/freeipa/dd9bf4ec-d636-4558-8f6e-ee17af87f33b/_apis/build/builds/12473/logs/396:
Running WebUI unit tests sed \ -e 's|@API_VERSION[@]|2.251|g' \ -e 's|@NUM_VERSION[@]|41100|g' \ Loading "Gruntfile.js" tasks...OK + test Running tasks: test Running "test" task Running "qunit_junit" task Options: dest="_build/test-reports", fileNamer=undefined, classNamer=undefined, testNamer=undefined >> XML reports will be written to _build/test-reports Running "qunit" task Running "qunit:all" (qunit) task Verifying property qunit.all exists in config...OK Files: test/all_tests.html -> all Options: timeout=5000, inject="/__w/1/s/install/ui/node_modules/grunt-contrib-qunit/chrome/bridge.js", urls=[], force=false, console, httpBase=false, summaryOnly=false Testing test/all_tests.html Access to XMLHttpRequest at 'file:///__w/1/s/install/ui/test/qunit.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, https, chrome-untrusted. Failed to load resource: net::ERR_FAILED Access to XMLHttpRequest at 'file:///__w/1/s/install/ui/test/data/i18n_messages.json' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, https, chrome-untrusted. Failed to load resource: net::ERR_FAILED >> Error: Error: Couldn't receive translations >> at file:///__w/1/s/install/ui/js/freeipa/translations.js:67:11 >> at runFactory (file:///__w/1/s/install/ui/js/dojo/dojo.js:1:17157) >> at execModule (file:///__w/1/s/install/ui/js/dojo/dojo.js:1:19541) >> at execModule (file:///__w/1/s/install/ui/js/dojo/dojo.js:1:19369) >> at execModule (file:///__w/1/s/install/ui/js/dojo/dojo.js:1:19369) >> at execModule (file:///__w/1/s/install/ui/js/dojo/dojo.js:1:19369) >> at execModule (file:///__w/1/s/install/ui/js/dojo/dojo.js:1:19369) >> at execModule (file:///__w/1/s/install/ui/js/dojo/dojo.js:1:19369) >> at file:///__w/1/s/install/ui/js/dojo/dojo.js:1:20002 >> at guardCheckComplete (file:///__w/1/s/install/ui/js/dojo/dojo.js:1:19707) Writing _build/test-reports/TEST-all_tests.xml...OK >> Chrome timed out, possibly due to: >> - QUnit is not loaded correctly. >> - A missing QUnit start() call. >> - Or, a misconfiguration of this task. >> There was an error with headless chrome Fatal error: test/all_tests.html? ##[error]Bash exited with code '1'. Finishing: WebUI Unit Tests
I faced this issue on GHA: https://github.com/stanislavlevin/freeipa/commit/1ac8143cc1c325128de75827929ef0ee35ebe013
Let's see if it helps: https://github.com/freeipa/freeipa/pull/6690
master:
ipa-4-9:
ipa-4-10:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.