Skip to content

⬆️ kettle-jem: update the Duel template for Duel 0.1.1 - #83

Merged
pboling merged 1 commit into
structuredmerge:mainfrom
sferik:duel-0.1.1
Oct 26, 2026
Merged

pboling merged 1 commit into
structuredmerge:mainfrom
sferik:duel-0.1.1

Conversation

@sferik

@sferik sferik commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Duel 0.1.1 is out, and it changes how the workflow comments, so this brings the template from #81 up to date.

The Comment job now runs only when Duel says to (by default only when a benchmark fails, and c.comment in .duel.rb can change that), and it always posts a new comment instead of editing the last one, so the pull request keeps every report. Each comment's marker records the run's status, so after a failure the first passing run posts once to say it's fixed. Duel passes the decision and status to the workflow as step outputs, so the Comment job still runs none of the branch's code. I kept the template's own pins, [ci skip] guard, concurrency and version-file lookup as they were.

.duel.rb now only adds the workflow to c.watch, since 0.1.1 watches the benchmarks, .duel.rb and the version files itself, and it mentions c.comment with its default. duel.gemfile requires 0.1.1 or later, since older versions don't write the outputs the workflow reads.

The Duel spec covers the new outputs, the Comment job's condition and script (with no PATCH anywhere), the watch line and the floor. The rest of the suite fails the same 4 specs here as on main.

The Perf workflow now comments on a pull request only when Duel says
to (by default when it fails), and posts a new comment instead of
editing the last one. Duel 0.1.1 watches the benchmarks, .duel.rb and
the version files itself, so .duel.rb only adds the workflow, and the
modular Gemfile requires 0.1.1 or later.

@pboling pboling left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@pboling
pboling merged commit aec9648 into structuredmerge:main Oct 26, 2026
6 of 9 checks passed
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