Repository navigation
feat(babysitter): wake on real PR review feedback, not only verdicts #633
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b1a5809
feat(babysitter): wake on real PR review feedback, not only verdicts
khaliqgant b9c6924
feat(babysitter): Garden PRs in scope by default; own comments need a…
khaliqgant c176f9c
feat(babysitter): babysit Software Garden drafts; label opt-in drafts…
khaliqgant 49b4b1b
fix(babysitter): review round 1: file-level, pending-review and equal…
khaliqgant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/babysitter/artifacts/babysitter-standalone.manifest.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
examples/babysitter/evidence/f1-feedback-filter/01-signals-red.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| $ node --experimental-strip-types --test tests/signals.test.ts | ||
| ✔ a failing commit status is a failing check; a newer success on the same context clears an older failure (2.913465ms) | ||
| ✔ reviews are paginated before standing verdicts are derived (0.962498ms) | ||
| ✔ a report older than any comment window is still found; only comments after the last report are returned (0.8608ms) | ||
| ✔ a marker in someone else's comment is not a report (0.413659ms) | ||
| ✔ a head that moves during the read refuses (1.100735ms) | ||
| ✔ failing check runs at the head are failing checks; running, passing and other-head runs are not (0.901415ms) | ||
| ✔ settleReport keeps the earliest report for a head and deletes a later duplicate of its own (0.869927ms) | ||
| ✔ a PR full of long reviews, comments and failing checks still fits the journal and keeps every actor (3.092858ms) | ||
| ✔ only a report for the current head counts, and report history never grows the payload (2.598259ms) | ||
| ✔ when shortened text still overflows, the oldest comments go first at the 200-char floor (12.446279ms) | ||
| ✖ inline review comments from the author, members and allowlisted review bots are feedback; outsiders, other bots and this bot are not (1.09783ms) | ||
| ✖ a thread Babysitter already answered, an outdated comment, and feedback before its last report are not feedback (0.755033ms) | ||
| ✖ a commented review body is feedback; an empty one, an outsider's, or a change request (already a verdict) is not (0.755585ms) | ||
| ✖ review feedback is shortened and, past the floor, dropped oldest first so the read still fits the journal (0.802462ms) | ||
| ℹ tests 14 | ||
| ℹ suites 0 | ||
| ℹ pass 10 | ||
| ℹ fail 4 | ||
| ℹ cancelled 0 | ||
| ℹ skipped 0 | ||
| ℹ todo 0 | ||
| ℹ duration_ms 256.559028 | ||
|
|
||
| ✖ failing tests: | ||
|
|
||
| test at tests/signals.test.ts:173:1 | ||
| ✖ inline review comments from the author, members and allowlisted review bots are feedback; outsiders, other bots and this bot are not (1.09783ms) | ||
| TypeError: Cannot read properties of undefined (reading 'map') | ||
| at TestContext.<anonymous> (file:///home/khaliqgant/Projects/AgentWorkforce/flows-worktrees/babysitter-f1/examples/babysitter/tests/signals.test.ts:182:37) | ||
| at async Test.run (node:internal/test_runner/test:1409:7) | ||
| at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) | ||
|
|
||
| test at tests/signals.test.ts:187:1 | ||
| ✖ a thread Babysitter already answered, an outdated comment, and feedback before its last report are not feedback (0.755033ms) | ||
| TypeError: Cannot read properties of undefined (reading 'map') | ||
| at TestContext.<anonymous> (file:///home/khaliqgant/Projects/AgentWorkforce/flows-worktrees/babysitter-f1/examples/babysitter/tests/signals.test.ts:198:37) | ||
| at async Test.run (node:internal/test_runner/test:1409:7) | ||
| at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) | ||
|
|
||
| test at tests/signals.test.ts:201:1 | ||
| ✖ a commented review body is feedback; an empty one, an outsider's, or a change request (already a verdict) is not (0.755585ms) | ||
| TypeError: Cannot read properties of undefined (reading 'map') | ||
| at TestContext.<anonymous> (file:///home/khaliqgant/Projects/AgentWorkforce/flows-worktrees/babysitter-f1/examples/babysitter/tests/signals.test.ts:210:37) | ||
| at async Test.run (node:internal/test_runner/test:1409:7) | ||
| at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) | ||
|
|
||
| test at tests/signals.test.ts:214:1 | ||
| ✖ review feedback is shortened and, past the floor, dropped oldest first so the read still fits the journal (0.802462ms) | ||
| TypeError: Cannot read properties of undefined (reading 'map') | ||
| at TestContext.<anonymous> (file:///home/khaliqgant/Projects/AgentWorkforce/flows-worktrees/babysitter-f1/examples/babysitter/tests/signals.test.ts:219:32) | ||
| at async Test.run (node:internal/test_runner/test:1409:7) | ||
| at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) | ||
| exit=1 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.