[since 15.6.2] junit test reports not shown in pipeline summary and pipeline test reports
Summary
Junit test reports not shown in pipeline summary
and pipeline test reports
.
Steps to reproduce
- Setup gitlab server (for a sample docker-compose.yml see comments)
- Create a git repro
- Add a simple junit report file like the sample from https://www.ibm.com/docs/en/developer-for-zos/14.1?topic=formats-junit-xml-format
<?xml version="1.0" encoding="UTF-8" ?> <testsuites id="20140612_170519" name="New_configuration (14/06/12 17:05:19)" tests="225" failures="1262" time="0.001"> <testsuite id="codereview.cobol.analysisProvider" name="COBOL Code Review" tests="45" failures="17" time="0.001"> <testcase id="codereview.cobol.rules.ProgramIdRule" name="Use a program name that matches the source file name" time="0.001"> <failure message="PROGRAM.cbl:2 Use a program name that matches the source file name" type="WARNING"> WARNING: Use a program name that matches the source file name Category: COBOL Code Review – Naming Conventions File: /project/PROGRAM.cbl Line: 2 </failure> </testcase> </testsuite> </testsuites>
- Add a simple .gitlab-ci.yml like this:
stages: [test] test: tags: [any] stage: test script: echo test artifacts: paths: [test-result.xml] reports: junit: test-result.xml
- Trigger the pipeline
- Visit
pipeline summary
andpipeline test reports
What is the current bug behavior?
Valid junit test reports are not shown in pipeline summary
and pipeline test reports
What is the expected correct behavior?
Valid junit test reports should shown in pipeline summary
and pipeline test reports
Relevant logs and/or screenshots
Results of GitLab environment info
Self host gitlab inside a docker container (sameersbn/gitlab:latest).
Components
- GitLab 15.6.2
- GitLab Shell 14.13.0
- GitLab Workhorse v15.6.2
- GitLab API v4
- Ruby 3.0.4p208
- Rails 6.1.6.1
- PostgreSQL 12.3
- Redis 7.0.6
System information
System:
Current User: git
Using RVM: no
Ruby Version: 3.0.4p208
Gem Version: 3.2.33
Bundler Version:2.3.25
Rake Version: 13.0.6
Redis Version: 5.0.7
Sidekiq Version:6.5.7
Go Version: unknown
GitLab information
Version: 15.6.2
Revision: 2d7e4701985
Directory: /home/git/gitlab
DB Adapter: PostgreSQL
DB Version: 12.3
URL: http://le-git:10080
HTTP Clone URL: http://le-git:10080/some-group/some-project.git
SSH Clone URL: ssh://git@le-git:10022/some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 14.13.0
Repository storage paths:
- default: /home/git/data/repositories
GitLab Shell path: /home/git/gitlab-shell
Results of GitLab application Check
Passed. See:
Expand for output related to the GitLab application check
```/home/git/gitlab/lib/gitlab/instrumentation/redis.rb:9: warning: already initialized constant Gitlab::Instrumentation::Redis::ActionCable /home/git/gitlab/lib/gitlab/instrumentation/redis.rb:9: warning: previous definition of ActionCable was here Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.13.0 ? ... OK (14.13.0) Running /home/git/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 0/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Systemd unit files or init script exist? ... yes Systemd unit files or init script up-to-date? ... yes Projects have namespace: ... 2/1 ... yes 2/2 ... yes 3/3 ... yes 3/4 ... yes 2/5 ... yes 2/6 ... yes 2/7 ... yes 2/8 ... yes 2/9 ... yes 2/10 ... yes 2/11 ... yes 2/12 ... yes 2/13 ... yes 2/14 ... yes 2/15 ... yes 2/16 ... yes 2/17 ... yes 2/18 ... yes 2/19 ... yes 2/20 ... yes 3/21 ... yes 2/22 ... yes 2/23 ... yes 2/24 ... yes 2/25 ... yes 2/26 ... yes 2/27 ... yes 2/28 ... yes 2/29 ... yes 2/31 ... yes 2/32 ... yes 2/33 ... yes 2/34 ... yes 2/35 ... yes 2/36 ... yes 2/37 ... yes 2/38 ... yes 2/39 ... yes 2/40 ... yes 2/41 ... yes 1/42 ... yes Redis version >= 6.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (3.0.4) Git user has default SSH configuration? ... yes Active users: ... 7 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
</pre> </details> ### Possible fixes