Skip to content

[CI] Fix Slack Notify Configuration in Dependency Analysis Pipeline#295

Open
ParaskP7 wants to merge 2 commits intotrunkfrom
ci/fix-slack-notify-in-dependency-analysis-pipeline
Open

[CI] Fix Slack Notify Configuration in Dependency Analysis Pipeline#295
ParaskP7 wants to merge 2 commits intotrunkfrom
ci/fix-slack-notify-in-dependency-analysis-pipeline

Conversation

@ParaskP7
Copy link
Contributor

@ParaskP7 ParaskP7 commented Mar 2, 2026

Closes: AINFRA-2126


Description

Step-level notify in Buildkite only supports a subset of conditions, so the build.state == "failed" condition was silently ignored and no Slack notifications were being sent when the dependency analysis pipeline failed. This was originally discovered and fixed in WordPress-MediaPicker-Android#90 (commit 7d002b6).

This PR applies the same fix by moving the notify block from step level to pipeline level and adding both passed and failed notifications with explicit messages to #android-core-notifs.


Testing Steps

  1. Trigger a manual scheduled build with:
    • Message: Trigger Standalone "Dependency Analysis" Job
    • Commit: HEAD
    • Branch: ci/fix-slack-notify-in-dependency-analysis-pipeline
    • Environment Variables: PIPELINE=schedules/dependency-analysis.yml
  2. Verify the pipeline passes and a Slack notification is sent to #android-core-notifs
    • Success: Build: 536 + Slack Notification: p1772470269498029-slack-C0787KRDYDC

ParaskP7 and others added 2 commits March 2, 2026 18:01
Move notify block from step level to pipeline level and add
both passed and failed notifications with explicit messages.
Step-level notify only supports a subset of conditions, while
pipeline-level notify properly triggers on build state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ignore the .kotlin directory which contains temporary
kotlin compiler session files that should not be tracked.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Buildkite scheduled dependency analysis pipeline to ensure Slack notifications are correctly sent by moving notify from step-level to pipeline-level (where build.state conditions are supported).

Changes:

  • Add .kotlin/ to .gitignore to ignore Kotlin compiler session artifacts.
  • Move Slack notifications to pipeline-level notify and add explicit passed / failed messages to #android-core-notifs.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
.gitignore Ignores Kotlin compiler session directory (.kotlin/).
.buildkite/schedules/dependency-analysis.yml Moves Slack notifications to pipeline-level and adds explicit success/failure notifications gated by build.state.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ParaskP7 ParaskP7 marked this pull request as ready for review March 2, 2026 16:52
@ParaskP7 ParaskP7 requested a review from iangmaia March 2, 2026 16:52
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