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\
{% hint style="danger" %} 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 continuously deploying {% endhint %}
\
Create a Pull Request against the newly created release branch with your hotfix changes. This change is validated against a CI-HOTFIX sandbox environment. Once the validation is successful and the changes have been peer-reviewed, the Pull Request can be merged.
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.
Once the hotfix is ready, you can manually trigger a release of the newly created release definition from the sfops-dev-dashboard 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.
Always refer to the release definition file documentation at dxatscale docs for further information on how to configure the release.
For more details on how to use sfpowerscripts, visit sfpowerscripts documentation.