Skip to content

Prevent empty notifications when prepare fails.#11583

Open
desrosj wants to merge 1 commit intoWordPress:trunkfrom
desrosj:fix/empty-slack-notifications-on-prepare-failure
Open

Prevent empty notifications when prepare fails.#11583
desrosj wants to merge 1 commit intoWordPress:trunkfrom
desrosj:fix/empty-slack-notifications-on-prepare-failure

Conversation

@desrosj
Copy link
Copy Markdown
Member

@desrosj desrosj commented Apr 16, 2026

Because of the failure() check, the failure job runs even when the message's payload is not properly prepared.

This adds an additional check to guard against scenarios where the payload output is empty.

This was discovered in this workflow run. The raw logs are being attached so that they persist after the 90 day retention period for logs passes.

Trac ticket: Core-64893.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude
Model(s): Opus 4.6
Used for: Investigating and creating the initial PR.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Because of the `failure()` check, the `failure` job runs even when the message's payload is not properly prepared.

This adds an additional check to guard against scenarios where the `payload` output is empty.
@desrosj desrosj self-assigned this Apr 16, 2026
@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props desrosj.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

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.

1 participant