Terraform report: support more than one plan
Summary
Having more than one job producing Terraform plan and using artifact:reports:terraform
will show one plan but entirely hide the other.
Steps to reproduce
Have two jobs producing two different Terraform plans, observe the result on merge request page.
Example Project
N/A, the project is not public, on on-premise GitLab installation.
What is the current bug behavior?
One plan is only shown in the widget, the other one is lost.
What is the expected correct behavior?
A summary of both plans should be displayed, much like artifact:reports:junit
merges multiple XML reports into single widget.
Relevant logs and/or screenshots
The screenshot shows the widget for a pipeline with two jobs:
One job had 2 modified resources, the other one had 1 modified resource. Only the results for one of the jobs are visible.
Output of checks
This bug happens on GitLab.com - my assumption is that yes, it happens also on GitLab.com, as this functionality is not exclusive to on-premise installations.
Results of GitLab environment info
Expand for output related to GitLab environment info
I've allowed myself to redact the exact URL of the installation, it is available in support case tho.
# gitlab-rake gitlab:env:info System information System: Ubuntu 18.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.6.6p146 Gem Version: 2.7.10 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.9 Git Version: 2.26.2 Sidekiq Version:5.2.7 Go Version: unknown GitLab information Version: 13.0.0-ee Revision: ef3e35341f6 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 11.6 URL: https://gitlab.REDACTED.com HTTP Clone URL: https://gitlab.REDACTED.com/some-group/some-project.git SSH Clone URL: git@gitlab.REDACTED.com:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: google_oauth2, github GitLab Shell Version: 13.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
# gitlab-rake gitlab:check SANITIZE=true Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.2.0 ? ... OK (13.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: ... LDAP is disabled in config/gitlab.yml
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: ... 40/1 ... yes 40/2 ... yes 10/3 ... yes 12/4 ... yes 40/6 ... yes 11/8 ... yes 12/10 ... yes 12/11 ... yes 40/12 ... yes 9/13 ... yes 40/14 ... yes 40/15 ... yes 40/16 ... yes 40/17 ... yes 33/19 ... yes 33/20 ... yes 33/21 ... yes 12/23 ... yes 40/27 ... yes 12/28 ... yes 40/29 ... yes 40/30 ... yes 40/31 ... yes 40/32 ... yes 40/33 ... yes 40/34 ... yes 40/35 ... yes 40/36 ... yes 40/37 ... yes 12/38 ... yes 12/39 ... yes 12/40 ... yes 40/41 ... yes 40/42 ... yes 12/43 ... yes 40/44 ... yes 40/45 ... yes 40/46 ... yes 40/47 ... yes 40/48 ... yes 40/49 ... yes 40/50 ... yes 40/51 ... yes 40/53 ... yes 40/54 ... yes 40/55 ... yes 40/56 ... yes 40/57 ... yes 40/58 ... yes 40/59 ... yes 40/60 ... yes 40/61 ... yes 40/62 ... yes 40/63 ... yes 40/64 ... yes 12/66 ... yes 40/67 ... yes 12/69 ... yes 12/70 ... yes 40/72 ... yes 40/74 ... yes 11/77 ... yes 40/78 ... yes 12/80 ... yes 12/83 ... yes 12/85 ... yes 12/86 ... yes 12/87 ... yes 33/88 ... yes 21/90 ... yes 33/93 ... yes 12/94 ... yes 20/95 ... yes 9/96 ... yes 11/97 ... yes 13/100 ... yes 6/103 ... yes 33/105 ... yes 13/106 ... yes 33/107 ... yes 40/109 ... yes 10/110 ... yes 33/111 ... yes 40/112 ... yes 33/113 ... yes 20/114 ... yes 33/115 ... yes 33/116 ... yes 12/118 ... yes 12/119 ... yes 12/120 ... yes 40/121 ... yes 12/124 ... yes 7/127 ... yes 33/128 ... yes 7/130 ... yes 12/131 ... yes 12/133 ... yes 33/134 ... yes 33/136 ... yes 33/137 ... yes 12/138 ... yes 33/139 ... yes 76/140 ... yes 33/141 ... yes 7/142 ... yes 12/143 ... yes 33/144 ... yes 12/146 ... yes 70/147 ... yes 70/148 ... yes 10/149 ... yes 7/150 ... yes 10/151 ... yes 10/154 ... yes 10/155 ... yes 88/156 ... yes 88/157 ... yes 88/158 ... yes 88/159 ... yes 68/160 ... yes 88/162 ... yes 7/165 ... yes 90/166 ... yes 9/167 ... yes 12/168 ... yes 10/169 ... yes 10/170 ... yes 10/172 ... yes 35/173 ... yes 10/174 ... yes 88/175 ... yes Redis version >= 4.0.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.6) Git version >= 2.22.0 ? ... yes (2.26.2) Git user has default SSH configuration? ... yes Active users: ... 20 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... no Try fixing it: Please migrate all projects to hashed storage as legacy storage is deprecated in 13.0 and support will be removed in 14.0. For more information see: doc/administration/repository_storage_types.md Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished