Skip to content

DO NOT MERGE test refresh v3 draft implementation #412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: refresh-v3-draft
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .github/workflows/charm_libs.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/check_pr.yaml

This file was deleted.

46 changes: 7 additions & 39 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
# See LICENSE file for licensing details.
name: Tests

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
schedule:
Expand All @@ -18,46 +14,18 @@ on:
value: ${{ jobs.build.outputs.artifact-prefix }}

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tox & poetry
run: |
pipx install tox
pipx install poetry
- name: Run linters
run: tox run -e lint

unit-test:
name: Unit test charm
runs-on: ubuntu-22.04 # TODO: use ubuntu-latest after fixing pathlib issue on python 3.12
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tox & poetry
run: |
pipx install tox
pipx install poetry
- name: Run tests
run: tox run -e unit

build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/[email protected]

integration-test:
name: Integration test charm
release:
name: Release charm
needs:
- lint
- unit-test
- build
uses: ./.github/workflows/integration_test.yaml
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v31.0.0
with:
channel: 8.0/edge/test-refresh-v3-uncaught
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
permissions:
contents: write # Needed for Allure Report
create-git-tags: false
secrets:
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }}
2 changes: 1 addition & 1 deletion refresh_versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ charm_major = 1
workload = "8.0.41"

# autogenerated
charm = "8.0/1.0.0"
charm = "8.0/1.3.0"
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def __init__(self, *args) -> None:
self._reconcile_allowed = False
else:
self._reconcile_allowed = True
raise Exception

@property
def _subordinate_relation_endpoint_names(self) -> typing.Optional[typing.Iterable[str]]:
Expand Down