Repository navigation
Rebuild the leaderboard on opener completion, and fix the queue report's null worker-status key #364
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
Rebuild the leaderboard on opener completion, and fix the queue report's null worker-status key #364
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
38c3df4
Name the worker-status bucket for branches that have none
ahernsean ad7ee49
Rebuild the leaderboard on opener completion, not on every poll
ahernsean 9e1e89b
Name the signal the revalidated kinds are chosen against
ahernsean ff699ff
Merge branch 'main' into claude/event-driven-reports
ahernsean 5d5f8e2
Cache a leaderboard body only when its builder can vouch for it
ahernsean db50fbe
Merge branch 'claude/event-driven-reports' of https://github.com/aher…
ahernsean bf178f4
Bound the queue report's rows, and stop calling a busy worker dead
ahernsean 83babdf
Publish a leaderboard body before releasing the waiters on it
ahernsean 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opener_completion_signal's exception-handling branches have no test coverage.AGENTS.md's "Before committing and pushing" section requires: "Write tests for every new or changed executable path." This function is entirely new, but every reference to it in
tests/test_report_server.pymocks it out viapatch("report_server.opener_completion_signal", ...), andtests/test_report_model.pynever calls it at all.The two
exceptbranches here — the connect failure at line 4036-4037 and the query failure at line 4042-4043 — are never exercised by any test, directly or incidentally. A regression in either exception type, the SQL, or the connection URI (f"file:{sources.queue_path}?mode=ro") would pass the full suite silently, since the only assertions that touch this path go through the mock.wordle/report_model.py
Lines 4032 to 4046 in ff699ff
https://github.com/ahernsean/wordle/blob/94ffca70f4f49e5bfcf7c2a4076fa34e14f04af2/AGENTS.md