Skip to content
Snippets Groups Projects

Run 'git gc' every 10 pushes

Merged username-removed-5302 requested to merge auto-gc into master

Merge request reports

Pipeline #783202 passed with warnings

Pipeline passed with warnings for 30b36c92 on auto-gc

Merged by avatar (Apr 23, 2025 11:08am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Added 1 commit:

    • 0beae70e - Use strings instead of symbols
  • Douwe Maan
    Douwe Maan @DouweM started a thread on the diff
  • 27 "Housekeeping successfully started"
    28 end
    29
    30 def needed?
    31 @project.pushes_since_gc >= 10
    32 end
    33
    34 def increment!
    35 @project.pushes_since_gc += 1
    36 @project.save!
    37 end
    38
    39 private
    40
    41 def try_obtain_lease
    42 lease = ::Gitlab::ExclusiveLease.new("project_housekeeping:#{@project.id}", timeout: LEASE_TIMEOUT)
  • Reassigned to @jacobvosmaer

  • Added 1 commit:

    • 30b36c92 - Use an exception to pass messages
  • Reassigned to @DouweM

  • Douwe Maan Enabled an automatic merge when the build for 30b36c92 succeeds

    Enabled an automatic merge when the build for 30b36c92 succeeds

  • Douwe Maan Status changed to merged

    Status changed to merged

  • Douwe Maan mentioned in commit ea7d062f

    mentioned in commit ea7d062f

  • mentioned in issue #15021 (moved)

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading