Repository navigation
Restore the changelog comments in submit/apply after docs-builder#3995 - #438
Conversation
docs-builder#3995 removed the should-comment-success and should-comment-failure outputs from changelog evaluate-artifact. The comment-only and failure steps still gated on them, so they stopped running. Gate them on the status and should-commit outputs instead, which give the same conditions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| # author can still see what would have been recorded. | ||
| - name: Post comment-only changelog | ||
| if: steps.meta.outputs.should-comment-success == 'true' || steps.commit.outcome == 'failure' | ||
| if: (steps.meta.outputs.status == 'success' && steps.meta.outputs.should-commit != 'true') || steps.commit.outcome == 'failure' |
There was a problem hiding this comment.
Severity: P3 (Low)
Add automated regression coverage for the restored comment routing: success with should-commit true/false, no-label, and skipped/error statuses. No tests accompany this fix, so another output-contract mismatch can silently disable these comments again without CI detecting it. A fixture-based workflow check should verify which comment steps execute, rather than relying on the first production PR after release.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
There was a problem hiding this comment.
Fair point: an output-contract mismatch caused this gap, and nothing caught it.
I'm keeping this PR to the two conditions, though. It's a stopgap to restore comments that have been silent since this afternoon's edge build, and #324 deletes both steps once Martijn rewires the comment path. A test that checks which steps run would need a live PR with a matching head SHA, because evaluate-artifact fetches the PR from GitHub, and it would test steps that are about to go away.
The check worth having is on the contract: run evaluate-artifact (edge) on a schedule and fail if submit/apply reads an output it no longer sets. That would have caught docs-builder#3995 before the edge build. I'll raise it as a follow-up rather than grow this hotfix.
There was a problem hiding this comment.
Closing the loop on this: #439 replaced the steps this PR touched, so the test I mentioned would have covered code that no longer exists. We decided not to add a separate output-contract check.
docs-builder#3995 merged today and removed the
should-comment-successandshould-comment-failureoutputs fromchangelog evaluate-artifact. That change was meant to land after #324, but #324 is still open, andsubmit/applystill reads both outputs at lines 154 and 169. Since the 13:30 UTC edge build, those two steps never run. PRs that can't take a committed changelog get no comment-only entry, and PRs without a type label get no failure comment. Nothing errors, so the gap is silent.This PR rewrites the two conditions to use outputs that
evaluate-artifactstill sets. The comment-only step now runs whenstatusissuccessandshould-commitisn'ttrue. Before, it ran onSuccess && !CanCommit, andshould-commitisSuccess && CanCommit, so the behavior is the same. The failure step now runs whenstatusisno-label, the display name ofPrEvaluationResult.NoLabel. GitHub expressions compare strings without regard to case, which matches the case-insensitive parse in docs-builder.Nothing else changes, and #324 stays as it is. I didn't use #324 as the fix because its
changelog-decisionartifact is uploaded in the "Changelog file" run, and today no comments caller can read it: the callers skipworkflow_runevents, and the newest-run lookup resolves tomain. That wiring needs Martijn's design.I ran the repo's pre-commit hooks on the file (all pass, README unchanged). I can't run the composite action locally, so the real check is the first comment-only or no-label PR after
v1moves. Once this merges, publishing the next release movesv1and restores the comments for docs-content and elastic-otel-java.No tracking issue exists for this change, at the requester's request.
🤖 Generated with Claude Code