Forgejo: CI monitoring on the agent's own pull requests #110
No reviewers
Labels
No labels
Agent
Ignore
Agent
In Progress
Agent
Planned
Agent
Planning
Agent
Ready
Agent
Triage
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck!110
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/issue-109-own-pr-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements plan step 20 as specified in #109.
ci_watchdog.own_prs.enabled(defaulttrue) →RepoConfig.ciWatchdogOwnPrs.handleCommitStatusnow fans out toown_ci_failedrows too: open agent PRs at that head that have a mapped session. Dedupe works likeci_failed. The gate (resolveOwnCi) re-reads the config and drops the row withhead moved since CI finishedwhen the head moved. Only an existing session is continued. Seed:buildOwnCiFailureSeed.019-forgejo-post-merge.sqlanddb/forgejo-post-merge.ts. When an agent PR merges, its implementer session gets awaitingrecord instead of being archived. The merge SHA comes frommerge_commit_sha, falling back toreadPull. Status events for that SHA settle the record atomically:failedand queue apost_merge_ci_failedrow (seed:buildPostMergeCiFailureSeed)failedrecord, oneforgejo_create_pris allowed and thegit_branchhead lock is lifted. The system context says so.ForgejoTriggerSummary.actionin protocol gains the two new actions.Verification
bun run typecheckis clean.bun test(apps/server): 991 pass, 3 fail. The 3 failures are unrelated to this PR and also show up on the base:session-policy.test.ts"policySystemContext: forgejo_conversation" (wording "comment or a label change")routes-forgejo-webhook.test.ts"ignored push is still listed" (expects 200, gets 202)enabled: falseOpen points
headBranch(started from the PR) is still locked to the old head branch forgit_branch. Its scope is not updated, so further review-driven fixes on the follow-up PR's branch would be denied. The plan didn't cover this, so I left it as is. A fix would be to treat the head branches of every mapped PR as allowed.merge_commit_shais in theclosedpayload (there is areadPullfallback). The other is whetherCloses: #Nwith a colon is recognised.Closes: #109