Skip to content

fix(copywrite): ignore runs/ training artifacts in header scan - #80

Merged
wlgys8 merged 1 commit into
Motphys:mainfrom
Jiaxi-Huang:fix/copywrite-runs-oom
Sep 25, 2026
Merged

wlgys8 merged 1 commit into
Motphys:mainfrom
Jiaxi-Huang:fix/copywrite-runs-oom

Conversation

@Jiaxi-Huang

Copy link
Copy Markdown
Collaborator

Closes #79

The add-headers hook runs with pass_filenames=false, so copywrite
recursively scans the whole working directory and never reads
.gitignore. With multi-GB checkpoints under runs/ it reads every
artifact into memory and gets OOM-killed (17-20 GiB RSS reported).

Add runs/** to project.header_ignore so the hook skips training
outputs entirely.

Fixes Motphys#79
@Jiaxi-Huang Jiaxi-Huang self-assigned this Sep 25, 2026
@wlgys8
wlgys8 merged commit 5bd0054 into Motphys:main Sep 25, 2026
5 checks passed
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.

Copywrite 扫描训练产物导致系统内存耗尽

2 participants