From db03239c65a695f5b9b9352b77b1a1ae4ac06603 Mon Sep 17 00:00:00 2001 From: matusdrobuliak66 <60785969+matusdrobuliak66@users.noreply.github.com> Date: Tue, 11 Apr 2023 15:05:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20enhancing=20release=20workflow?= =?UTF-8?q?=20+=20adding=20hotfix=20template=20(#4083)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/4_pre_release.yml | 2 +- .github/ISSUE_TEMPLATE/5_release.yml | 6 +- .github/ISSUE_TEMPLATE/6_hotfix.yml | 89 ++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 4 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/6_hotfix.yml diff --git a/.github/ISSUE_TEMPLATE/4_pre_release.yml b/.github/ISSUE_TEMPLATE/4_pre_release.yml index 39ceacf87c0..458482efd29 100644 --- a/.github/ISSUE_TEMPLATE/4_pre_release.yml +++ b/.github/ISSUE_TEMPLATE/4_pre_release.yml @@ -76,7 +76,7 @@ body: Log any issues since this procedure should be taken also as an exercise in preparation for the release to production as well. value: | - [ ] Add changes (if any) and release tags in https://github.com/ITISFoundation/osparc-ops-environments/tags - - [ ] Add changes (if any) and release tags in osparc ops configurations + - [ ] Add changes (if any) and release tags in **osparc-ops-deployment-configuration** (osparc.io & speag.com) - [ ] ... validations: required: false diff --git a/.github/ISSUE_TEMPLATE/5_release.yml b/.github/ISSUE_TEMPLATE/5_release.yml index 7336c4de752..0a1ffeca926 100644 --- a/.github/ISSUE_TEMPLATE/5_release.yml +++ b/.github/ISSUE_TEMPLATE/5_release.yml @@ -27,7 +27,7 @@ body: attributes: label: "Previous pre-release" description: | - Link to pre-release to staging tha preceeds this release + Link to pre-release to staging that preceeds this release value: https://github.com/ITISFoundation/osparc-simcore/releases/tag/staging_ validations: required: true @@ -70,7 +70,7 @@ body: Log below completed steps and issues value: | - [ ] Add changes (if any) and release tags in https://github.com/ITISFoundation/osparc-ops-environments/tags - - [ ] Add changes (if any) and release tags in osparc ops configurations + - [ ] Add changes (if any) and release tags in **osparc-ops-deployment-configuration** (osparc.io & speag.com) - [ ] ... validations: required: false @@ -123,7 +123,7 @@ body: - [ ] aws - [ ] dalco - [ ] tip - - status page + - status page (https://manage.statuspage.io/) - [ ] osparc - [ ] s4l - mattermost channels diff --git a/.github/ISSUE_TEMPLATE/6_hotfix.yml b/.github/ISSUE_TEMPLATE/6_hotfix.yml new file mode 100644 index 00000000000..ea428ab25d5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/6_hotfix.yml @@ -0,0 +1,89 @@ +name: 🚑️ Hotfix (developers-only) +description: Critical hotfix to staging or production +title: '🚑️ Release (hotfix)' +labels: ["t:maintenance", "release"] +assignees: ["pcrespov"] +body: + - type: input + id: version + attributes: + label: Release version + description: Release version as major.minor.patch .Check [Releases](https://github.com/ITISFoundation/osparc-simcore/releases) + placeholder: 1.51.1 + validations: + required: true + - type: input + id: commit_sha + attributes: + label: Commit SHA + description: | + Selets the commit from which the release takes placeholder. Check [commits](https://github.com/ITISFoundation/osparc-simcore/commits/master) + IMPORTANT: make sure t (i.e. tests passed and images were built and pushed) + placeholder: 8d9a27ebb3e64956e6a41f31839748b3f6a27074 + validations: + required: true + - type: input + id: previous_release + attributes: + label: "Previous release" + description: | + Link to release that preceeds this release + value: https://github.com/ITISFoundation/osparc-simcore/releases/tag/ + validations: + required: true + - type: checkboxes + attributes: + label: Did the commit CI suceeded? + description: Check the CI of the selected commit in the [repo commits](https://github.com/ITISFoundation/osparc-simcore/commits/master) to make sure the images are built and ready + options: + - label: The commit CI succeeded. + required: true + - type: textarea + attributes: + label: Motivation + description: | + What is the motivation to release hotfix to stagging/production? + - Explain what motivates this release? + - Which important changes we might pay attention to? + - How should we test them? + - Is there anything in particular we should monitor? + validations: + required: true + - type: textarea + attributes: + label: "🚑️ Hotfix branch" + value: | + - [] create hotfix branch [``hotfix_v1_51_x``](https://github.com/ITISFoundation/osparc-simcore/tree/hotfix_v1_51_x) directly in *upstream* repo. **Do not delete hotfix branches** at least until next *full* release takes place. + - [] prepare hotfix by applying patches/cherry-picks (see *what changed* section) + - [] test hotfix in local deployment @pcrespov + - [] push and [check whether CI passed](https://github.com/ITISFoundation/osparc-simcore/actions) + - [] check [images in dockerhub](https://registry.hub.docker.com/u/itisfoundation) + validations: + required: false + - type: textarea + attributes: + label: Changes + description: | + Changes introduced by this release. + List links to the PRs associated to every commit in the release. This will automatically create references between PRs and this release that will be very valuable for traceability. + TIP: use the autogenerate changelog feature during the draft release. + validations: + required: false + - type: textarea + attributes: + label: Releasing 🚀 + value: | + - ``make release-hotfix version=1.51.1 git_sha=8d9a27ebb3e64956e6a41f31839748b3f6a27074`` + - [ ] Draft [release notes](https://github.com/ITISFoundation/osparc-simcore/releases) 🚀 + - [ ] No need for maintenance announcement?: Target update of ``service`` + - [ ] Deploy hot-fix. + - [ ] ``autodeployer`` OFF in aws-prod, dalco-prod, ti + - [ ] [release](https://github.com/ITISFoundation/osparc-simcore/releases) 🚀 !!!! + - [ ] aws-prod (updated target service) + - [ ] dalco-prod (updated target service) + - [ ] ti (updated target service) + - [ ] Test and Monitor. Revert back if needed! + - [ ] Announce hot-fix + ``` md + :tada: https://github.com/ITISFoundation/osparc-simcore/releases/tag/v + ```