Skip to content

chore: stop ignoring cmd/prw, deflake an auto-watch test - #30

Merged
devblac merged 1 commit into
mainfrom
chore/test-and-gitignore
Nov 13, 2026
Merged

devblac merged 1 commit into
mainfrom
chore/test-and-gitignore

Conversation

@devblac

@devblac devblac commented Nov 8, 2026

Copy link
Copy Markdown
Owner
  • .gitignore: the bare prw pattern also matched the cmd/prw/ directory, so new source files there were ignored by git. Now only /prw and /prw.exe (binaries built in the root) and /release/ are ignored. Verified with git check-ignore: cmd/prw/newfile.go is no longer ignored.
  • Flaky test: TestRun_PicksUpAutoWatchEnabledWhileRunning failed once in a full go test ./... run (a 1s tick missed its fixed 1.5s window under load). It now stops as soon as the result appears, with a 10s cap; it passes 5/5 with -race in ~1.1s.

🤖 Generated with Claude Code

.gitignore had a bare "prw" pattern, which matches any file or directory named
prw, including cmd/prw: new source files there were silently ignored. Ignore
only the binaries built in the repository root (/prw, /prw.exe), plus
/release/.

TestRun_PicksUpAutoWatchEnabledWhileRunning ran the watcher for a fixed
1.5s and expected a 1s tick inside it, which failed on a loaded machine. It
now stops as soon as the auto-watched PR is in the watch list, with a 10s cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T03:22:45.252601Z dba9cdd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devblac
devblac merged commit f46ee57 into main Nov 13, 2026
2 checks passed
@devblac
devblac deleted the chore/test-and-gitignore branch November 13, 2026 03:09
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