Skip to content

chore: trigger production report alert deploy#4839

Open
mashbean wants to merge 1 commit into
masterfrom
codex/trigger-prod-report-alert-deploy
Open

chore: trigger production report alert deploy#4839
mashbean wants to merge 1 commit into
masterfrom
codex/trigger-prod-report-alert-deploy

Conversation

@mashbean

@mashbean mashbean commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Purpose

This PR is an empty deployment trigger for the production report Telegram alert rollout.

The report-alert code from PR #4830 is already on master through release PR #4835, but the production Deploy workflow run 26967814437 failed only at deploy-lambda-production / deploy-report-telegram-alert because the report-alert-prod SQS queue did not exist yet.

Prepared infrastructure

  • Created SQS queue report-alert-prod in ap-southeast-1.
  • Added /prod/matters-server/MATTERS_AWS_REPORT_ALERT_QUEUE_URL.
  • Added /prod/matters-server/MATTERS_TELEGRAM_BOT_TOKEN.
  • Added /prod/matters-server/MATTERS_TELEGRAM_ALERT_CHAT_ID.
  • Added /prod/matters-server/MATTERS_OSS_SITE_DOMAIN.

The Telegram destination intentionally reuses the existing dedicated group Matters Report Alert Dev per rollout decision.

Acceptance after merge

  • Production Deploy workflow completes successfully.
  • deploy-lambda-production / deploy-report-telegram-alert succeeds.
  • CloudFormation stack report-telegram-alert-production is created or updated successfully.
  • Production Lambda for reportTelegramAlert.handler exists and is mapped to report-alert-prod.
  • report-alert-prod has no stuck visible, invisible, or delayed messages after preflight.

Next-agent instructions

After this PR is merged:

  1. Verify the production Deploy workflow before testing behavior.
  2. If deploy-report-telegram-alert fails, inspect CloudFormation events for report-telegram-alert-production before changing code.
  3. Run only a controlled SQS smoke to report-alert-prod after Lambda deployment succeeds.
  4. Do not run a real production submitReport trigger or create production report rows without explicit human approval.

Notes

This PR intentionally contains no code changes. It exists to let the next production deploy pick up the now-prepared SQS and SSM configuration.

Purpose:
- Re-run production deployment after report-alert production infrastructure was prepared.
- The report alert code from PR #4830 is already present on master via release PR #4835.
- The previous production deploy run 26967814437 failed only at deploy-lambda-production / deploy-report-telegram-alert because report-alert-prod did not exist yet.

Prepared infrastructure:
- SQS queue: report-alert-prod
- SSM: /prod/matters-server/MATTERS_AWS_REPORT_ALERT_QUEUE_URL
- SSM: /prod/matters-server/MATTERS_TELEGRAM_BOT_TOKEN
- SSM: /prod/matters-server/MATTERS_TELEGRAM_ALERT_CHAT_ID
- SSM: /prod/matters-server/MATTERS_OSS_SITE_DOMAIN

Acceptance after merge:
- Deploy workflow completes successfully for production.
- CloudFormation stack report-telegram-alert-production exists and is CREATE_COMPLETE or UPDATE_COMPLETE.
- Lambda report-telegram-alert-production is present and mapped to report-alert-prod.
- report-alert-prod remains empty after deployment preflight.
- Do not run a real production submitReport trigger until explicitly approved.

Next-agent instructions:
- After this PR is merged, verify the production Deploy workflow first.
- If deploy-report-telegram-alert fails, inspect CloudFormation events for report-telegram-alert-production before changing code.
- Run only a controlled SQS smoke to report-alert-prod after Lambda deployment succeeds.
- Do not send production user reports or create production report rows without human approval.
@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.40%. Comparing base (6b2a5c1) to head (21849ec).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4839   +/-   ##
=======================================
  Coverage   72.40%   72.40%           
=======================================
  Files        1054     1054           
  Lines       20908    20908           
  Branches     4515     4515           
=======================================
  Hits        15139    15139           
  Misses       5699     5699           
  Partials       70       70           

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

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