Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 3.06 KB

developer_workflow_bug_fix_older_package_version.md

File metadata and controls

68 lines (49 loc) · 3.06 KB

Developer workflow: release a bug fix for supporting older package version?

In some cases, when we drop the support for an older version of the stack and later on find out needing to add a bug fix to the some old package version, we have to make some manual changes to release the bug fix to users. For example: in this PR (AWS package version 1.23.4), it was dropped support for Kibana version 7.x and bumped the AWS package version from 1.19.5 to 1.20.0. But we found a bug in the EC2 dashboard that needs to be fixed with Kibana version 7.x. So instead of adding a new AWS package version 1.23.5, we need to fix it between 1.19.5 and 1.20.0.

Follow these detailed steps to release a fix for a given package version:

  1. Find git commit (package version) that needs to be fixed

    In the example above, the commit to be fixed is the one right before this PR updating package aws:

  2. Create a branch

    Create a branch out of the commit from the previous step (8cb321075afb9b77ea965e1373a03a603d9c9796) and name it following this pattern: backport-<package_name>-<package_major_version>.<package_minor_version>. For example: backport-aws-1.19.

  3. Create a PR for the bug fix

    Apply bugfixes and open a PR against the backport-<package_name>-<package_major_version>.<package_minor_version> branch created above.

Once this PR is merged, this new version of the package is going to be published automatically following the usual CI/CD jobs.