Skip to content

fix: prevent duplicate Zulip posts in nightly failure workflow#1630

Merged
fgdorais merged 1 commit intomainfrom
fix-duplicate-zulip-posts
Jan 25, 2026
Merged

fix: prevent duplicate Zulip posts in nightly failure workflow#1630
fgdorais merged 1 commit intomainfrom
fix-duplicate-zulip-posts

Conversation

@kim-em
Copy link
Copy Markdown
Collaborator

@kim-em kim-em commented Jan 25, 2026

This PR fixes a bug in the nightly_detect_failure.yml workflow where duplicate messages were being posted to Zulip for the same nightly date.

The deduplication logic compared the first 160 characters of the message, but the GitHub Actions run ID appears within those characters. Different workflow runs have different IDs, so the comparison always failed and duplicates were posted.

Now we extract and compare the nightly date and bump branch explicitly using regex, which correctly identifies duplicate messages.

See https://leanprover.zulipchat.com/#narrow/channel/428973-nightly-testing/topic/Cslib.20bump.20branch.20reminders/near/569853848 for context.

🤖 Prepared with Claude Code

The deduplication logic compared the first 160 characters of the
message, but the GitHub Actions run ID appears within those characters.
Different workflow runs have different IDs, so duplicates were posted
for the same nightly date.

Now we extract and compare the nightly date and bump branch explicitly
using regex, which correctly identifies duplicate messages.

🤖 Prepared with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Jan 25, 2026
ghost pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 25, 2026
@ghost ghost added the builds-mathlib label Jan 25, 2026
@ghost
Copy link
Copy Markdown

ghost commented Jan 25, 2026

Mathlib CI status (docs):

@fgdorais fgdorais added this pull request to the merge queue Jan 25, 2026
Merged via the queue into main with commit 4ca6ac2 Jan 25, 2026
3 checks passed
@github-actions github-actions bot removed the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Jan 25, 2026
fgdorais pushed a commit that referenced this pull request Feb 26, 2026
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants