Skip to content

Commit 71e8e16

Browse files
lucasgameiroborgesLucas Gameiro Borgesrenovate[bot]dragomirpmarceloneppel
authored
[DPE-5833] Create new PostgreSQL version 16 charm (#788)
* try using pg 16 rock * try fix integration tests * remove argument on helper * more fixes * fix test issues * REVERT LATER: Adapt build_charm function * remove base=CHARM_BASE from deploy * remove juju 2.9 tests * grat permissions to public schema * fix linting and unit test * try refactor the permissions change * Update dependency uv to v0.5.27 (#847) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * grant public access to public schemas * [DPE-6053] Fix ports (#846) * Fix ports Signed-off-by: Marcelo Henrique Neppel <[email protected]> * Remove unused import Signed-off-by: Marcelo Henrique Neppel <[email protected]> * Remove unused charm library and fix unit tests Signed-off-by: Marcelo Henrique Neppel <[email protected]> * Fix identation Signed-off-by: Marcelo Henrique Neppel <[email protected]> * Bump libs * Conditional set_ports logic * Unit test * Don't expect juju managed resources --------- Signed-off-by: Marcelo Henrique Neppel <[email protected]> Co-authored-by: Marcelo Henrique Neppel <[email protected]> * mark smoke test as unstable * test release charm to 16/edge * fix test release workflow * fix typo * Sync docs from Discourse (#801) Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> * Update dependency uv to v0.5.29 (#848) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * [MISC] Define charm utility properties (#842) * Update data-platform-workflows to v29.1.0 (#849) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * revert metadata.yaml * nits * Use `charmcraft test` & concierge (#852) * [MISC] Split topology script (#853) * Update charmcraft.yaml build tools (#851) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency uv to v0.5.31 (#858) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update canonical/data-platform-workflows action to v30 (#859) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Use _promote_charm.yaml (#860) Use `charmcraft promote` and auto-generate release notes * Update dependency cryptography to v44.0.1 [SECURITY] (#855) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Sync docs from Discourse (#854) Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> * Update data-platform-workflows to v30.0.2 (#863) * Update canonical/has-signed-canonical-cla action to v2 (#865) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * [DPE-5827] Set all nodes to synchronous replicas (#784) * Update patroni configuration * Update test assertion * Copy update_synchronous_node_count from VM * Add unit test * Set sync node count during upgrade * Fix tls test * Switchover primary * Add different helper to get leader * Add config boilerplate * Use config value when setting sync node count * Escape tuple * Add policy values * Add integration test * Fix casting * Fix test * Update to spec * Bump retry timout * Switch to planned units * Fix generator * Update conf description * Spread task * Pass the charm * [DPE-6484] Add scope to promote to primary (#850) * Promote unit action * Tweaks for failing REST calls * VM parity * [MISC] Enable RBAC in tests (#861) * Enable RBAC * Bump cosl * Add trust * Bump libs * [MISC] Define charm constants (#862) * Lock file maintenance Python dependencies (#835) * Lock file maintenance Python dependencies * Backoff boto3 1.36 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dragomir Penev <[email protected]> * Update canonical/data-platform-workflows action to v30.1.3 (#856) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update charmcraft.yaml build tools (#868) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Handle missing stanza output (#866) * Update ghcr.io/canonical/charmed-postgresql:14.15-22.04_edge Docker digest to 71d49b6 (#870) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * [MISC] Disable storage test on arm (#872) * Disable storage test on Arm * Bump libs * Correct import path * Update charmcraft.yaml build tools (#871) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * [MISC] Add degraded status to primary message (#874) * Add degraded status on to primary message * Use const running tests * [MISC] Sanitize PostgreSQL extra-user-roles arg (#876) * [MISC] Fix PostgreSQL lib function signature (#879) * [MISC] Skip backup tests without creds (#884) * Bump libs * Skip backups tests if no creds are set * Check that the cloud config is set to a value * Typo * Update tests/integration/conftest.py Co-authored-by: Carl Csaposs <[email protected]> * Switch all checks to gets * Typo --------- Co-authored-by: Carl Csaposs <[email protected]> * [DPE-6679] PostgreSQL Config Improvement (#867) * config improvement * config improvement * config improvement * config improvement * config improvement * config improvement * config improvement * config improvement * config improvement * config improvement * Update dependency jinja2 to v3.1.6 [SECURITY] (#882) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update canonical/data-platform-workflows action to v30.2.0 (#887) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Reduce required approvals on Renovate pull requests by 1 (#880) * Update dependency uv to v0.6.5 (#878) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Don't run juju2 and legacy tests * Use correct charm * Dual branch config * Remove 14 specific tests * Remove eer data secrets * Skip upgrade from stable * Upgrade on Noble * Build and deploy noble * Linting * Disable pgaudit during tests * Linting * Use common deploy for smoke test * Tweaks * Remove legacy rels * Tweak tests * Cleanup markers * Deploy without pgaudit in plugin tests * Update ghcr.io/canonical/charmed-postgresql Docker tag to v14.17 (#877) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Correct remove relation * Bump rock * Remove check for port forwarding --------- Signed-off-by: Marcelo Henrique Neppel <[email protected]> Co-authored-by: Lucas Gameiro Borges <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dragomir Penev <[email protected]> Co-authored-by: Marcelo Henrique Neppel <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sinclert Pérez <[email protected]> Co-authored-by: lucas.gameiro-borges <[email protected]> Co-authored-by: Carl Csaposs <[email protected]> Co-authored-by: Dragomir Penev <[email protected]> Co-authored-by: Danylo Bereznenko <[email protected]>
1 parent ab80bae commit 71e8e16

File tree

141 files changed

+5103
-5183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+5103
-5183
lines changed

.github/release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
changelog:
2+
categories:
3+
- title: Features
4+
labels:
5+
- enhancement
6+
- title: Bug fixes
7+
labels:
8+
- bug

.github/renovate.json5

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,15 @@
66
reviewers: [
77
'team:data-platform-postgresql',
88
],
9+
"baseBranches": ["main", "/^*\\/edge$/"],
910
packageRules: [
1011
{
1112
matchPackageNames: [
1213
'pydantic',
1314
],
1415
allowedVersions: '<2.0.0',
1516
},
16-
{
17-
matchManagers: [
18-
'custom.regex',
19-
],
20-
matchDepNames: [
21-
'juju',
22-
],
23-
matchDatasources: [
24-
'pypi',
25-
],
26-
allowedVersions: '<3',
27-
groupName: 'Juju agents',
28-
},
2917
],
3018
customManagers: [
31-
{
32-
customType: 'regex',
33-
fileMatch: [
34-
'^\\.github/workflows/[^/]+\\.ya?ml$',
35-
],
36-
matchStrings: [
37-
'(libjuju: )==(?<currentValue>.*?) +# renovate: latest libjuju 2',
38-
],
39-
depNameTemplate: 'juju',
40-
datasourceTemplate: 'pypi',
41-
versioningTemplate: 'loose',
42-
},
4319
],
4420
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2025 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Approve Renovate pull request
4+
5+
on:
6+
pull_request:
7+
types:
8+
- opened
9+
10+
jobs:
11+
approve-pr:
12+
name: Approve Renovate pull request
13+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
14+
permissions:
15+
pull-requests: write # Needed to approve PR

.github/workflows/check_pr.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2025 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Check pull request
4+
5+
on:
6+
pull_request:
7+
types:
8+
- opened
9+
- labeled
10+
- unlabeled
11+
- edited
12+
branches:
13+
- main
14+
15+
jobs:
16+
check-pr:
17+
name: Check pull request
18+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]

.github/workflows/ci.yaml

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727
jobs:
2828
lint:
2929
name: Lint
30-
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v29.0.5
30+
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v30.2.0
3131

3232
unit-test:
3333
name: Unit test charm
@@ -49,46 +49,19 @@ jobs:
4949

5050
build:
5151
name: Build charm
52-
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
52+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
53+
with:
54+
cache: false
5355

5456
integration-test:
55-
strategy:
56-
fail-fast: false
57-
matrix:
58-
juju:
59-
- agent: 2.9.51 # renovate: juju-agent-pin-minor
60-
libjuju: ==2.9.49.1 # renovate: latest libjuju 2
61-
allure_on_amd64: false
62-
- agent: 3.6.2 # renovate: juju-agent-pin-minor
63-
allure_on_amd64: true
64-
architecture:
65-
- amd64
66-
include:
67-
- juju:
68-
agent: 3.6.2 # renovate: juju-agent-pin-minor
69-
allure_on_amd64: true
70-
architecture: arm64
71-
name: Integration | ${{ matrix.juju.agent }} | ${{ matrix.architecture }}
57+
name: Integration test charm
7258
needs:
7359
- lint
7460
- unit-test
7561
- build
76-
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v29.0.5
62+
uses: ./.github/workflows/integration_test.yaml
7763
with:
7864
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
79-
architecture: ${{ matrix.architecture }}
80-
cloud: microk8s
81-
microk8s-snap-channel: 1.32-strict/stable # renovate: latest microk8s
82-
juju-agent-version: ${{ matrix.juju.agent }}
83-
libjuju-version-constraint: ${{ matrix.juju.libjuju }}
84-
_beta_allure_report: ${{ matrix.juju.allure_on_amd64 && matrix.architecture == 'amd64' }}
85-
secrets:
86-
integration-test: |
87-
{
88-
"AWS_ACCESS_KEY": "${{ secrets.AWS_ACCESS_KEY }}",
89-
"AWS_SECRET_KEY": "${{ secrets.AWS_SECRET_KEY }}",
90-
"GCP_ACCESS_KEY": "${{ secrets.GCP_ACCESS_KEY }}",
91-
"GCP_SECRET_KEY": "${{ secrets.GCP_SECRET_KEY }}",
92-
}
65+
secrets: inherit
9366
permissions:
94-
contents: write # Needed for Allure Report beta
67+
contents: write # Needed for Allure Report

.github/workflows/cla-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
runs-on: ubuntu-24.04
1010
steps:
1111
- name: Check if Canonical's Contributor License Agreement has been signed
12-
uses: canonical/has-signed-canonical-cla@v1
12+
uses: canonical/has-signed-canonical-cla@v2

0 commit comments

Comments
 (0)