Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
testcases
testcases
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 703
    • Issues 703
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • quality
  • testcasestestcases
  • Issues
  • #1066

Closed
Open
Opened Oct 16, 2020 by Mark Lapierre@mlapierre🌴Owner

E2E test of repository cleanup

Feature doc: https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html#repository-cleanup

Steps

  1. Create a project.
  2. Push files that will be removed.
  3. Run git filter-repo --path files/to/remove --invert-paths
  4. Force push to remove the files.
  5. Go to Settings > Repository.
  6. Upload .git/filter-repo/commit-map.
  7. Click Start cleanup.
  8. Run git gc --prune=now in the GitLab/Gitaly container.
  9. Clear the cache: https://docs.gitlab.com/ee/administration/raketasks/maintenance.html#clear-redis-cache
  10. Confirm the files are gone from GitLab's history.

Also consider adding a test for automatic pruning within 24 hours: gitlab-org/gitlab#220104 (closed)

Edited Oct 16, 2020 by Mark Lapierre
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/quality/testcases#1066