junit.xml: no matching files in phpunit job artifacts

Created on 25 March 2025, about 2 months ago

Problem/Motivation

When PHPUnit jobs pass, there is often still an error in the log

Uploading artifacts...
WARNING: junit.xml: no matching files. Ensure that the artifact path is relative to the working directory (/builds/issue/my_module-nnnnnn) 

This is not a new fault, I think it has been happening since day 1. When the phpunit test fails, we do not get this error, because a junit.xml file is created.

Proposed resolution

As artifact files have to exist, can we just create an empty junit.xml before executing phpunit?

Remaining tasks

🐛 Bug report
Status

Active

Component

gitlab-ci

Created by

🇬🇧United Kingdom jonathan1055

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024