From 9f0068f256735db0efd82af3bb3af19b686d2b5a Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Wed, 16 Oct 2024 12:14:10 +0200 Subject: [PATCH] uncaught exception --- .github/workflows/ci.yaml | 4 ++-- src/kubernetes_charm.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d603cfe6d..3596c6e9a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,7 +3,7 @@ name: Tests concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-precheckfail + group: ${{ github.workflow }}-${{ github.ref }}-3 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-precheckfail + channel: 8.0/edge/test-refresh-v3-uncaught 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 6024edcbb..86d92c06c 100755 --- a/src/kubernetes_charm.py +++ b/src/kubernetes_charm.py @@ -108,6 +108,7 @@ def __init__(self, *args) -> None: if self.unit.is_leader(): self.app.status = ops.MaintenanceStatus("Waiting for peer relation") exit() + raise Exception @property def _subordinate_relation_endpoint_names(self) -> typing.Optional[typing.Iterable[str]]: