Repository navigation
fix(triage): search for CI causes by full test name and recheck before filing - #1673
Conversation
tend-agent
left a comment
There was a problem hiding this comment.
The recheck covers only open tend-ci-cause issues, yet step 4 says a sibling report's triage can repair the cause directly with a PR, and that PR owns it without any cause issue. When the sibling opens a repair PR during the gap, this recheck finds nothing and the session files a duplicate cause issue. The new issue then starts its own triage worker against a fix that is already in flight, which is the waste #1670 is about. Running the same local match over open PRs closes that gap. I'll push that change.
|
@tend-agent The final local
|
|
Done in e330519. The recheck itself hasn't changed: it still matches locally over the open |
Regenerates the Tend workflows for tend 0.3.24 → 0.3.25 ([compare](max-sixty/tend@0.3.24...0.3.25)). The diff only bumps the action pins and the generated-by header, plus a reworded `tend-ci-failures` header comment. The behavior changes come with the new action version. What changes for this repo: - **CI failure reports follow the lane's state.** Triage now closes a CI failure report once it has diagnosed the failure and every failure has an owner. The lane's next failure reopens the report, which starts a new triage session instead of only adding a "Failed again" comment (max-sixty/tend#1677). Before filing, triage also searches for an existing cause by the full test name (max-sixty/tend#1673). - **CI polling handles more cases.** A failed external check, such as `codecov/patch`, now returns red once it fails on two reads 30 seconds apart, without waiting for hung Actions jobs (max-sixty/tend#1584). Cancelled matrix checks are superseded by a later run of the same workflow (max-sixty/tend#1526). The poll now ends before the Claude session's own timeout, so a session that approved and then polled CI can still act on the result (max-sixty/tend#1683). - **`tend check` can accept a reviewed failure.** A maintainer can list a failing check under `checks.accepted` in `.config/tend.yaml` with a reason. It then prints as `ACCEPTED`, no longer fails `tend check`, and the nightly drift step treats it as a non-failure (max-sixty/tend#1662). This is relevant to #4797 if the `release` environment's `workflow_dispatch` exposure is judged acceptable rather than gated. - **Setup is more robust.** `setup-runtime` retries the uv download (max-sixty/tend#1666), and Claude Code moves to 2.1.322 (max-sixty/tend#1665). Co-authored-by: worktrunk-bot <[email protected]>
CI report triage could file a duplicate
tend-ci-causeissue when a sibling report's triage had already filed one. Step 3 oftriage/references/ci-failures.mdtold the session to search by "a failing test or job name" without saying it had to be the whole name. GitHub issue search matches a snake_case identifier only as a whole word, so a shortened test name returns nothing. Step 4 then filed straight away, with no ownership recheck. Report triages for different lanes run at the same time, so a sibling can file or repair a cause between step 3 and step 4.This change does two things:
gh issue createis now a recheck. It lists the opentend-ci-causeissues and the open PRs and matches the name locally withjq, so the search index plays no part. Step 4 lets a sibling repair a cause directly with a PR that no cause issue tracks, which is why the PRs are checked too. A match is only a candidate: one test or job can fail for different causes, so the session reads each match and applies step 3's cause-evidence rule (Claims of recurrence). Only a match with the same cause becomes the owner and gets the new evidence. Any other match still leads to a new cause issue.Verified against max-sixty/leaf:
test_tab_at_a_control_scrolled_awayreturns only review-runs-tracking: 2026-11 leaf#5067, an unrelated issue.jqrecipe, run against leaf'stend-ci-causeissues, finds both.Closes #1670 — automated triage