-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slack/notify is not working in v4.14.0 #461
Comments
We're running into this issue as well. We have a workflow that gets triggered via an API request to
This now leads to this warning:
I'm pretty sure is related to the change in behavior in FilterBy from https://github.com/CircleCI-Public/slack-orb/pull/459/files. By removing the removing the check on the second parameter in FilterBy, the FilterBy will always check the tag on line 219:
If there's no tag available, this will lead to an |
Update: Same as ⬆️ We face the same issue. My understanding is that removing the guard for an empty string breaks the default behaviour that was in place before the change. If the branch matches the next check will be against slack-orb/src/scripts/notify.sh Line 219 in 5be0c44
The issue is the default matcher .+ will not match an empty string and the notification will exit
|
It looks like the problem here is having a default pattern for tag and branch. The default pattern doesn't make sense because that way it will always try to compare with the given reference, even a non existing one, as in the problem you're facing. Not having a pattern should be consider as send, so I will be removing the default. |
@s-sasaki-0529 Your case seems different to the others, it is reading the event value as |
@marboledacci Thank you for your response. I realized that the output message I provided was incorrect. The correct output message is:
It seems that I mistakenly provided the output from a simplified workflow I constructed for reproduction purposes, which resulted in a different message being displayed than the one in the original case. Therefore, I believe my issue is the same as the others. |
This should be now fixed on version v5.0.0 |
I have confirmed that the issue has been fixed in v5.0.0. Thank you very much! |
So v4 is just broken forever then, great, just the 400 projects to update. |
Orb version:
v4.14.0
What happened:
Slack notifications are not being sent from version v4.14.0. The same configuration works perfectly in v4.13.3, but after upgrading to v4.14.0, no notifications are being sent to Slack.
The workflow completes without errors, but the notification does not appear in Slack. Instead, the following message is displayed in the job execution results:
Expected behavior:
Slack notifications should be sent successfully as they were in v4.13.3. The upgrade to v4.14.0 should not affect the notification delivery.
Additional Information:
I found a potentially related pull request: #459. However, I am not sure why this change would affect the behavior I'm seeing.
The text was updated successfully, but these errors were encountered: