[go: up one dir, main page]

Skip to content

Importing Github assets gone wrong

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When importing a Github project from Github Importer, the assets imported are broken and not identical packages/releases gets imported. Github Assets: image GitLab Imported assets: image GitLab Content of the archives are all 4 of them just a clone of the repo itself, the .deb package is missing completely: image

Steps to reproduce

Follow the steps to import a github project, specifically the imported project is: https://github.com/uhlhosting/Unit-PHP

Example Project

https://gitlab.com/uhlhosting/Unit-PHP/-/releases

What is the current bug behavior?

It breaks all imported assets!

What is the expected correct behavior?

Have all the github assets unchanged/untouched.

Relevant logs and/or screenshots

Provided above, no logs were produced.

Output of checks

This bug happens on GitLab.com and on Self Hosted GitLab identical issue.

Results of GitLab environment info

Expand for output related to GitLab environment info

```
root@gitlab:/home/gitlab# sudo gitlab-rake gitlab:env:info

System information
System:		Ubuntu 18.04
Current User:	git
Using RVM:	no
Ruby Version:	3.0.6p216
Gem Version:	3.4.14
Bundler Version:2.4.16
Rake Version:	13.0.6
Redis Version:	7.0.12
Sidekiq Version:6.5.7
Go Version:	go1.10.4 linux/amd64

GitLab information
Version:	16.2.3
Revision:	6a407717a9c
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	13.11
URL:		https://gitlab.uhlhost.net
HTTP Clone URL:	https://gitlab.uhlhost.net/some-group/some-project.git
SSH Clone URL:	git@gitlab.uhlhost.net:some-group/some-project.git
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers: gitlab, github

GitLab Shell
Version:	14.23.0
Repository storages:
- default: 	unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path:		/opt/gitlab/embedded/service/gitlab-shell
```

Results of GitLab application Check

Expand for output related to the GitLab application check
root@gitlab:/home/gitlab# sudo gitlab-rake gitlab:check SANITIZE=true
Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 14.23.0 ? ... OK (14.23.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 (cluster/worker) ... 1/1

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Checking Reply by email ...

IMAP server credentials are correct? ... Checking incoming@uhlhost.net
yes
Mailroom enabled? ... skipped
MailRoom running? ... skipped

Checking Reply by email ... Finished


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
Cable config exists? ... yes
Resque config exists? ... 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? ... skipped (omnibus-gitlab has neither init script nor systemd units)
Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units)
Projects have namespace: ... 
1/2 ... yes
1/35 ... yes
1/103 ... yes
1/104 ... yes
1/123 ... yes
3/124 ... yes
3/125 ... yes
3/126 ... yes
3/127 ... yes
1/129 ... yes
2/131 ... yes
1/133 ... yes
1/135 ... yes
1/139 ... yes
1/141 ... yes
1/146 ... yes
10/163 ... yes
10/165 ... yes
10/166 ... yes
2/168 ... yes
2/169 ... yes
2/170 ... yes
3/171 ... yes
3/172 ... yes
3/174 ... yes
1/175 ... yes
14/176 ... yes
23/177 ... yes
2/178 ... yes
1/180 ... yes
3/185 ... yes
3/186 ... yes
1/189 ... yes
22/190 ... yes
23/191 ... yes
23/192 ... yes
23/193 ... yes
23/194 ... yes
23/195 ... yes
2/197 ... yes
1/198 ... yes
2/199 ... yes
1/200 ... yes
1/201 ... yes
1/202 ... yes
1/203 ... yes
1/204 ... yes
2/205 ... yes
1/206 ... yes
2/207 ... yes
2/208 ... yes
23/209 ... yes
1/210 ... yes
1/211 ... yes
1/212 ... yes
1/213 ... yes
Redis version >= 6.0.0? ... yes
Ruby version >= 2.7.2 ? ... yes (3.0.6)
Git user has default SSH configuration? ... yes
Active users: ... 3
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
@gitlab-bot label \~"bug::\*"

Possible fixes

Edited by 🤖 GitLab Bot 🤖