-
Notifications
You must be signed in to change notification settings - Fork 176
Release process
The following outlines the release process after all work is completed and merging a feature brach to dev for the next release or when merging dev to main for a public release.
On this page:
When a feature branch is code-complete, it can be merged into dev. Before proceeding, ensure the following requirements have been met:
- All tests pass.
The PR will be blocked if they don't.
- Any new features are code complete and not missing any functionality required for release.
Once in
dev, the feature is considered part of the next release and can be pushed out at any time. Any broken features will be reverted. - All new or updated functionality must be documented in the changelog.
See Changelog guidance for details about changelog requirements.
- All new or updated functionality must be documented in the documentation.
- Update the list of available tools on the documentation home page.
Once the above requirements have been met, the feature branch can be merged into dev using the following steps:
- From a command prompt, run
cd <root>/src/scripts; ./Merge-DevBranch features/<name>to sync the branch withdev. - Commit the changes and push to the feature branch.
- Create a PR to merge the feature branch into
dev. - Follow the normal PR process to merge the PR.
-
Review the changelog to ensure it encapsulates all changes.
- Move all released changes to an official numbered version section.
- If there are committed changes in a feature branch that you want to mention, add them to an "Unreleased" section.
-
Update the version.
<root>/src/scripts/Update-Version [-Major|Minor|Patch]
-
Build all toolkit templates and resolve any issues.
This step is optional, but can catch issues earlier. You can also add the
-Buildparameter to the publish command in the next step.<root>/src/scripts/Build-Toolkit
-
Publish each template to the target repo.
Bicep modules are published to the Bicep Registry, PowerShell in the PowerShell Gallery, and everything else in the Azure Quickstart Templates. Note that PowerShell is published separately and not included here.
-
Update your fork and local clone of the target repo (e.g., Bicep Registry or Azure Quickstart Templates).
Make sure you're in the main/master branch of the target repo when publishing a new template. If in another folder, the script will assume you're updating that branch and not create a new one.
-
Copy template files to the target repo and start a PR:
cd <root>/src/scripts ./Publish-Toolkit "finops-hub|governance-workbook|optimization-workbook" -Commit
-
Open the PR URL from the console and complete the PR template requirements.
If a name hasn't been set, use
New FinOps toolkit template β <template-name>. -
Review the code that's changed in the PR, verify that the changelog covers everything, and update as needed.
-
If you need to change anything, re-run the publish command without committing:
cd <root>/src/scripts ./Publish-Toolkit "finops-hub|governance-workbook|optimization-workbook" -Build
-
Switch to the target repo folder and verify your changes were applied correctly.
-
Commit and push your changes.
-
Return to the PR URL and publish the PR.
-
Check back after 1 hour to see if there any failed checks.
- If there are errors, click the Details link to understand what needs to be fixed.
- Fix any issues in the FinOps toolkit codebase (not in the target repo).
- Repeat steps 5-9 until all issues have been resolved.
-
Check back after 2-3 days to see if your PR is completed.
Bicep Registry and Azure Quickstart Template repos are manually reviewed and closed 2-3x per week. If you don't see an update, contact the ARM team.
-
-
Finalize the release.
-
Update the milestone.
- Review all issues in the milestone, move anything that needs to be pushed, and close any completed items.
- Close the milestone when all issues have been closed or moved.
-
Ensure all tests pass:
<root>/src/scripts/Test-PowerShell
-
Merge to main:
cd <root>/src/scripts ./Merge-DevBranch main
-
Verify documentation updated correctly
The documentation site may take 5 minutes to update after the merge is committed. If not updated, look at GitHub actions to see if there are any failures.
-
Tag and publish the release.
- For each Power BI report:
- Change the sensitivity to Public.
β οΈ Power BI does not remember the sensitivity setting for Power BI projects so this needs to be done for each release. If not done, the report will not open for anyone outside of Microsoft. - Update the version on the Get started tab.
- For the Cost summary report, remove the following from the Transform data (query editor):
- Delete both Recommendations* queries.
- Delete the InstanceSizeFlexibility query.
- Open the
βΆοΈ START HERE query in the advanced editor and remove connector settings and generated rows in the table from the separator line to the end.
- Save as a PBIX in the release folder.
β οΈ DO NOT save the above changes back to the Power BI project files! - Copy the first paragraph from the Get started page and save as PBIT in the release folder. Use the copied text for the description and add "Learn more at https://aka.ms/ftk/{report-name}" as a separate paragraph in the description.
- Change the sensitivity to Public.
- For each Power BI report:
-
Update the discussion.
-
Update all issues to
Status: Released. -
Update the download test to include any new files/versions.
See
FinOpsToolkit.Tests.ps1>Verify against prod GitHub
-
I hope this helps you understand the different pricing models. π
Our changelog is written for our customers, not developers. It should be easy to read and understand and should not include any technical details. It should be written in a way that a customer can read it and understand what's new in the release without requiring any additional context or internal details about how solutions were designed or built.
We follow a simplified version of Keep a Changelog. Specifically:
- Every major, customer-impacting change should be called out in the changelog.
- Unreleased features are in an "Unreleased" section, which is at the top of the changelog.
- This is typically only available in
devand is generally not released to the public documentation. - Before we release, we rename "Unreleased" to the desired version number.
- This is typically only available in
- Each version should be in its own section, formatted as
vX.X(e.g.,v0.1) and prepended with an emoji to indicate the type of release:- π for major releases (e.g., 2.0).
- π for minor releases (e.g., 1.1).
- π οΈ for patch releases (e.g., 1.0.1).
- πͺ for update releases (e.g., 1.0.0-preview.2).
- Group changes by tool and type of change.
- Each tool has its own section with its corresponding emoji and bolded text (e.g.,
π¦ **FinOps hubs**). - Types of changes are in a numbered list with their emoji and text in the following order:
-
β Addedfor new features. -
βοΈ Changedfor changes in existing functionality. -
βοΈ Deprecatedfor soon-to-be removed features. -
ποΈ Removedfor now removed features. -
π οΈ Fixedfor any bug fixes. -
π Securityin case of vulnerabilities.
-
- Under each type of change, add a numbered list of all changes of that type to that tool.
- Keep updates short and to the point. Limit to one line.
- Link to the documentation, when applicable.
- Link to issues, when available.
- Each tool has its own section with its corresponding emoji and bolded text (e.g.,
- Below the all tool changes, add a link to the release downloads.
Have a question or suggestion? Start a discussion and let us know you think.
Find a doc bug? Update docs-wiki and submit a PR.
Getting started
Contributing
Engineering
Standard operating procedures