Skip to content

Key tend-ci-fix's concurrency group on the triggering run's event - #1547

Merged
max-sixty merged 2 commits into
mainfrom
tend-ci-fix-event-key
Oct 14, 2026
Merged

max-sixty merged 2 commits into
mainfrom
tend-ci-fix-event-key

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

tend-ci-fix's job-level concurrency group was keyed on the watched workflow and the branch, with GitHub's default queue depth, so the newest failure replaced the pending one. On a consumer whose CI runs on both push and a schedule, a scheduled run's failure waiting behind a running session was replaced by the next push failure on the same branch, and never got a fix attempt. The scheduled run is often the only run of a slower test tier, so the push failure that replaced it doesn't carry its failures. leaf's ci.yaml already gives its daily schedule a concurrency slot of its own for the same reason; tend-ci-fix did not.

The group key now includes the triggering run's event (github.event.workflow_run.event):

  • before: ${{ github.workflow }}-${{ github.event.workflow_run.name }}-${{ github.event.workflow_run.head_branch }}
  • after: ${{ github.workflow }}-${{ github.event.workflow_run.name }}-${{ github.event.workflow_run.event }}-${{ github.event.workflow_run.head_branch }}

Within each event, the newest failure still replaces the pending one. The template comment, the regtest snapshots, test_ci_fix_serializes_per_branch_watched_workflow_and_event (which fails against the old template), and AGENTS.md's Concurrency and filtering are updated. Which conclusions trigger the workflow is unchanged.

A push failure and a scheduled failure from the same breakage can now run concurrently, as ci and publish-site failures already can. In leaf that is the usual case when main is red at cron time, since the schedule runs every tier. What stops the second session opening a duplicate PR is the ci-fix skill re-running its existing-fix query just before gh pr create, which narrows that race rather than closing it; AGENTS.md now says so.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits October 14, 2026 08:42
The group was watched workflow + branch with the default queue depth, so
a scheduled run's failure pending behind a running session was replaced
by the next push failure on the same branch and never got a fix attempt.
Adding github.event.workflow_run.event gives each event its own slot;
within an event, the newest failure still replaces the pending one.

The concurrency test now asserts the event in the key; it fails against
the old template.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 27f7457 into main Oct 14, 2026
13 checks passed
@max-sixty
max-sixty deleted the tend-ci-fix-event-key branch October 14, 2026 15:49
max-sixty added a commit that referenced this pull request Oct 14, 2026
`tend-ci-fix` starts only on a watched run's `failure` (#1535), and
GitHub ends a job that exceeds its time limit as `cancelled`, so a CI
job that hangs until its limit never gets a ci-fix session. A step that
exceeds its own `timeout-minutes` fails instead, so a consumer that
bounds the hang there gets it diagnosed. A probe workflow on
tend-agent/tend-integration confirmed all three conclusions: a
foreground step timeout and a `background: true` step timeout both fail,
and a job timeout is cancelled.

This isn't hypothetical. max-sixty/leaf's push suite hit the 6-hour job
limit four times between 2026-10-04 and 2026-10-14, and none of those
runs started a ci-fix session.

- `docs/tend.example.yaml` (and its install-tend mirror) tells consumers
this in the ci-fix section.
- `TODO.md`'s "Issues as the bus" entry now records the step-timeout
workaround, the per-event pending slot from #1547, and the concurrent
push and scheduled sessions #1547 allows.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty max-sixty mentioned this pull request Oct 14, 2026
max-sixty added a commit that referenced this pull request Oct 14, 2026
Bumps the generator to 0.3.14 and adds its changelog section. Ships
#1544, #1546, #1547 and #1548.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants