Skip to content
Snippets Groups Projects

Speed up migration squasher

Merged Kev Kloss requested to merge kkloss-speed-up-migration-squasher into master

What does this MR do and why?

This speeds up the migration squasher (rake gitlab:db:squash) by skipping to pass files that don’t exist to 'git rm'.

On my laptop, the task takes about 265s before the change, which drops down to about 38.033s ± 0.658s after the change. I didn’t measure a full hyperfine run because it would've taken over half an hour. About a 86% drop should be significant enough though.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Run bundle exec rake gitlab:db:squash\[origin/16-3-stable-ee\]
  2. See that it finishes in less than half a minute
Edited by Kev Kloss

Merge request reports

Merge train pipeline #1482170398 passed

Merge train pipeline passed for b36e44b4

Approval is optional

Merged by Omar QunsulOmar Qunsul 5 months ago (Oct 4, 2024 4:31pm UTC)

Merge details

  • Changes merged into master with 53dc6f84.
  • Deleted the source branch.

Pipeline #1482177378 passed

Pipeline passed for 53dc6f84 on master

10 environments impacted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading