Skip to content

Conversation

@gagantrivedi
Copy link
Member

@gagantrivedi gagantrivedi commented Jan 8, 2026

Thanks for submitting a PR! Please check the boxes below:

  • 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?
  • I have used a Conventional Commit title for this Pull Request

Changes

Fix bug where API and SDK ECS services were using different task definition revisions.

Problem: The amazon-ecs-deploy-task-definition action registers a new task definition revision each time it's called. When called twice (once for API, once for SDK), the SDK service ended up with revision N+1 while API had revision N.

Solution:

  • Add an ID to the API deploy step to capture the registered task definition ARN
  • Use aws ecs update-service for the SDK service with the same ARN instead of calling the deploy action again

Now both services use the exact same task definition revision.

How did you test this code?

Reuse the task definition ARN from the API deployment for the SDK
service instead of calling the deploy action twice. This ensures
both services use the exact same task definition revision.

Previously, each call to amazon-ecs-deploy-task-definition registered
a new revision, causing SDK to be one version ahead of API.
@gagantrivedi gagantrivedi requested a review from a team as a code owner January 8, 2026 08:01
@gagantrivedi gagantrivedi requested review from talissoncosta and removed request for a team January 8, 2026 08:01
@vercel
Copy link

vercel bot commented Jan 8, 2026

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

3 Skipped Deployments
Project Deployment Review Updated (UTC)
docs Ignored Ignored Jan 8, 2026 8:01am
flagsmith-frontend-preview Ignored Ignored Jan 8, 2026 8:01am
flagsmith-frontend-staging Ignored Ignored Jan 8, 2026 8:01am

@github-actions github-actions bot added the fix label Jan 8, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

Docker builds report

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

@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.08%. Comparing base (253d232) to head (b738c35).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6495      +/-   ##
==========================================
+ Coverage   98.07%   98.08%   +0.01%     
==========================================
  Files        1294     1296       +2     
  Lines       46537    46616      +79     
==========================================
+ Hits        45639    45724      +85     
+ Misses        898      892       -6     

☔ View full report in Codecov by Sentry.
📢 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.

@gagantrivedi gagantrivedi requested review from a team and emyller and removed request for a team and talissoncosta January 8, 2026 08:15
@gagantrivedi gagantrivedi merged commit 8cdb036 into main Jan 8, 2026
35 checks passed
@gagantrivedi gagantrivedi deleted the fix/ecs-sdk-service-same-task-definition branch January 8, 2026 10:01
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.

3 participants