[Specs] project_uploads_spec.rb depends on content of upload directory

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

  • Close this issue

spec/lib/gitlab/cleanup/project_uploads_spec.rb most likely will fail locally because of non-empty gitlab-development-kit/gitlab/public/uploads directory. For development env it's very likely that it contains something.

  1) Gitlab::Cleanup::ProjectUploads#run! ignorable cases does not move any non-project (FileUploader) uploads
     Failure/Error: logger.info result

       (Double :logger).info("Did move to lost and found /Users/valery/gitlab-development-kit/gitlab/public/uploads/namespace4/pro.../uploads/-/project-lost-found/namespace4/project4/31cc83c3bc9eb1e5f0d471f35d916c17/rails_sample.jpg")
           expected: 0 times with arguments: (/move|fix/i)
           received: 1 time with arguments: ("Did move to lost and found /Users/valery/gitlab-development-kit/gitlab/public/uploads/namespace4/pro.../uploads/-/project-lost-found/namespace4/project4/31cc83c3bc9eb1e5f0d471f35d916c17/rails_sample.jpg")
Edited Sep 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading