diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index da5e3ab46..d603cfe6d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,7 +3,7 @@ name: Tests concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-2 + group: ${{ github.workflow }}-${{ github.ref }}-precheckfail cancel-in-progress: true on: @@ -75,7 +75,7 @@ jobs: - build uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v22.0.0 with: - channel: 8.0/edge/test-refresh-v3-incompat + channel: 8.0/edge/test-refresh-v3-precheckfail artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} create-github-release: false secrets: diff --git a/src/kubernetes_charm.py b/src/kubernetes_charm.py index a03e12492..6024edcbb 100755 --- a/src/kubernetes_charm.py +++ b/src/kubernetes_charm.py @@ -37,7 +37,7 @@ class RouterRefresh(charm_refresh.CharmSpecific): @staticmethod def run_pre_refresh_checks_after_1_unit_refreshed() -> None: - pass + raise charm_refresh.PrecheckFailed("Backup in progress") @classmethod def is_compatible(