Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Pushing git notes causes long delays in Control Freak hook with "Block all large files" feature

Kanstantsin Charnukha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Oct 13, 2023

Prerequisites:

- Hundreds of commits in repository

- Each commit has git note attached

- Each git note has size from hundreds of bytes to a couple of KB and never exceeds size limit.

- "Block all large files" feature in Control Freak is on. Size limit is set to 1 MB.

 

At some point we noticed that pushing new git notes with

git notes --ref my_notes_ref add -f -F <note_json_path> <commit_hash>
git push origin my_notes_ref

started taking too much time (30 seconds to two minutes).

After investigating the cause, it turned out that Control Freak hook is taking all the time.

Disabling "Block all large files" feature decreased push time to 1-2 seconds.

Changing Size limit did not affect push time.

 

It seems like hook may try to traverse all commits available in repo to analyze file size during git notes push.

Is there a chance that the issue is fixed in future releases?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events