Empty artifacts do not show their size in the size column
Summary
Empty Artifacts without a size do not show their size in the size column when viewing artifacts.
Steps to reproduce
- Have a job that produces an empty artifact
- View artifacts
- Observe an empty column for that file
Example Project
What is the current bug behavior?
The 0B file is not showing the size in the column.
What is the expected correct behavior?
The file size is shown, meaning we expected to see "0 B" in the size column.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Edited by Filip Aleksic