Skip to content

chore: notify Slack after frontend production deploy - #8340

Open
talissoncosta wants to merge 1 commit into
mainfrom
chore/add-slack-frontend-deploy-notification
Open

chore: notify Slack after frontend production deploy#8340
talissoncosta wants to merge 1 commit into
mainfrom
chore/add-slack-frontend-deploy-notification

Conversation

@talissoncosta

@talissoncosta talissoncosta commented Aug 21, 2026

Copy link
Copy Markdown
Contributor
  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Adds a notify-production-smoke-test job to the frontend production deploy workflow. After a successful deploy it posts to #frontend-deploy with the commit, who deployed, and links to production and the Actions run, as a prompt to smoke test.

The message is built by a composite action (.github/actions/notify-slack-deploy) so the API and MCP deploys can reuse it, and jq assembles the payload so values are escaped rather than interpolated into JSON.

Two deliberate choices:

  • An incoming webhook (SLACK_FRONTEND_DEPLOY_WEBHOOK) rather than the SLACK_TOKEN the e2e-tests action uses, so the message is pinned to one channel and the workflow needs no Slack API scope.
  • continue-on-error on the step, because the deploy has already succeeded by the time this runs, so a Slack outage should not turn the run red. The job takes contents: read and nothing else.

Deployer is plain text for this first version, not a Slack mention. GitHub handles are not Slack member IDs, and nothing derivable in CI maps reliably to one.

How did you test this code?

Ran the composite action from a throwaway workflow on this branch, run 32483691892. Slack returned ok and the message rendered in #frontend-deploy with both buttons working. That workflow is not part of this PR.

Also checked the rendered payload is valid Block Kit JSON, and that the job is skipped rather than run when deploy-production does not succeed.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

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

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Aug 21, 2026 1:42pm
flagsmith-frontend-preview Ignored Ignored Preview Aug 21, 2026 1:42pm
flagsmith-frontend-staging Ignored Ignored Preview Aug 21, 2026 1:42pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: fd8d954a-f818-48b2-adfb-6164bb4aaa77

📥 Commits

Reviewing files that changed from the base of the PR and between 37b5bba and 934f359.

📒 Files selected for processing (1)
  • .github/workflows/test-slack-frontend-deploy.yml

Included review availability: Your plan provides up to 8 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The change adds a composite Slack notification action. The action accepts deployment inputs, builds an escaped Block Kit payload, and sends it with curl timeouts. The production workflow invokes the action after a successful deployment. A temporary workflow tests notifications and matches recent frontend deployers against Slack users.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: 🟡 Moderate · up to 934f3

This change adds Slack notifications to production deployment workflows, but the current implementation still allows mutable or unpinned actions and test runs that can repeatedly or falsely announce production deployments. The PR is not merge-ready until these bounded security and notification-correctness risks are fixed or explicitly accepted.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread .github/workflows/test-slack-frontend-deploy.yml Fixed
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.78%. Comparing base (74eace8) to head (36c24ef).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8340   +/-   ##
=======================================
  Coverage   98.78%   98.78%           
=======================================
  Files        1609     1609           
  Lines       64578    64578           
=======================================
  Hits        63794    63794           
  Misses        784      784           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
@talissoncosta
talissoncosta force-pushed the chore/add-slack-frontend-deploy-notification branch from a8ddf76 to d8a748a Compare August 21, 2026 11:55
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
@talissoncosta
talissoncosta force-pushed the chore/add-slack-frontend-deploy-notification branch from d8a748a to da93080 Compare August 21, 2026 11:59
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
@talissoncosta
talissoncosta marked this pull request as ready for review August 21, 2026 12:07
@talissoncosta
talissoncosta requested a review from a team as a code owner August 21, 2026 12:07
@talissoncosta
talissoncosta requested review from khvn26 and removed request for a team August 21, 2026 12:07
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-8340 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-8340 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-8340 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-8340 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-8340 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-8340 Finished ✅ Results

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: dbd46fb8-6050-4ec9-b59e-90a44d849ca0

📥 Commits

Reviewing files that changed from the base of the PR and between 227fce1 and da93080.

📒 Files selected for processing (1)
  • .github/workflows/frontend-deploy-production.yml

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Comment thread .github/workflows/frontend-deploy-production.yml
Comment thread .github/workflows/frontend-deploy-production.yml Outdated
@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-16 — run #19625 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  55.8 seconds
commit  36c24ef
info  🔄 Run: #19625 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #19625 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  3 passed

Details

stats  3 tests across 3 suites
duration  37.9 seconds
commit  36c24ef
info  🔄 Run: #19625 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #19625 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  41.9 seconds
commit  36c24ef
info  🔄 Run: #19625 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #19625 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  41.5 seconds
commit  36c24ef
info  🔄 Run: #19625 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #19624 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  3 passed

Details

stats  3 tests across 3 suites
duration  32.6 seconds
commit  29058a5
info  🔄 Run: #19624 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #19624 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  48.1 seconds
commit  29058a5
info  🔄 Run: #19624 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #19624 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  37 seconds
commit  29058a5
info  🔄 Run: #19624 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #19624 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  41.6 seconds
commit  29058a5
info  🔄 Run: #19624 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #19623 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  3 passed

Details

stats  3 tests across 3 suites
duration  57.1 seconds
commit  fd22aec
info  🔄 Run: #19623 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #19623 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  23 passed
skipped  1 skipped

Details

stats  24 tests across 18 suites
duration  1 minute, 20 seconds
commit  fd22aec
info  🔄 Run: #19623 (attempt 1)

Skipped tests

firefox › tests/onboarding-tests.pw.ts › Onboarding › New user connects via the single-page onboarding flow @oss

✅ oss · depot-ubuntu-latest-arm-16 — run #19623 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  39 seconds
commit  fd22aec
info  🔄 Run: #19623 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #19623 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  40.1 seconds
commit  fd22aec
info  🔄 Run: #19623 (attempt 1)

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Visual Regression

19 screenshots compared. See report for details.
View full report

@talissoncosta talissoncosta changed the title chore: add test for frontend deploy notif channel chore: notify Slack after frontend production deploy Aug 21, 2026
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 7fc10b63-c933-45e1-9b07-d370af53617f

📥 Commits

Reviewing files that changed from the base of the PR and between 4ea9212 and 12d197c.

📒 Files selected for processing (2)
  • .github/actions/notify-slack-deploy/action.yml
  • .github/workflows/frontend-deploy-production.yml

Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review.

Comment thread .github/workflows/frontend-deploy-production.yml Outdated
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d9193750-fee3-4578-82ae-3d73fde67192

📥 Commits

Reviewing files that changed from the base of the PR and between 12d197c and 37b5bba.

📒 Files selected for processing (1)
  • .github/workflows/test-slack-frontend-deploy.yml

Included review availability: Your plan provides up to 8 included reviews per hour; 4 remain after this review.

Comment thread .github/workflows/test-slack-frontend-deploy.yml Outdated
Comment thread .github/workflows/test-slack-frontend-deploy.yml Outdated
Comment thread .github/workflows/test-slack-frontend-deploy.yml Outdated
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
@talissoncosta
talissoncosta force-pushed the chore/add-slack-frontend-deploy-notification branch from 1039714 to bc7873f Compare August 21, 2026 13:02
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
@talissoncosta
talissoncosta force-pushed the chore/add-slack-frontend-deploy-notification branch from bc7873f to fd22aec Compare August 21, 2026 13:31
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
Post to #frontend-deploy once the production deploy succeeds, with the commit,
who deployed, and links to production and the Actions run, as a prompt to smoke
test.

The message is built by a composite action so the API and MCP deploys can reuse
it, and jq assembles the payload so values are escaped rather than interpolated
into JSON. The job takes no GitHub token permissions beyond reading the repo,
does not keep the checkout credentials, and does not fail the run if Slack is
unreachable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@talissoncosta
talissoncosta force-pushed the chore/add-slack-frontend-deploy-notification branch from 29058a5 to 36c24ef Compare August 21, 2026 13:42
@github-actions github-actions Bot added chore and removed chore labels Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants