Skip to content

Stop tracking tmp/ scratch output and ignore the directory - #4

Merged
acoliver merged 1 commit into
feature/issue-65-open-responsesfrom
chore/ignore-tmp-scratch
Sep 6, 2026
Merged

acoliver merged 1 commit into
feature/issue-65-open-responsesfrom
chore/ignore-tmp-scratch

Conversation

@acoliver

@acoliver acoliver commented Sep 5, 2026

Copy link
Copy Markdown
Owner

e675674 committed three files that look like local scratch output rather than source:

file size what it is
tmp/ocr-pr66/review.json 76 KB an automated code-review dump of this repository's own PR janfeddersen-wq#66
tmp/ocr-pr66/review.stderr 0 B the stderr from that run
tmp/commitmsg.txt 830 B a commit message draft

They are tracked on feature/issue-65-open-responses, which is the head of the open upstream PR, so they are currently part of the diff that PR presents for review.

The cause is a gap in .gitignore: it covers *.log and logs/ but has no rule for tmp/, which is where local verification output gets written. Anything in there without a .log extension is addable, so this can happen again, and it nearly did while I was working on the steering branch (a verification exit-code sentinel would have been caught by exactly the same gap).

This git rm --cacheds the three paths, leaving them on disk, and adds a single tmp/ line to the existing "# Logs" section of .gitignore. Nothing else is touched: no Rust source, no manifests, no changelog, no workflows.

Verification

  • git ls-files tmp/ returns nothing
  • git check-ignore -v tmp/anything.txt reports .gitignore:68:tmp/
  • all three files still present on disk at their original sizes, now untracked
  • cargo check --workspace --all-features exits 0, confirming the removal touched nothing the build depends on

The staged diff is exactly four files: one added line, three deletions.

Why this targets the feature branch

Based on feature/issue-65-open-responses so it can land before that branch goes upstream, rather than carrying the scratch files into janfeddersen-wq#66. It is independent of the steering work in #3; the two touch no common files.

Commit e675674 accidentally tracked three scratch files: an automated
code-review dump of this repository's own PR janfeddersen-wq#66, its empty stderr
companion, and a commit message draft. These are artifacts of the
review and commit workflow rather than source, so they do not belong
in version control.

tmp/ is where local verification output is written, and the ignore
rules covered *.log and logs/ but not this directory, which is how the
files slipped in. A tmp/ rule prevents the same accident from
recurring. The files remain on disk, now untracked.
@acoliver

acoliver commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

One reason to land this before janfeddersen-wq#66 goes in rather than after.

Upstream janfeddersen-wq#66 currently shows all four checks passing (Check, Clippy, Format, Test) with no open review threads, so it is ready to merge whenever jan gets to it. That CI run was computed on the branch as it stands, which means the tree those green checks validated includes tmp/ocr-pr66/review.json (76 KB), tmp/ocr-pr66/review.stderr and tmp/commitmsg.txt.

Merging this first means the scratch files never reach upstream and janfeddersen-wq#66 gets a fresh run on a clean tree. Merging it after means they land in main and need a follow-up removal there.

Either order works, and neither is urgent. This is only cheaper now.

@acoliver
acoliver merged commit b53a672 into feature/issue-65-open-responses Sep 6, 2026
acoliver added a commit that referenced this pull request Sep 7, 2026
Commit e675674 accidentally tracked three scratch files: a code-review
dump, its stderr companion, and a commit message draft. They are
workflow artifacts, not source. This restores the state merged to the
remote in PR #4 so the rebase force-push does not undo it, and adds a
tmp/ ignore rule to prevent a recurrence. The files remain on disk,
now untracked.
acoliver added a commit that referenced this pull request Sep 7, 2026
Commit e675674 accidentally tracked three scratch files: a code-review
dump, its stderr companion, and a commit message draft. They are
workflow artifacts, not source. This restores the state merged to the
remote in PR #4 so the rebase force-push does not undo it, and adds a
tmp/ ignore rule to prevent a recurrence. The files remain on disk,
now untracked.
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.

1 participant