A team uses a trunk-based strategy. A completed feature passes the team's build, review, and deployment checks. Its code must be integrated into main now and included in the next production deployment. Users must not receive access until a marketing launch two weeks later. The team does not want a separate release branch for this feature.
Which branch and rollout plan meets the requirements?
Feature flags allow deployment timing and user activation to be scheduled independently. The team can merge the completed feature into main and deploy it disabled, then activate it for the marketing launch.
- Not correct: Keep the feature branch open, deploy main unchanged, and merge it on the launch date. This postpones integration and deployment.
- Correct: Merge into main now, deploy with the feature disabled, and enable it on the launch date. This plan merges the completed code into main now, includes it in the next production deployment, and delays user access until launch.
- Not correct: Merge into main now, deploy with the feature enabled, and announce it on the launch date. Enabling the deployed feature immediately does not preserve the required delay in user access.
- Not correct: Create a release branch now, deploy the feature from it, and merge after the launch date. This introduces the explicitly unwanted release branch and postpones integration into main.
- How Microsoft develops with DevOps - Azure DevOpsMicrosoft Learn