Hotfix Workflow

This section explains how a hotfix if required could be applied in the context of sfops. These workflows automate the process of patching an existing release branch, and could be used for an accelerated delivery to release changes to RELEASE environments\

Please note hotfix is an anti pattern and should not be used. We have kept this feature for teams who are on their journey to continuous deployment

Hotfix Process

Step 1: Activate Apply a Patch action in sfops dev central

Step 2: Create and Validate a Hotfix Pull Request

Create a Pull Request against the newly created release branch with your hotfix changes. This change is validated against a review sandbox environment created against production. Once the validation is successful and the changes have been peer-reviewed, the Pull Request can be merged.

Step 3: Build and Cherry-Pick the Hotfix

Upon merging the Pull Request, the "Build, Deploy & Publish" workflow will be executed. The workflow uses the respective release branch that was created.

This workflow will build and publish the updated packages to be included in the release. Additionally, an automated cherry-picker process will create a new Pull Request against the main branch with the hotfix changes.

It's crucial to review this automated cherry-pick Pull Request on priority. The decision to merge or not depends on the change and what's currently in flight. This step ensures that the hotfix is also applied to the main branch, allowing the changes to persist in future releases.

Step 4: Release to STAGING and PROD

Once the hotfix is ready, you can manually trigger a release of the newly created release definition from the sfops dev central to release the hotfix to the STAGING and PROD environments.

This will release the patched versions to STAGING and PROD environments, with the newly built hotfix included.

Please note, if the STAGING environment is currently testing an inflight release, you might choose to skip the STAGING step and directly release the hotfix to the PROD environment.

Last updated