Skip to content

Fix CFP Slack notification for proposals without tags - #4874

Merged
marcoacierno merged 1 commit into
mainfrom
fix-cfp-slack-notification
Nov 30, 2026
Merged

marcoacierno merged 1 commit into
mainfrom
fix-cfp-slack-notification

Conversation

@marcoacierno

Copy link
Copy Markdown
Member

What

Since #4873 the CFP form no longer collects tags, so new proposals have none. notify_new_cfp_submission still always sent a Tags field, which became {"type": "plain_text", "text": ""}.

Slack requires a text object's text to be at least 1 character (text object reference). So Slack rejects the message, and slack.send_message raises SlackIncomingWebhookError. #4873 was deployed today, which is when this path became reachable.

This cause is inferred from the code and the Slack docs. I haven't seen the production traceback.

Changes

  • The Tags field is added only when the proposal has tags.
  • The proposal's topic is shown as a Topic field when it has one. Tags are no longer collected, so the topic is now the only classification in the message. This is separable if unwanted.
  • If there are no fields at all, the fields key is omitted.
  • test_handle_new_cfp_submission is parametrized over: no topic and no tags, topic only, and topic plus tags. It asserts the exact fields sent.
  • The other hunks in test_tasks.py are ruff format only. That file had never been formatted, and the pre-commit hook rejects the commit without them.

ToDo

The CFP form no longer collects tags, so new proposals have none and the
Tags field was sent to Slack as a plain_text object with empty text.
Slack requires text objects to have at least 1 character, so the message
is rejected and slack.send_message raises SlackIncomingWebhookError.

Only add the Tags field when there are tags, and show the proposal's topic
when it has one.
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pycon Error Error Nov 30, 2026 1:58pm UTC

Request Review

@marcoacierno
marcoacierno merged commit 6be3b8e into main Nov 30, 2026
6 of 8 checks passed
@marcoacierno
marcoacierno deleted the fix-cfp-slack-notification branch November 30, 2026 13:58
@claude

claude Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

This PR stops the CFP Slack notification from sending an empty Tags field, which Slack rejects. It also adds a Topic field and parametrizes the test.

No issues found.

@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.62%. Comparing base (937eb20) to head (c014f66).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4874   +/-   ##
=======================================
  Coverage   92.61%   92.62%           
=======================================
  Files         360      360           
  Lines       10959    10967    +8     
  Branches      953      956    +3     
=======================================
+ Hits        10150    10158    +8     
  Misses        684      684           
  Partials      125      125           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch had an error being deployed

1 failed deployment
Preview — c014f661 Deployed Nov 30, 2026 by vercel[bot]
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