Skip to content

Commit cffdd76

Browse files
dragomirpgithub-actions[bot]a-velascomarceloneppelrenovate[bot]
authored
[MISC] Sync 14 to 16 (#1038)
* Sync docs from Discourse (#864) Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> * Refactor v14 documentation for Sphinx (#981) * add starter pack and sync tutorial with VM * update deployment guides * rename how-to-guides to how-to * sync how-to guides with vm * sync references with vm * sync explanation pages with vm * add .readthedocs.yaml and reduce .gitignore scope for requirements.txt file * fix some formatting issues * sync backup guides with vm * fix misc. build errors and sync tutorial with vm * add doc ci checks * remove discourse sync workflow * polish tutorial and deploy guide * specify channel on all deploy commands * sync misc. pages with vm * minor README update with new documentation link * ignore docs folder in development workflows * remove sphinx python dependency check workflow * update home page * [DPE-7510] Fix the auth username pattern (#987) * Fix auth username pattern Signed-off-by: Marcelo Henrique Neppel <[email protected]> * Fix unit test Signed-off-by: Marcelo Henrique Neppel <[email protected]> * Fix another ocurrence of the pattern Signed-off-by: Marcelo Henrique Neppel <[email protected]> --------- Signed-off-by: Marcelo Henrique Neppel <[email protected]> * Update ghcr.io/canonical/charmed-postgresql Docker tag to v14.18 (#983) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Add redirects for all charmhub pages (14) (#994) * chore: rename interfaces-endpoints for consistency with VM * update references to interfaces-and-endpoints * add rediraffe sphinx extension and redirect mapping list * fix: add forward slash to redirect paths (#998) * Fix broken URLs and spelling errors (#993) * add starter pack and sync tutorial with VM * update deployment guides * rename how-to-guides to how-to * sync how-to guides with vm * sync references with vm * sync explanation pages with vm * add .readthedocs.yaml and reduce .gitignore scope for requirements.txt file * fix some formatting issues * sync backup guides with vm * fix misc. build errors and sync tutorial with vm * add doc ci checks * remove discourse sync workflow * polish tutorial and deploy guide * specify channel on all deploy commands * sync misc. pages with vm * minor README update with new documentation link * ignore docs folder in development workflows * remove sphinx python dependency check workflow * update home page * fix some broken links * fix broken links * fix spelling errors in docs * fix spelling errors in other markdown files * small spelling fix * Renovate team (#999) * [MISC] Hold database created hook for pg_hba changes (#1001) * Hold database created hook for pg_hba changes * Restore the old blocking hook * 16/edge lib changes * Set to expected patch version * fix: internal reference typo (#1006) * Lock file maintenance Python dependencies (#962) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * DPE-6662 Fix pgbackrest logs names on logs rotation (#996) The pgBackRest activity (backup creation, stanza initialisation, etc) could take minutes, as a result every minute logs rotation could move the current log A.log to A.log_$date.log and will be moved further as logrorate rule operates all *.log files in the folder: > /var/snap/charmed-postgresql/common/var/log/pgbackrest/*.log { ... It results in: -rw------- 1 postgres postgres 0 Feb 18 09:25 all-server.log -rw------- 1 postgres postgres 0 Feb 18 09:19 all-server.log-20250218_09:18.log -rw------- 1 postgres postgres 0 Feb 18 09:20 all-server.log-20250218_09:18.log-20250218_09:19.log -rw------- 1 postgres postgres 0 Feb 18 09:21 all-server.log-20250218_09:18.log-20250218_09:19.log-20250218_09:20.log -rw------- 1 postgres postgres 0 Feb 18 09:22 all-server.log-20250218_09:18.log-20250218_09:19.log-20250218_09:20.log-20250218_09:21.log -rw------- 1 postgres postgres 0 Feb 18 09:23 all-server.log-20250218_09:18.log-20250218_09:19.log-20250218_09:20.log-20250218_09:21.log-20250218_09:22.log -rw------- 1 postgres postgres 1793 Feb 18 09:24 all-server.log-20250218_09:18.log-20250218_09:19.log-20250218_09:20.log-20250218_09:21.log-20250218_09:22.log-20250218_09:23.log The poposed fix: * move the log file to the new name without .log suffix. * use datetime format matching MySQL charms Example: -rw------- 1 postgres postgres 12 Feb 18 09:28 all-server.log -rw------- 1 postgres postgres 322 Feb 18 09:29 all-server.log-20250218_0918 -rw------- 1 postgres postgres 7344 Feb 18 09:30 all-server.log-20250218_0918 * Update canonical/data-platform-workflows action to v32 (main) (#961) * Update canonical/data-platform-workflows action to v32 * Switch release flow --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dragomir Penev <[email protected]> * update links to ops tutorial and charm (#1015) * [MISC] Update libs and remove warning (#1014) * Update libs * Workflow tweaks * Remove from_environ warning * Lock file maintenance Python dependencies (#1012) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Delete runner password (#1023) * remove markdown-linter action (#1028) * [DPE-7594] Sync up pg_hba changes and remove trigger (#1007) * More aggressive idle checks * Explicit idle * Idle period when relating to the test app * Remove second start * Remove log warning * Hold create db hook for longer * Bump the pg_hba checker timeout * Don't update config * Bump timeout * Try to just append to pg_hba * Sync hba changes before creating db resources * Force regenerate hash and config on leader * Use current host to check hba * Update libs * Compare to local hash * Cla check for 16/edge * Don't defer peer change before init * Add back app check * Revert back to just updating peer data * Only sync hba once initially set * Bump timeout * Don't filter appends to pg_hba * Append the rel users directly to the user map * Add idle timeout * Remove trigger * Sleep longer * Set extra user roles * Always update hash * Bump sleep period * Revert the trigger * Move generate_user_hash to charm * Conditional hash update * Try to sort keys * Revert to relation user hash * Try to reduce the amount of ifs * Remove trigger * Blocked test app * Ignore blocked --------- Signed-off-by: Marcelo Henrique Neppel <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Andreia <[email protected]> Co-authored-by: Marcelo Henrique Neppel <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alex Lutay <[email protected]> Co-authored-by: Dave Wilding <[email protected]>
1 parent efd9e19 commit cffdd76

30 files changed

+339
-204
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ labels: bug
1111
<!-- Please enable debug logging by running `juju model-config logging-config="<root>=INFO;unit=DEBUG"` (if possible) -->
1212
1.
1313

14-
## Expected behavior
14+
## Expected behaviour
1515

1616

17-
## Actual behavior
17+
## Actual behaviour
1818
<!-- If applicable, add screenshots -->
1919

2020

.github/workflows/approve_renovate_pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ on:
1010
jobs:
1111
approve-pr:
1212
name: Approve Renovate pull request
13-
uses: canonical/data-platform-workflows/.github/workflows/approve_renovate_pr.yaml@v32.0.0
13+
uses: canonical/data-platform-workflows/.github/workflows/approve_renovate_pr.yaml@v32.1.0
1414
permissions:
1515
pull-requests: write # Needed to approve PR

.github/workflows/check_pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ on:
1616
jobs:
1717
check-pr:
1818
name: Check pull request
19-
uses: canonical/data-platform-workflows/.github/workflows/check_charm_pr.yaml@v32.0.0
19+
uses: canonical/data-platform-workflows/.github/workflows/check_charm_pr.yaml@v32.1.0

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 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@v32.0.0
30+
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v32.1.0
3131

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

5050
build:
5151
name: Build charm
52-
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v32.0.0
52+
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v32.1.0
5353

5454
integration-test:
5555
name: Integration test charm

.github/workflows/cla-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CLA check
22

33
on:
44
pull_request:
5-
branches: [main]
5+
branches: [main, 16/edge]
66

77
jobs:
88
cla-check:

.github/workflows/lib-check.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ jobs:
3232
with:
3333
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
3434
github-token: "${{ secrets.GITHUB_TOKEN }}"
35-
35+
permissions:
36+
# Add label to prs
37+
pull-requests: write

.github/workflows/promote.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
jobs:
2626
promote:
2727
name: Promote charm
28-
uses: canonical/data-platform-workflows/.github/workflows/_promote_charm.yaml@v32.0.0
28+
uses: canonical/data-platform-workflows/.github/workflows/_promote_charm.yaml@v32.1.0
2929
with:
3030
track: '16'
3131
from-risk: ${{ inputs.from-risk }}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
name: Release charm
4545
needs:
4646
- ci-tests
47-
uses: canonical/data-platform-workflows/.github/workflows/release_charm_edge.yaml@v32.0.0
47+
uses: canonical/data-platform-workflows/.github/workflows/release_charm_edge.yaml@v32.1.0
4848
with:
4949
track: 16
5050
artifact-prefix: ${{ needs.ci-tests.outputs.artifact-prefix }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build/
66
coverage.xml
77
__pycache__/
88
*.py[cod]
9-
requirements.txt
9+
./requirements.txt
1010
requirements-last-build.txt
1111

1212
# PyCharm project folder.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ this operator.
88
- Generally, before developing enhancements to this charm, you should consider [opening an issue
99
](https://github.com/canonical/postgresql-k8s-operator/issues) explaining your use case.
1010
- If you would like to chat with us about your use-cases or proposed implementation, you can reach
11-
us at [public Canonical Data Platform channel](https://chat.charmhub.io/charmhub/channels/data-platform)
11+
us at [our public Mattermost channel](https://matrix.to/#/#charmhub-data-platform:ubuntu.com)
1212
or [Discourse](https://discourse.charmhub.io/).
13-
- Familiarising yourself with the [Charmed Operator Framework](https://juju.is/docs/sdk) library
13+
- Familiarising yourself with the [Charmed Operator Framework](https://ops.readthedocs.io/en/latest/index.html) library
1414
will help you a lot when working on new features or bug fixes.
1515
- All enhancements require review before being merged. Code review typically examines
1616
- code quality

0 commit comments

Comments
 (0)