JUnit test summary results never load in merge request
Summary
JUnit test summary results never load on our internal Gitlab server when viewing them through the merge request. The widget on the MR screen for a given MR consistently shows "Test summary results are being parsed" - and watching the browser console shows the page is getting persistent HTTP 204 responses from test_reports.json. This doesn't happen for all MRs that have associated JUnit tests.
The pipeline test results can be viewed via the pipelines/<id>/test_report
page successfully and consistently, but viewing them through the merge_requests/<id>
page is inconsistent.
Steps to reproduce
I'm unsure of what causes the inconsistent behavior, so I'm not sure how to reproduce. I haven't been able to confirm, but it almost seems like if this parsing fails once on the server, it always fails from then on. For the example MR I've been looking at, I believe I saw it report "Test summary results failed" once, but never again after that. But if it succeeds, it will continue to succeed.
Example Project
I have examples on our internal Gitlab server, but nothing I can easily share.
What is the current bug behavior?
The test report widget continually spins saying "Test summary results are being parsed".
What is the expected correct behavior?
The test results should be displayed.
Relevant logs and/or screenshots
Since the logs are long, I captured the output of gitlab-ctl tail
while trying to load the page, sanitized them, and put them here: gitlab_server.log
Output of checks
This is on an internal Gitlab server.
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: CentOS 7.4.1708 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 3.2.12 Git Version: 2.22.0 Sidekiq Version:5.2.7 Go Version: unknown
GitLab information Version: 12.5.3 Revision: 225d2e5bb89 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.9 URL: https://<gitlab_hostname> HTTP Clone URL: https://<gitlab_hostname>/some-group/some-project.git SSH Clone URL: git@<gitlab_hostname>:some-group/some-project.git Using LDAP: yes Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 10.2.0 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 10.2.0 ? ... OK (10.2.0) Running /opt/gitlab/embedded/service/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 ... 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: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 100 users of 100 limit.
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes 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 Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 30/10 ... yes 30/11 ... yes 7/12 ... yes 31/15 ... yes 31/18 ... yes 17/21 ... yes 17/22 ... yes 20/24 ... yes 20/25 ... yes 20/26 ... yes 21/27 ... yes 20/28 ... yes 20/29 ... yes 21/30 ... yes 20/31 ... yes 20/32 ... yes 21/34 ... yes 20/35 ... yes 22/36 ... yes 31/52 ... yes 32/53 ... yes 32/54 ... yes 32/55 ... yes 32/56 ... yes 32/57 ... yes 31/60 ... yes 30/63 ... yes 3/64 ... yes 3/65 ... yes 3/66 ... yes 3/81 ... yes 27/82 ... yes 28/83 ... yes 38/84 ... yes 38/85 ... yes 23/86 ... yes 23/87 ... yes 27/88 ... yes 39/89 ... yes 39/90 ... yes 40/91 ... yes 40/92 ... yes 40/93 ... yes 41/94 ... yes 42/95 ... yes 42/96 ... yes 27/97 ... yes 43/98 ... yes 43/99 ... yes 43/100 ... yes 43/101 ... yes 48/102 ... yes 48/103 ... yes 48/104 ... yes 49/105 ... yes 49/106 ... yes 49/107 ... yes 49/108 ... yes 49/109 ... yes 49/110 ... yes 45/111 ... yes 46/112 ... yes 46/113 ... yes 47/114 ... yes 47/115 ... yes 47/116 ... yes 47/117 ... yes 45/118 ... yes 23/119 ... yes 44/120 ... yes 44/121 ... yes 44/122 ... yes 29/123 ... yes 29/124 ... yes 15/128 ... yes 145/129 ... yes 145/130 ... yes 145/131 ... yes 145/132 ... yes 145/133 ... yes 145/134 ... yes 145/135 ... yes 150/136 ... yes 56/191 ... yes 64/192 ... yes 7/193 ... yes 7/194 ... yes 60/195 ... yes 7/196 ... yes 61/197 ... yes 7/198 ... yes 7/199 ... yes 61/201 ... yes 61/202 ... yes 61/205 ... yes 62/206 ... yes 64/208 ... yes 7/210 ... yes 60/211 ... yes 56/212 ... yes 60/213 ... yes 60/214 ... yes 66/216 ... yes 66/217 ... yes 70/230 ... yes 70/231 ... yes 2/232 ... yes 64/233 ... yes 64/236 ... yes 15/240 ... yes 60/244 ... yes 29/245 ... yes 64/249 ... yes 20/255 ... yes 16/258 ... yes 29/259 ... yes 51/260 ... yes 62/262 ... yes 7/263 ... yes 29/265 ... yes 22/266 ... yes 20/267 ... yes 60/268 ... yes 37/269 ... yes 37/270 ... yes 37/271 ... yes 37/272 ... yes 37/273 ... yes 85/274 ... yes 37/275 ... yes 37/276 ... yes 37/277 ... yes 60/278 ... yes 82/365 ... yes 20/366 ... yes 7/367 ... yes 87/368 ... yes 87/369 ... yes 87/370 ... yes 87/371 ... yes 74/372 ... yes 29/373 ... yes 7/374 ... yes 75/375 ... yes 15/376 ... yes 88/377 ... yes 88/378 ... yes 78/379 ... yes 93/380 ... yes 7/381 ... yes 7/391 ... yes 86/394 ... yes 74/411 ... yes 150/418 ... yes 7/424 ... yes 22/431 ... yes 106/432 ... yes 106/433 ... yes 106/434 ... yes 95/435 ... yes 150/436 ... yes 118/438 ... yes 118/439 ... yes 118/440 ... yes 118/441 ... yes 118/443 ... yes 118/445 ... yes 109/447 ... yes 90/448 ... yes 90/449 ... yes 60/450 ... yes 107/451 ... yes 109/453 ... yes 113/469 ... yes 3/500 ... yes 101/556 ... yes 20/581 ... yes 78/584 ... yes 3/977 ... yes 3/978 ... yes 3/979 ... yes 3/980 ... yes 3/981 ... yes 3/982 ... yes 3/983 ... yes 3/984 ... yes 3/985 ... yes 3/986 ... yes 3/987 ... yes 3/988 ... yes 3/989 ... yes 3/990 ... yes 3/991 ... yes 3/992 ... yes 3/993 ... yes 3/994 ... yes 102/995 ... yes 3/996 ... yes 3/997 ... yes 3/998 ... yes 3/999 ... yes 3/1000 ... yes 3/1001 ... yes 3/1002 ... yes 3/1003 ... yes 3/1004 ... yes 3/1005 ... yes 3/1006 ... yes 3/1007 ... yes 3/1008 ... yes 3/1009 ... yes 3/1010 ... yes 3/1011 ... yes 3/1012 ... yes 3/1013 ... yes 3/1014 ... yes 3/1015 ... yes 3/1016 ... yes 3/1017 ... yes 3/1018 ... yes 3/1019 ... yes 3/1020 ... yes 3/1021 ... yes 3/1022 ... yes 3/1023 ... yes 3/1024 ... yes 3/1025 ... yes 3/1026 ... yes 3/1027 ... yes 100/1042 ... yes 151/1050 ... yes 95/1051 ... yes 118/1052 ... yes 101/1053 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.22.0) Git user has default SSH configuration? ... yes Active users: ... 65 Is authorized keys file accessible? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
(we will only investigate if the tests are passing)
Possible fixes
- Update documentation to reflect that
paths
is required to make this work. - Fix the code so that
paths
is not required to find the file and show the result. - Per the note from @KonradBorowski
paths
missing is not always the issue.