Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci_runner: Disable git gc auto detach #8233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sluongng
Copy link
Contributor

Ensure gc finishes before snapshotting, which saves disk space.

Ensure gc finishes before snapshotting, which saves disk space.
@@ -1972,6 +1972,9 @@ func (ws *workspace) config(ctx context.Context) error {
// Disable automatic gc - it can interfere with running `rm -rf .git` in
// the case where we don't sync successfully.
{"gc.auto", "0"},
// Disable running gc in the background process.
// We want the gc process to finish before snapshotting to save disk space.
{"gc.autoDetach", "false"},
Copy link
Member

@bduffany bduffany Jan 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be a little more clear to run with the --no-detach arg (git gc --auto --no-detach) instead of setting this config - wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants