Repository navigation
Conversation
… red check is judged flaky or broken before code changes A finished run's pull request is looked at when the run completes and on the 15 minute sweep (pr_watch). One act per look, claimed on the run record against the commit it is about: a reviewer verdict missing on the head asks for the review of that commit, changes requested get their fix round, a conflict with a moved base starts the conflict round, checks red on the head and not on the base go to the fix loop, and a merge by anyone gets its merge commit's deploy watched. set_run_complete (CI green with no event to read, no checks, the 24 hour cap) completed a run without the hand-off review every other ending asks for, so a fix pushed just before it was never reviewed and the reviewer stayed at changes requested on the commit before the fix. Both endings now look at the pull request. The run API returns merge_standing: the one true reason the pull request is where it is, what happens next, and whether a person has to act, which is only for the team's own rule and names where it is set. Before a CI fix round the failure is judged (flaky_checks): a failure that names a changed file is the change's; a workflow with a record of failing and then passing on one commit of other pull requests, naming no changed file, is re-run once and no code changes for it. The record is kept per repository. A re-run GitHub refuses for a missing Actions write permission is said on the pull request and still changes no code. The description gains a section for the reviewer built from records: where to look first, how to roll back and what a revert does not undo, and each verification line pointing at a check result on the head. A deploy of CoderHelm's own merged change that fails on checks passing before the merge gets a revert pull request built from trees, with the failing jobs as evidence, opened ready and never merged by CoderHelm. A file changed again since is never overwritten.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
A run stays with its pull request until it is merged and deployed, and never rests as Done with its own reviewer's verdict missing on the head. A finished run's pull request is looked at when the run completes and every 15 minutes: a verdict missing on the head asks for the review of that commit, changes requested get their fix round, a conflict with a moved base is resolved, checks that went red later go to the fix loop, and a merge by anyone gets its deploy watched. A failed deploy of CoderHelm's own change gets a revert pull request with the evidence, ready for the team's approval and never merged by CoderHelm. A red check is judged flaky or broken before any code changes for it. The description gains a short section written for the reviewer, and the run API names the one true reason a pull request is where it is.
Changes
A run never rests as Done on a stale or negative verdict (
pr_watch,resume)set_run_complete(CI green with no event to read, no checks, the 24 hour cap) completed a run without the hand-off review every other ending asks for. A fix pushed just before it was never reviewed, so the reviewer stayed at "changes requested" on the commit before the fix while the run read Done.pr_watch::after_completionruns on both endings, andpr_watch::sweepon the existing 15 minutereview_sweeptick.pr_watch::decidepicks one act per look: resolve a conflict, send red checks to the fix loop, ask for the review of the head, take the review's findings in a fix round, or watch the deploy.ceil_passes) only counts: the ceiling is 300 and did not end the run in the incident.The run page's reason (
common::merge_standing, run API)merge_standing::decidereturns one standing with a stable code, the sentence, what happens next, whether a person has to act and where the rule is set. CoderHelm's own work (a review of the head, a fix round, checks, a conflict) never asks for a person.auto_merge_off("Auto-merge is off for this repo", link to/reviewer/config),needs_person_approval(the repo's auto-merge setting requires a person's approving review),repo_requires_person_review(GitHub reports the branch's rules block the merge, link to the branch rules).reviewing, naming both commits.merge_standing;docs/api/openapi.jsonis regenerated.auto_mergewithrequire_human_approvaloff (OnApproveConfig, evaluated byawait_merge). No merge rule changes here.Flaky or broken (
common::flaky_checks,flaky,resume)FLAKY#owner/repoin the settings table, versioned writes), written only when a head that failed was re-run with nothing changed and passed.awaiting_ciinstead of leaving itrunninguntil the stale reset.For the reviewer (
reviewer_guide,completeness,pr)apply_checksandrefresh_descriptionfrom the current diff and head.Through deploy (
health_check,deploy_revert)deploy_revert::proposebuilds the revert from trees: every path the merge changed goes back to what it was, on the base as it stands. A file changed again since is never overwritten: no revert is opened and the report names the files. One revert per merge; the pull request opens ready, starts withReverts #N, carries the failing jobs as evidence, and is never merged by CoderHelm.Shared files touched:
resume.rs(the judgement before the fix round,try_rerun_once, both endings),pr.rsandcompleteness.rs(two new owned sections).implement.rsandreview_fix/mod.rsare not touched.Not in this change
merge_standingin a follow-up toCoderHelm/coderhelm, which can only pass its API contract check once this is merged.Verification
cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspaceinservices/: all pass locally.flaky_checks(record, paths, judgement, section),merge_standing,reviewer_guide,deploy_revert(plan, body, report),pr_watch(decision and claims per commit).ba_verdict_on_old_commit,bb_flaky_not_broken,bc_stays_through_merge_and_deploy, each also checking the pipeline still calls the decision at its place.docs/incidents.mdhas their rows.