You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Checkpoint staging fails on macOS for files over the big-file threshold #39913
On macOS, the three checkpoint bulk staging cleans operation-owned packs after … and can retry tests in apps/server/src/vcs/GitVcsDriver.test.ts fail every run, with ENOENT on tmp_objdir-t3-checkpoint-*/pack. The same Git command fails outside the tests. So a checkpoint that stages a file larger than core.bigFileThreshold (512 MiB by default) should fail on macOS too. I have not run one.
Diagnosis
On darwin and win32, checkpoint staging adds -c core.fsyncMethod=batch (GitVcsDriver.ts#L1038-L1046), and it stages into a private GIT_OBJECT_DIRECTORY. With batch mode, Git writes the big file's pack under a nested tmp_objdir-bulk-fsync-* folder. At the end it cannot rename that pack into the private folder, and git add exits 128:
fatal: unable to rename temporary file to '<repo>/.git/objects/tmp_objdir-priv/pack/pack-<sha>.pack'
Linux does not use batch mode, which may be why CI does not see this.
Steps to reproduce
Outside T3 Code, in a repository with at least one commit:
Activity