Skip to content
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

[DPE-2759] data platform libs v23 juju3 pipelines on carl latest upgrades #90

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
502f77d
Sync files with K8s
carlcsaposs-canonical Oct 17, 2023
d233f68
Update deprecated_shared_db_database_provides.py
carlcsaposs-canonical Oct 17, 2023
3570ef5
Sync files with K8s
carlcsaposs-canonical Oct 23, 2023
9a95a17
Add in-place upgrades
carlcsaposs-canonical Oct 26, 2023
4b62b74
Fix unit tests
carlcsaposs-canonical Oct 30, 2023
7d5b2a3
remove extraneous docstring
carlcsaposs-canonical Oct 30, 2023
4e3708a
sync with changes for k8s
carlcsaposs-canonical Oct 30, 2023
590e21e
Maintenance status
carlcsaposs-canonical Oct 30, 2023
7e5335c
Reduce nested if
carlcsaposs-canonical Oct 30, 2023
cacf3b5
python3.8 fix
carlcsaposs-canonical Oct 30, 2023
6766eed
python3.8 fix
carlcsaposs-canonical Oct 31, 2023
fb9464f
python3.8 fix
carlcsaposs-canonical Oct 31, 2023
6ae281a
Additional logs on pipeline for debugging
juditnovak Oct 31, 2023
90f14df
pyproject changes: pytest-mock, ops, etc. for tests
juditnovak Oct 18, 2023
90edf0b
Test execution both for Juju2 and Juju3
juditnovak Oct 18, 2023
91afe4e
data_platform_libs v22 (delete_relation_data(), support for rolling u…
juditnovak Oct 19, 2023
13eead1
Test changes
juditnovak Oct 18, 2023
fca15b3
Updated pipelines to include Juju3
juditnovak Oct 19, 2023
9813872
Removing databag reference from MySQL Router Provides
juditnovak Oct 20, 2023
580bd8f
Juju3 as default + ops-scenario fixed (https://github.com/canonical/o…
juditnovak Oct 23, 2023
de8a49e
12 runners for unittests to progerss
juditnovak Oct 30, 2023
caba07d
poetry.lock and other fixes after rebase
juditnovak Oct 30, 2023
65302e2
Adding requested change
juditnovak Oct 31, 2023
ec2213d
data_platform_libs/data_interfaces v23
juditnovak Oct 31, 2023
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
39 changes: 37 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,15 @@ jobs:
bases-index: 0
- series: jammy
bases-index: 1
name: (GH hosted) ${{ matrix.groups.job_name }} | ${{ matrix.ubuntu-versions.series }}
juju-snap-channel: ["2.9/stable", "3.1/stable"]
include:
- juju-snap-channel: "3.1/stable"
agent-version: "3.1.6"
libjuju-version: "3.2.2"
- juju-snap-channel: "2.9/stable"
agent-version: "2.9.45"
libjuju-version: "2.9.44.1"
name: ${{ matrix.juju-snap-channel }} - (GH hosted) ${{ matrix.groups.job_name }} | ${{ matrix.ubuntu-versions.series }}
needs:
- lint
- unit-test
Expand All @@ -127,6 +135,11 @@ jobs:
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
bootstrap-options: "--agent-version ${{ matrix.agent-version }}"
juju-channel: ${{ matrix.juju-snap-channel }}
- name: Update python-libjuju version
if: ${{ matrix.libjuju-version == '2.9.44.1' }}
run: poetry add --lock --group integration juju@'${{ matrix.libjuju-version }}'
- name: Download packed charm(s)
uses: actions/download-artifact@v3
with:
Expand All @@ -142,5 +155,27 @@ jobs:
echo Skipping unstable tests
echo "mark_expression=not unstable" >> "$GITHUB_OUTPUT"
fi
- run: juju add-model test
- name: Run integration tests
run: tox run -e integration -- "${{ matrix.groups.path_to_test_file }}" --group="${{ matrix.groups.group_number }}" -m '${{ steps.select-test-stability.outputs.mark_expression }}' --mysql-router-charm-series=${{ matrix.ubuntu-versions.series }} --mysql-router-charm-bases-index=${{ matrix.ubuntu-versions.bases-index }}
id: tests
run: tox run -e integration -- "${{ matrix.groups.path_to_test_file }}" --group="${{ matrix.groups.group_number }}" -m '${{ steps.select-test-stability.outputs.mark_expression }}' --mysql-router-charm-series=${{ matrix.ubuntu-versions.series }} --mysql-router-charm-bases-index=${{ matrix.ubuntu-versions.bases-index }} --model test
env:
LIBJUJU_VERSION_SPECIFIER: ${{ matrix.libjuju-version }}
- name: Select model
if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }}
run: |
juju switch test
mkdir -p ~/logs/'${{ matrix.groups.log_artifact_path }}'
- name: juju status
if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }}
run: juju status --color --relations | tee ~/logs/'${{ matrix.groups.log_artifact_path }}'/juju-status.txt
- name: juju debug-log
if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }}
run: juju debug-log --color --replay --no-tail | tee ~/logs/'${{ matrix.groups.log_artifact_path }}'/juju-debug-log.txt
- name: Upload logs
if: ${{ success() || (failure() && steps.tests.outcome == 'failure') }}
uses: actions/upload-artifact@v3
with:
name: intergration-test-charm-logs-${{ inputs.cloud }}-juju-${{ inputs.juju-agent-version || inputs.juju-snap-channel }}
path: ~/logs/
if-no-files-found: error
7 changes: 7 additions & 0 deletions actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

resume-upgrade:
description: Upgrade remaining units (after you manually verified that upgraded units are healthy).
force-upgrade:
description: Force upgrade of this unit.
1 change: 1 addition & 0 deletions charm_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
3 changes: 3 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ parts:
exit 1
fi
charm-entrypoint: src/machine_charm.py
prime:
- charm_version
- workload_version
Loading
Loading