Page MenuHomePhabricator

CI failing on lack of test logs (mediawiki-core-qunit-selenium-jessie)
Closed, ResolvedPublic

Description

On fundraising\REL1_27 branch, Jenkins is consistently failing the build, apparently because there are no logs in the log/junit directory.

....
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?

https://integration.wikimedia.org/ci/job/mediawiki-core-qunit-selenium-jessie/1389/console

This blocks our usual process for payments-wiki deployments

Event Timeline

We had a single job handling both qunit and selenium tests with 48a1955569bf9cca5bd4290526cb2ee5f9abe108 . Supposedly when there is no junit output, the job should just gracefully pass:

+     - junit:
+        results: 'log/junit*.xml,log/WDIO.xunit*.xml'
+        # Qunit does not generate Junit file and we might skip selenium
+        allow-empty-results: true

However that does not show up in the job configuration on Jenkins :(

I have force regenerated the Jenkins job mediawiki-core-qunit-selenium-jessie . The web gui now shows:

Allow empty results:

  • Do not fail the build on empty test results

So that should fix it. Gotta recheck

hashar claimed this task.

I did a recheck on the Gerrit change https://gerrit.wikimedia.org/r/#/c/353929/ and it eventually passed just fine https://integration.wikimedia.org/ci/job/mediawiki-core-qunit-selenium-jessie/1408/console

Sorry for the mess.