Promote a tested pipeline without losing its place
A workflow succeeds in development but writes a production-shaped table during testing. The same code must run in two environments. How should the team release it?
Promote a tested pipeline without losing its place
Separate orchestration from the work it schedules. A DAG can sequence a SQL transform, a quality check and a publication without carrying the data itself. Promote a pinned artifact and keep environment bindings outside it so the same tested logic reaches production.
In the recording
Version pipeline code, test each change and promote a successful build between Airflow environments.
Work through the decision
A workflow succeeds in development but writes a production-shaped table during testing. The same code must run in two environments. How should the team release it?
Check your reasoning
Parameterize destinations and identities, test on isolated fixtures and promote the same versioned artifact. Record which version produced each batch. Advance the processing checkpoint only after the output is durable.
Decisions and tradeoffs
- Integration test
- Run a representative input through the real interfaces in an isolated environment and compare the resulting rows and schema.
- Immutable artifact
- Promote the tested package by version or digest so production uses the build that passed review.
- Orchestration dependency
- Represent the relationship between tasks explicitly so publication waits for both load and validation to succeed.
- Environment-specific binding
- Resolve runtime projects, connections, identities and destinations from the target environment.
Practice the guide skills
- Sketch the Composer DAG or Workflows dependencies and failure paths.
- Build once, test with fixtures, deploy by version and rehearse rollback.
Official objectives for this lesson
Related lesson · Schedule work, trace a growing backlog and recover from retries
Promote a tested pipeline without losing its place quiz
Answer 3 questions. Check each answer for an explanation.