Repository navigation
Wait for the deploy label's workflow before a draft leaves draft, and quote its run - #705
Conversation
… quote its run A repository's deploy label (the reviewer setting that starts its own preview deploy or end-to-end runs) was only a wait before auto-merge. A pull request was marked ready while the labelled workflow still ran, its description never said how that workflow ended, and a workflow that takes its label off when its run ends never ran again after a fix round pushed a new commit. common::deploy_label finds the workflows the label starts (their jobs ask for it, read with workflow_gate) and their latest run on the head: - The ready decision waits while one runs, or for up to three minutes after the label was added when its run hasn't started yet. A failed run is failing CI, which the run's CI fix loop already takes; it is named as a hold only when no failing check says it (a workflow that failed to start). - Verification shows each run with its conclusion and a link to it, kept in sight when the CI checks are grouped, and Full test evidence lists them. When the draft is marked ready after the run, the description is rebuilt so it quotes the finished run. - A label that came off is put back on a new head, once: only on a pull request CoderHelm labelled before, never twice on one head, never when a run of the workflow already ran on it. The head is kept on the merge gate's record, which the opening of the pull request, the ready decision and the merge gate all write, so the merge gate no longer starts a second deploy of a head that was already deployed.
… and a run delivers its change whatever outside work it needs (#703) * A description gets a final review before it is posted, follows the repository's template, and a run delivers its change whatever outside work it needs A pull request description showed six checks as "still running when this was written" and never changed them, asked a person for deploy credentials in a repository that deploys staging from a label CoderHelm adds, said the file to read first and the way back twice each, closed its review focus with "nothing is out of the ordinary", named a page by its raw id, and listed running and did-not-run checks on one line. The repository's template only guided the first draft. - Final review in the one save (common::pr_review): a running check reads Running and is never a result; nothing the gate does not let through reaches a person; nothing said twice; no filler; no raw id beside a name; running and did-not-run said apart. - Running checks render as Running, the conclusion says they are still running, and the stamp marks the description for a rebuild until they end, so the checks step, the watch and the end of the run replace them. - The reviewer guide gives way to the lead (it said Read first and Rollback again); its own lines keep running apart from did-not-run. - A staging deploy the repository lets CoderHelm start (a dispatchable or labelled workflow) is CoderHelm's step (outside_work::own_startable). - The repository's pull request template is the visible structure: its headings in order, filled with CoderHelm's content (common::pr_template, pr_body::render_templated); the rebuild reads it, cached per repository. - A plan with code is implemented and its pull request opened whatever outside work it needs (route_for_plan), and a run whose pull request is open ends completed, with person-only items listed once under Needed from you and on the run page. - Incident case bl replays the posted description with neutral names. * A deploy CoderHelm can start is found, started and recorded, and feedback about outside work keeps the code change - Detection: a staging deploy job a pull request label starts, or a dispatchable staging workflow, is a deploy route even when it is not the CMS's; label conditions are read with or without spaces; a run line that runs a package deploy script counts. A production-only route is never taken for staging. - The gate is told: classify_with sets person_gate::Context::can_deploy from the repository's routes, and a deploy CoderHelm can start and has not tried is never a person's credential item (an attempt whose own cause is a listed reason still is). The executor classifies with it. - Executed, not reworded: next_action gives the moved step its route's action (label or dispatch); record_end records the run that ended on the step, which the resume saves on the run. - Feedback: a person saying part of the fix is outside the code keeps the open pull request and its code when the plan coded (route_for_feedback), records the outside part on the run's decision and lists it on the pull request; only a pull request with no code to keep is closed as before. - Incident bl: three cases for the above.
* Keep every event path inside its team An audit of inbound webhooks, live streams, queues, notifications, team knowledge and caches found four keys that named a shared thing instead of the team. Each is proven by a test that failed before the fix. - Slack workspace and Teams webhook links are claimed by one team at a time (flag::claim_chat); another team's link is refused, an unlink only drops the caller's own, and inbound routing requires the team's settings to still name the key. - Run page GitHub check reads are cached per installation (read_key), so a same-named repository never gets another installation's cached checks. - Composed replies are cached by the full prompt they were written from, so two Jira sites sharing a ticket key and comment id never share one. - Run event rows carry team_id; every read keeps only the asking team's rows, all through common::run_events. - The plan chat stream token is scoped to its stream, like the brain's. Incident case bm_teams_never_cross scans for new inbound routes, process-wide caches and direct events table access that don't say how they stay in their team. * Keep the plain session token builder for tests only The plan chat stream was its last caller outside tests; streams now use scoped tokens. * Key the PR template cache by installation, as every process-wide cache is * Read the installation through its accessor
…715) * A description built by an earlier writer is rebuilt after an upgrade The description stamp named the head, the digest of the checked text and running checks, never the writer that built it, so a pull request opened before an upgrade kept its old layout and wording on an unchanged head. - The stamp carries the writer version (description::WRITER, now 2). A stamp without a version, or with another, is not current. Old stamps still parse. - The pull request watch sweep catches up open pull requests CoderHelm opened, whatever the age of their run: up to 3 per team and 15 per sweep, inside the sweep's GitHub budget, through the one rebuild (reconcile_run, final review in save). Each is marked on its run (description_writer) so it is read once per writer version. - A description with no CoderHelm stamp, or whose checked text a person changed, is left as it is. - Incident bn replays an old-layout description on an unchanged head. * The catch-up builds a description wholly CoderHelm's from the facts alone An older description had no lead or reviewer-block markers, so its rebuild kept the old lines (frozen "still running" rows, "Look first", "Roll back") in a fold. When the stamp's digest still matches, nothing in the body is a person's: the catch-up (description::catch_up_run) now drops the old body and renders it from the facts of the head, keeping only a line that closes an issue. The build checks the body again as it reads it, so an edit made since the sweep looked is never written over.
…ges anything (#722) A throttled DescribeChangeSet during the deploy role check came back as "couldn't check", failed the update and told the admin to press Update again. Throttling now never counts as a refusal: every AWS client uses botocore's adaptive retry mode, each step before the change set runs is tried again with backoff and jitter, and the update (or the Update press) keeps waiting as "AWS is busy, retrying (attempt n)". Only after 10 minutes does it fail, in words that ask nothing of anyone, and it starts again by itself 30 minutes later unless an admin cancels it (DELETE /api/system/update). The model check stays pending, never refused, while AWS is busy.
…ime continues (#726) A review-fix round that answered a finding with proof and pushed nothing was never read by a review: the parked round's end marked the pull request ready and completed, the completion guard reran the checks (which never review the head), and the next look refused another round on the same head and held the draft for a person. A check the step was too short to start was counted as a block and could end in that same hold. - A round that pushed nothing, or used every step, goes back to a review of the same head; the reviewer is given the round's account and the rule for judging proof. A finished run whose last round no review read is sent back to that review on the next look of the ready sweep or the pull request watch, so stuck runs recover by themselves. - A command, run_checks or codegen a step is too short to start is owed: the pass continues in a fresh step that runs it first. A round cut short by time is neither a stall nor a block in the ledger. - No CoderHelm limit holds a draft for a person: what is left after every approach is listed as CoderHelm's note, the pull request goes ready, and CoderHelm's verdict is kept so nothing merges over it. Passing moments (a race, a read that failed) are waits. - Incident bt reproduces the case.
…e send errors (#727) The relay refused set-up and forgot-password emails (inviter_not_admin): only the config's admins were ever listed as relay admins, so the owner and other admins, copied-over ones included, could not vouch. The install now names all its admins to a new signed /hybrid/email/admins sync, after role changes and whenever the relay refuses an admin, then retries. An unconfirmed Cognito sign-up counts as no account: forgot-password and the Members page send the set-up email, and signing up again replaces it. Refused sends answer with the reason. The custom-message Lambda reads SES v2's TemplateContent.
POST /api/brain/threads/delete takes up to 100 ids and deletes each one the caller started, in their own team, with the same checks as the single delete (now shared in delete_verdict). Someone else's private chat or another team's id answers "No such chat."; a teammate's shared chat is refused. Each id gets its own result, and one failure stops nothing else.
…ent from the install (#730) - A GitHub-only record (no email) next to the same person's record by email is folded into it at their GitHub sign-in: the higher built-in role stays and the GitHub-only record is removed. The GitHub email is never written onto a second record on the same team. - The GitHub id lookup reads every record instead of one at random, so an install's own record (or, hosted, the team someone was added to) wins. - An invite dated before the organization was made on the install and never sent from it is offered by forgot-password and the bulk set-up email; sending it restarts its 30 days. - A refused password sign-in is logged by cause; no sign-in here is info. Depends on #727.
#724) Rust (clippy) and Rust (tests) still run on every pull request and report, but a changed-files check against the merge base skips their steps when no file the workspace builds, embeds or scans changed (a dashboard pin in selfhost/versions.json). The list lives in .github/scripts/rust_affected.py with a unit test; anything uncertain runs everything.
work_needs_me gathers what waits on the asker, side by side and time-bounded: run questions (with their options), runs waiting on an outside change, Coderhelm's open pull requests on their own work, tool calls held for an admin, Jira tickets assigned to them or mentioning them unanswered, and GitHub review requests, their own pull requests with changes asked for or failing checks, and unanswered mentions. Grouped by urgency, ranked by priority and age, stale tickets left out; a source that couldn't be read is named. Any wording routes there, and an answer that skipped it is sent back once. The Jira app gets a by-person read. Data source steps now say what they read instead of "api get".
…ry reads run as tools, commands run after the install (#732) - curl/wget GET or HEAD run through the page check's safety rules and return the status, every header and part of the body; requests that send data, upload, authenticate, write a file or use a proxy are refused with the reason and the read-only form. - Reads chained with ; && || run as their tools in order; git log, git show and git blame run as github_history or a read at a ref; sandbox command chains run as one build with each part asked of the gate; a refused part of a chain is named with the parts that can run. - Sandbox commands run after the repository's install (corepack enable only when the command installs on its own). Exit 127 records the missing program and the routes that work, and a later command that needs it gets that note without another build. - Refused and failed tool events carry their message to the run page while the step runs; the run log line names the actual refusal.
Every status and note CoderHelm writes now goes into the thread's one status comment, edited in place. No "This replaces what I wrote", no History block, no new comment per update. A status that needs nothing from anyone is never posted; it stays on the run page and in the description. Earlier status comments are rewritten to one line and hidden as outdated on the next update, never deleted. Every comment passes comment_style::render and comment_style::lint before it is written: at most five lines, no template plurals, no pasted plan text, no deploy maps or workflow path dumps, no repeated sentences. One that still breaks the style is not posted. The person gate sends testing work (reading an end-to-end result, running a flow in browsers) back to CoderHelm. The outside-work and release notes carry only what a person must do, the release section lists only the deploys the release waits on, and an end-to-end run with a label route is started by its label first. The GitHub App manifest asks for Actions: write (workflow_dispatch); setup checks warns about it once when an older app lacks it, never fails.
* CI: Rust tests can no longer hold the runner for an hour Five times since 13 November the Rust (tests) job lost its runner during the first cargo step and failed after 55 minutes with no log; reruns passed. That step built the whole workspace with full debug info (about 19 GB of target, close to 14 GB of compiler memory at four jobs) and then ran the suite. - The job builds with line-tables debug info: file:line stays in panics and backtraces, at about a third of the disk and build time. - The build is its own step, printing disk and memory every minute. - Every test step runs through cargo-nextest: each test in its own process, ended and failed under its own name after two minutes (services/.config/nextest.toml). Each step has a time limit as a backstop. - q_run_ceiling built 100,000 DynamoDB clients in one test (a minute of CPU, the slowest test in the suite); it now builds one per scenario. * CI: say what the runner measured: memory is the tight resource, not disk
|
Thanks for the review. All of it is addressed in
Kept, as you suggested: the settings-named deploy labels, the environment approval ask (now On evidence: fmt, clippy and the The merge commit "Keep the published commits of this pull request reachable" changes no file; it keeps the commits this PR published before the rebase in its history. |
The preview was found only through a workflow CoderHelm recognized, an address whose host said "preview", and a deployment's first status of any state. A host that publishes its preview through deployments, deploy statuses, check runs or a bot comment was read as having no preview, a protected preview could not be opened, and a preview still building was waited on with no limit. - common::preview_find reads every route a preview is published on (deployment statuses, commit statuses, check runs, bot comments edited in place, the description, the team's address template), counts only what is tied to the head commit first, picks the changed app's preview in a monorepo, and gives one answer: up, building, failed, or nothing. - preview::settle bounds the wait: a short grace when nothing is published, a pending preview looked at every two minutes, at most an hour per commit, and a failed or taken-down deploy said with its source. - common::preview_access and /api/repos/:owner/:name/preview-access: one per-repository Settings item holding the address template and a sealed secret (header lines, query parameters or a password) that the capture sends only to the preview's own host. - The capture keeps a preview's path, retries pages still warming up, and reads a sign-in wall (401, 403, or a redirect to another host) as a wall that points to the setting. - Replay tests with payloads shaped like the code host's listings and common preview bots' comments, one per route.
… quote its run A repository's deploy label (the reviewer setting that starts its own preview deploy or end-to-end runs) was only a wait before auto-merge. A pull request was marked ready while the labelled workflow still ran, its description never said how that workflow ended, and a workflow that takes its label off when its run ends never ran again after a fix round pushed a new commit. The deploy label's workflows are now part of the head's preview, in its one record (preview_state): - Their jobs (common::deploy_label::covers) are covering checks for every change, read with covering_results like the preview plan's: a draft waits while they run, a failure is held once (never again when CI's hold already names the check), and a failure a later skipped run hides from the newest check of its name still reaches the CI fix loop's triggers, by check name, so the base comparison applies. - preview::advance adds the settings-named deploy labels once per head, never on a head where their workflow already ran. Every label it adds follows one rule: put on only when it was never taken off, or a workflow or CoderHelm took it off. One a person or another app took off, or that CoderHelm can't tell who took off, stays off, and the description says so. The auto-merge gate follows the same rule; a failed read of who took it off leaves it off and never fails the gate. - A check held for a protected environment's approval asks for that approval, naming the environment. A deploy workflow that failed before any job ran is a person's hold that says nothing on the branch can fix. - Verification quotes each deploy-label check once, with its run.
nambok
left a comment
There was a problem hiding this comment.
nice rework, this is a lot closer. went through the last review point by point on 5c2a797:
- compile errors with main: gone.
description.rs/description_factsaren't touched anymore so the doublerebuild_runand the newdeployfield are out. done. - one record: the who-removed-it rule now lives in
preview::advance(put_backatworker/src/passes/preview.rs:535) onpreview_state.labels_added, andlabels_added_headisn't new anymore. done. (one leftover below) - held twice:
named_by_ciatworker/src/passes/ready.rs:605drops a preview failure CI already names, andlatest_per_workflowis gone in favor ofcovering_results. done. resume.rsisn't touched anymore, andhidden_failures(preview.rs:188) gives check names, so the base comparison inpr_watch.rs:612works. done.fixable_failureswith the branch-as-sha is gone, and the events read inawait_merge::evaluateis amatchnow that leaves the labels off on error (await_merge.rs:1290-1297). done.
btw the "New AWS reads reach every team..." commit in the list is just main's own #764 (89d6bd7). it's the base you rebased the squash onto. the "keep the published commits reachable" merge (eb540b5, same tree as e71a6da) ties the old pre-rebase chain back in, so github lists ~50 main commits. same shas as main, no duplicate content. the actual diff vs main is just your 11 files.
what's still blocking:
-
conflicts with #772 (preview_find), which landed after your base.
git merge origin/mainconflicts incommon/src/preview.rs:706(yourkept_offvs main'sfound/waiting_since/looked_atonState) and inworker/src/passes/preview.rsin 4 spots. it's more than a textual conflict:- main's
covering_resultsdoesn't return a url anymore, andurl_from_deploymentsis gone. solet (mut results, url) = covering_results(...)atpreview.rs:500and thest.url = match urlblock at:636need to go. the address comes fromsightings+pf::resolvenow. - main sets
st.stageinsettle()fromfrom_checks+ the sighting answer, and that runs after your stage logic. yourwaits.is_empty()=> Blocked (:618-624) and the "Ready && !visible => Checked" override (:646) have to feed intofrom_checksor run aftersettle, or they get overwritten. also watch that for a non-visible change a failed deployment sighting (Answer::Failed) doesn't flip a backend-only PR to Failed. settle's wait budget only times out Triggered/Deploying, which is right for your newStage::Approval. just keep it that way when you merge.
please merge main, rebuild the deploy-label part on top of
from_checks/settle, and add a test that a backend-only change covered by the deploy label ends Checked. - main's
-
the gate still re-adds a label the preview already ran on this head.
preview::advancenow adds the deploy label on every head, butawait_mergeonly knows its own record (labels_added_head). so on a "label as a button" workflow: preview adds it on H, the workflow runs and takes it off (actorgithub-actions[bot], soremoved_by= Workflow), then the gate arms on H. it sees the label missing with no gate record for H,may_put_backsays yes, anddecide_gatereturnsAddLabels(await_merge.rs:405-413). that's a second deploy + e2e run on the same commit. inevaluate(await_merge.rs:1282), skip adding a label when the run'spreview_stateformsg.head_shahas a non-skipped check under a cover with that label (or checklabels_addedthere), and add a gate test for it.
small one, not blocking: the gate builds want_labels by hand (await_merge.rs:1268) while the preview uses common::deploy_label::configured. the gate doesn't dedupe case-insensitively, so worth using the same fn.
fmt / clippy -D warnings / tests on 5c2a797: all green (common 2766 passed, worker 2246 passed). it just won't merge with main yet
A JDK is not a Maven package and a JDK unpacked into an image is not an OS package, so CVE-2026-114938 in the JDK's Base64 decoder matched nothing. Runtimes are now found in code (Dockerfile JDK images, version files, Gradle and Maven, CI setup steps, Lambda runtimes) and on AWS (every package SSM inventory lists, not only the kernel), matched against the OpenJDK Vulnerability Group's advisories with what the Amazon Linux java advisories add, and each finding says whether the CPU it runs on meets the advisory's hardware condition.
…d of asking a person (#776) - CloudWatch metrics: any namespace is read; the team's role is the boundary. The namespace list is now hints only (AWS/WAFV2 with WebACL, Rule, Region and its request counts added). CloudFront web ACL WAF metrics read in us-east-1; an AWS access refusal is the install's "AWS role reads" item, recorded for the account. - New agent tools waf_sampled_requests and waf_log_objects: a rule's sampled requests, and its matches read straight from the web ACL's aws-waf-logs-* objects (bounded, grouped in process by JA4, user agent, accept language, path, cookie presence). The alarm evidence reads the log objects before trying Athena. - Every planner lookup counts (monitoring tools included), so "no lookups were made" appears only when none were. - A run whose plan changes no code ends needs_outside_change only when a person has an item. With nothing for a person and role reads refused this run, it ends awaiting_setup, re-checks the role every 15 minutes then daily (and when another run reads again), and starts again from its ticket once the role reads. Otherwise it plans again. - Incident case cx replays the run.
…eview (#778) * Finished runs ship instead of stopping, and a changed test runs in its own package A run whose tasks are done goes on while each continuation closes something (a check runs that hadn't, or its open items fall below their best), never by a fixed count. A step the run asks for by design is not counted. When continuing closes nothing, the run ships its pull request with what is open listed, and the stop is taken back so CI's errors and comments start the next round. The changed tests' sandbox picks its install only from the files it runs, a missing runner is recorded as not run, and a test that ran and fails or proves nothing holds the draft. * One ticket, one run, whatever starts it Every fresh run takes one atomic claim keyed by the ticket the work is for, not the event that carried it in: an issue CoderHelm opens for a tracker ticket carries a marker and a stored link back to it, so both resolve to the same key and the second trigger starts nothing. A plan task for a ticket a live run already works opens no issue at all. * Prove a ticket's criterion on the page the preview's server sends A criterion about what the server sends (its HTML, the page source, the page with JavaScript off) is checked by fetching the preview and the base deployment and judging each, before the pull request is done; a criterion not shown on the preview goes back to the coder. A run whose ticket text names no criteria proves the plan's criteria map instead of nothing. * Plan check gaps once and in the ticket's terms; a working alternative is a code fix Only top-level Out of scope bullets are items (nested lookups and evidence never are), a name the ticket uses is never out of scope, a criterion matches an item only on words that tell items apart, and every gap reaches the decision once. A fix-location trace that shows a working value of the same kind beside the wrong one, with a code layer in our repositories, is a code fix, and a cached outside verdict is judged again under that rule.
…s in plans (#780) * Code map kept current, criteria traced to proof, non-functional checks in plans Code map: each repository keeps sections on its agent file record (architecture, stack, build and test, conventions, dependencies, one per top-level area), each stamped with the commit it describes. Before the planner starts, the map is brought to the run's base: the same commit or tree reuses every section, otherwise only the sections the comparison's paths touch are read again and rebuilt in one model call. The planner and the coder get it as context; the build's tool calls before its first write and the map's commit are kept on the run. Criteria trace: every description build traces each acceptance criterion to the files and definitions changed for it, the tests that cover it, and its proof on the head (the two-way proof, else the tests' runs with and without the change). The table goes in the description's checks, gaps are open items, and the trace is kept on the run and served by the run API. Non-functional checks: when a plan's files or the ticket reach infrastructure, CI, auth and security, data, a hot path or observability, design.md answers that area's checklist with sources; a "n/a" needs a reason. The lists are data in one file. Missing answers are plan gaps in the same send-back, with no new stop or approval. * Feed the criteria trace's gaps into the run's open items and fix rounds The trace's gaps become coder items (common::trace::coder_items). The two -way proof already sends an item for a test that is missing, failing or not testing the ticket, so for those criteria the trace only adds untraced code. Each description build records the items on the run's checks ledger (run_guard::Ledger::trace) for its head. There they are open items like any check's: they hold the draft (open_findings) and the run converges on them (Target::of). The PR watch builds the description before it queues the two -way proof's round and sends both lists in one round. A pull request with no preview gets its round from the description build.
…ays in sight (#781) After a person merged the base branch into an approved pull request, CoderHelm posted a new approval whose whole body was one line ("the new commits only bring in the base branch; the PR's own change is the same as the approved <sha>"). Posting it rewrote the earlier full review to "Outdated", and the tidy between reviews cuts a review of an older commit to one line, so the pull request's only visible approval had no review in it. - The carried approval now carries the stored review of the approved commit as it was posted (the posted body is now kept on every review record), stated against the new head; a carry of a carry keeps the one review without nesting. - With no stored review to carry (or only an old one-line carry), the pull request is reviewed in full instead. - review_supersede::plan and tidy never rewrite, cut or hide the review the latest carried approval rests on, nor its comments and threads; the old one-line wording is read the same way. - Incident case kr_carried_approval_keeps_its_review with its page.
nambok
left a comment
There was a problem hiding this comment.
thanks for the rebase onto #772, the merge side is fine now. went through the two blockers on 4c62e02:
-
rebuild on
from_checks/settle: mostly done, two gaps. the oldurl_from_deployments/st.url = match urlstuff is gone, deploy covers feedfrom_checkslike the plan's covers, and for a backend-only change you return before the sightings (worker/src/passes/preview.rs:826-838), so a failed deployment sighting can't flip it to Failed. good. but:- that early return also skips
settle, andsettleis the only thing that times out Triggered/Deploying (preview.rs:367). so a backend-only PR whose deploy label never starts a run (label added, workflow filtered out, runner queue stuck) sits at Triggered forever, andready.rs:693-707keeps the draft onPREVIEW_WAITwith no end. the web path gives up afterWAIT_BUDGET_MINS. please apply the same budget on the!visiblepath, e.g. pull the Ready-becomes-Checked mapping + the budget check into a small pure fn next tosettle(waiting_sinceis already set at:676). - no test for it. the last review asked for one that a backend-only change covered by the deploy label ends Checked, and none of the new tests touch that path. with the pure fn above: Ready ends Checked with the why, Triggered past the budget ends Blocked, Failed/Approval pass through.
- that early return also skips
-
gate re-adding a label the preview already ran on this head: not addressed.
evaluate(worker/src/passes/await_merge.rs:1282-1302) still only looks at the gate's ownlabels_added_headplus who took it off. on a label-as-a-button workflow: preview adds it on H, the workflow runs and its bot takes it off, gate arms on H, sees no record for H,put_backsays workflow took it off so put it back,decide_gatereturnsAddLabels. second deploy + e2e on the same commit. the new test even pins that (await_merge.rs:2104-2114, "its workflow took it off after its run... added"). that's right for a new head the preview hasn't been to, wrong for one it has. inevaluate, load the run'spreview_stateand leave a label off when its head ismsg.head_shaand it has a non-skipped check under a cover with that label (or the label is inlabels_addedthere); add a gate test where the preview already ran the label on H and the gate doesn't re-add it.
not blocking:
common/src/waiting_line.rs:112-133has no arm for the newStage::Approval, so a draft held for an environment approval shows "Ready for review: checks passed." worth a "Not ready for review yet: preview waiting for an approval." arm.- on the
!visiblepath, Ready overwritesst.whywith "the change has no page a person sees" (preview.rs:831), dropping the kept-off line set at:816-822when one label ran and another was left off. - still the hand-built
want_labelsin the gate (await_merge.rs:1268),common::deploy_label::configuredwould dedupe it the same way the preview does.
merge with current main (through #779) is clean, no conflicts. on the merged tree fmt, clippy -D warnings and tests are all green (common 2841, gateway 1083, worker 2285 passed), and CI on 4c62e02 is green. so it's down to the two above.
On a self-hosted install in the team's own AWS account, live::aws::assume swapped CoderHelmLogReader for the install's own Lambda role, which never gets the WAF reads. A run's WAF tools were refused as the worker's role, the refusal blamed the team's role and the run waited; the wait's re-check took on the reader itself, was allowed and restarted the run, which was refused again: a loop. - assume always takes on the team's role and returns a TeamSession, the only session WAF, alarm evidence, WAF log objects, metrics, log reads and the permission check accept. - log_findings::session_for (the re-check) is the account's connection taken on with assume: the same target and call as the run's tools. - A refusal of a principal that isn't the team's role names it and is CoderHelm's own failure, never the team's setup item. - A run a re-check restarted never waits again for what the re-check read (role_wait::ending_after): an error log, one line on the run, and it goes on with what it has. - Incident rk_team_reads_as_the_team_role.
…its on (#783) A person's PR armed the gate, conflicted with main, and the gate stopped: the base merge only ran for CoderHelm's own PRs. After a person pushed the resolution, the gate counted only approvals of the head and waited on a review event that never came, saying nothing. - A PR behind or conflicting with its base gets the base merged in by the gate as soon as it is armed, on anyone's PR, once per head, through the runs' conflict resolution; the own-change comparison the reviewer uses decides whether the approval carries. The gate queues CoderHelm's review of the new head itself, labelled PR or not (a push's review, so the earlier approval carries with its review), and arms on the new head. Only an unresolvable conflict or a fork is reported, once, with the files. - The person key follows GitHub's reviewDecision; with no rule, an earlier approval counts when the PR's own change is unchanged since. - A wait on a person names what is missing (a dismissed approval and the commit that dismissed it, the required count, who was asked) on the run page, the status comment and once in the team's channel. - Waiting on people re-reads every 15 minutes for a day.
… heal themselves (#786) * Chat never says Jira isn't connected when it is, and the Jira app's links heal themselves Chat counted Jira as connected only when the app's ticket lookup link was in JIRA#config, while the integrations page counted the app's comment link. A site whose app gained the lookup in a minor version (Forge rolls those out with no lifecycle event, so the app never registered the new link), and a self-hosted install that copied the hosted links once at link time, showed connected on the page while chat said Jira wasn't connected. - common::jira_connection: one test of "connected" for every reader, and each missing ability named as itself, never as "not connected". - The Jira app registers again on the first event after any version change, and on request through its project-list trigger; a trigger a version lacks no longer fails the whole registration. - jira_heal: chat, the integrations page and the Jira intake ask the app to register again when a link it always registers is missing (once per team per ten minutes), and a linked install copies the hosted settings again. - Hybrid: /hybrid/status sends the triggers the site registered; the install copies again whenever they change, not only on a relink. - Incident case jc_jira_connected_in_chat with its page. * List the Jira repair limiter as a team-keyed cache and format the incident case
… quote its run A repository's deploy label (the reviewer setting that starts its own preview deploy or end-to-end runs) was only a wait before auto-merge. A pull request was marked ready while the labelled workflow still ran, its description never said how that workflow ended, and a workflow that takes its label off when its run ends never ran again after a fix round pushed a new commit. The deploy label's workflows are now part of the head's preview, in its one record (preview_state): - Their jobs (common::deploy_label::covers) are covering checks for every change, read with covering_results like the preview plan's: a draft waits while they run, a failure is held once (never again when CI's hold already names the check), and a failure a later skipped run hides from the newest check of its name still reaches the CI fix loop's triggers, by check name, so the base comparison applies. - preview::advance adds the settings-named deploy labels once per head, never on a head where their workflow already ran. Every label it adds follows one rule: put on only when it was never taken off, or a workflow or CoderHelm took it off. One a person or another app took off, or that CoderHelm can't tell who took off, stays off, and the description says so. The auto-merge gate follows the same rule; a failed read of who took it off leaves it off and never fails the gate. - A check held for a protected environment's approval asks for that approval, naming the environment. A deploy workflow that failed before any job ran is a person's hold that says nothing on the branch can fix. - Verification quotes each deploy-label check once, with its run.
…iew ran - A change with no page a person sees settles through settle_backend, next to settle: passed checks end Checked (a left-off label keeps its why), checks that haven't finished within WAIT_BUDGET_MINS end Blocked, a failure or an approval passes through. - The auto-merge gate reads the run's preview_state and leaves off a deploy label the preview already ran on this commit (common::deploy_label:: ran_on), so a "label as a button" workflow never deploys one commit twice. It builds its labels with common::deploy_label::configured. - The waiting line says a draft held for an environment's approval isn't ready for review yet.
|
Thanks. Your points from the last two reviews are addressed in Conflict in 1. Wait budget on the backend-only path. New pure 2. The gate re-adding a label the preview ran on the head. New Non-blocking, taken:
The documentation step also listed the new The captain's decision on unreadable PR history stays as is: the label stays off, and the description lists it as a known limit. Evidence: fmt and clippy -D warnings clean; |
The merge-base changed after approval.
A repository's deploy label (the reviewer setting that starts its own preview deploy or end-to-end runs) was only a wait before auto-merge. CoderHelm marked its pull request ready while the labelled workflow was still running. The description never said how that workflow ended. And a workflow that takes its own label off when its run ends ("a label as a button") never ran again after a fix round pushed a new commit.
The deploy label's workflows are now part of the head's preview, in its one record (
preview_state), read the way the preview's own checks are.What changes
preview::advancereads them before its user-visible early return, withcovering_results, so a run skipped because of another label never stands in for the real one.advanceadds the settings-named deploy labels once per head, never on a head where their workflow already ran (the pull request's opening added them). Every labeladvanceadds, the preview plan's too, follows one rule: it goes on only when it was never taken off, or a workflow or CoderHelm took it off. A label a person or another app took off, or one CoderHelm can't tell who took off, stays off, and the description says so. The auto-merge gate follows the same rule, and never adds a deploy label the preview already ran on the same commit, so one commit is never deployed twice. If it can't read who took a label off, it leaves the label off and carries on.Evidence
fed73122, merges clean with current main):cargo fmt --checkandcargo clippy -D warningswere clean;common2,861 tests,gateway1,087 andworker2,313 passed. The targeted runscargo test -p common --lib -- deploy_label waiting_line(14 passed) andcargo test -p worker -- deploy preview settle_backend await_merge(112 passed) were green. Oneworkertest failed:model_route_eval::route_implement_fixture_is_sound, which needs Python 3.9 or newer, and the machine has Python 3.8. It doesn't touch this change.cargo testand clippy as well. The pipeline's own test runs were cut off by time limits on a busy machine, so CI and the local runs above are the evidence.What the tests cover, and what wasn't checked live
Unit tests cover each behaviour above: the covering checks a deploy label's workflow gives, the wait and its budget for a change with no visible page, one hold per failure, the hidden-failure reading, putting a label back once per head after its workflow took it off and leaving it off after a person or another app did (in
advanceand in the auto-merge gate), the gate leaving off a label the preview already ran on the commit, the environment approval ask and waiting line, a workflow that failed to start, reading those again on the same head, never marking a draft ready for a check only a left-off label starts, and the Verification rows.Not checked live, against a real repository with a label-triggered workflow:
Known limits
Keep the published commits of this pull request reachablechanges no file: it keeps the commits this pull request published before the rebase in its history, as the pipeline requires.