Repository navigation
fix(github): keep project availability live on busy repositories #132
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
bc06b36
fix(github): keep project availability live on busy repositories
kixelated c630dc0
Merge main into fix/github-observe-liveness
kixelated f58a5bc
fix(jobs): reread an issue or pull request before binding a job to it
kixelated 821965c
Merge remote-tracking branch 'origin/main' into pr-132
kixelated 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
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,3 @@ | ||
| -- Scans split into history and occupancy passes. Observations are a cache, so | ||
| -- drop scans in the old shape; the next refresh starts both passes. | ||
| UPDATE github_project_state SET scan=NULL; |
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.
This gate now treats completed quest occupancy as sufficient for every workflow, although
resolve()still authorizes issue and pull jobs fromstate.activity. For example, anissues: closedwebhook only updateschangedAt, leaving cacheddata.state === "OPEN"and availability non-null, so the jobs route can start a planning job for the closed issue; similarly, after a PR closes during a long history pass, one occupancy refresh restores availability while the stale activity row can still authorizeiterate. Gate entity-targeted workflows on their authoritative pass or expose and check the current occupancy membership before creating the job.Useful? React with 👍 / 👎.
Uh oh!
There was an error while loading. Please reload this page.
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.
Agreed. Fixed in f58a5bc:
jobSourcenow rereads a job's issue or pull request from GitHub (/issues/Nor/pulls/N) and refuses one that is no longer open, or a PR whose head is not the observedheadRefOid. This covers both cases without gating on the history pass, which a busy repository may never finish, and without making issue webhooks invalidate availability. Regression test:refuses an issue or pull request that closed or moved since it was read.(Written by Claude Opus 5.5)