How do you know a successful deployment actually runs the new code?
After this you can answer: How do you know a successful deployment actually runs the new code?
Say it in 30 seconds
Section titled “Say it in 30 seconds”The deeper answer
Section titled “The deeper answer”The CI-triggered publish job checks out the exact commit CI tested, rather than whichever commit main contains later. It publishes API, web and worker images. Deployment checks that the chosen tag exists before changing the environment.
Phase A normally keeps running services on the current SSM image tag while creating infrastructure and selecting the new migration image. After migration succeeds, phase B updates the release tag and rolls application resources. First deployment and worker compatibility fallbacks are exceptions: there may be no usable previous image to preserve.
Verification must distinguish desired state from observed state. Compare running ECS task definitions with those registered for this deployment, then verify Lambda images and enabled mappings. Smoke checks of / and /trpc/events.list cover a narrow public path. They do not prove login, booking or asynchronous completion. A production release would choose additional checks according to the change and its risk.
Counter-questions
Section titled “Counter-questions”Why build once?
What if migration fails?
Would you add every end-to-end test as a smoke check?
Where in MiniTickets
Section titled “Where in MiniTickets”Read the path chapter, select the relevant map piece →, then inspect .github/workflows/cd.yml → deploy. Work through the related case for a diagnostic example.
Read this book online: https://book.theversehub.in/