-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dpe-6033-preload-libs
- Loading branch information
Showing
27 changed files
with
258 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,44 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["github>canonical/data-platform//renovate_presets/charm.json5"], | ||
"reviewers": ["team:data-platform-postgresql"], | ||
"packageRules": [ | ||
// Later rules override earlier rules | ||
$schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
extends: [ | ||
'github>canonical/data-platform//renovate_presets/charm.json5', | ||
], | ||
reviewers: [ | ||
'team:data-platform-postgresql', | ||
], | ||
packageRules: [ | ||
{ | ||
"matchPackageNames": ["pydantic"], | ||
"allowedVersions": "<2.0.0" | ||
matchPackageNames: [ | ||
'pydantic', | ||
], | ||
allowedVersions: '<2.0.0', | ||
}, | ||
{ | ||
"matchManagers": ["regex"], | ||
"matchDepNames": ["juju"], | ||
"matchDatasources": ["pypi"], | ||
"allowedVersions": "<3", | ||
"groupName": "Juju agents" | ||
} | ||
matchManagers: [ | ||
'custom.regex', | ||
], | ||
matchDepNames: [ | ||
'juju', | ||
], | ||
matchDatasources: [ | ||
'pypi', | ||
], | ||
allowedVersions: '<3', | ||
groupName: 'Juju agents', | ||
}, | ||
], | ||
"regexManagers": [ | ||
customManagers: [ | ||
{ | ||
"fileMatch": ["^\\.github/workflows/[^/]+\\.ya?ml$"], | ||
"matchStrings": [ | ||
"(libjuju: )==(?<currentValue>.*?) +# renovate: latest libjuju 2" | ||
customType: 'regex', | ||
fileMatch: [ | ||
'^\\.github/workflows/[^/]+\\.ya?ml$', | ||
], | ||
matchStrings: [ | ||
'(libjuju: )==(?<currentValue>.*?) +# renovate: latest libjuju 2', | ||
], | ||
"depNameTemplate": "juju", | ||
"datasourceTemplate": "pypi", | ||
"versioningTemplate": "loose" | ||
} | ||
] | ||
depNameTemplate: 'juju', | ||
datasourceTemplate: 'pypi', | ||
versioningTemplate: 'loose', | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ on: | |
jobs: | ||
lint: | ||
name: Lint | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].4 | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].5 | ||
|
||
unit-test: | ||
name: Unit test charm | ||
|
@@ -39,13 +39,13 @@ jobs: | |
- name: Run tests | ||
run: tox run -e unit | ||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
uses: codecov/codecov-action@v5 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
build: | ||
name: Build charm | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].4 | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].5 | ||
with: | ||
cache: true | ||
|
||
|
@@ -59,25 +59,32 @@ jobs: | |
allure_on_amd64: false | ||
- agent: 3.4.6 # renovate: juju-agent-pin-minor | ||
allure_on_amd64: true | ||
- snap_channel: 3.6/candidate | ||
allure_on_amd64: false | ||
architecture: | ||
- amd64 | ||
include: | ||
- juju: | ||
agent: 3.4.6 # renovate: juju-agent-pin-minor | ||
allure_on_amd64: true | ||
architecture: arm64 | ||
name: Integration | ${{ matrix.juju.agent }} | ${{ matrix.architecture }} | ||
- juju: | ||
snap_channel: 3.6/candidate | ||
allure_on_amd64: false | ||
architecture: arm64 | ||
name: Integration | ${{ matrix.juju.agent || matrix.juju.snap_channel }} | ${{ matrix.architecture }} | ||
needs: | ||
- lint | ||
- unit-test | ||
- build | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].4 | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].5 | ||
with: | ||
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} | ||
architecture: ${{ matrix.architecture }} | ||
cloud: microk8s | ||
microk8s-snap-channel: 1.31-strict/stable # renovate: latest microk8s | ||
juju-agent-version: ${{ matrix.juju.agent }} | ||
juju-snap-channel: ${{ matrix.juju.snap_channel }} | ||
libjuju-version-constraint: ${{ matrix.juju.libjuju }} | ||
_beta_allure_report: ${{ matrix.juju.allure_on_amd64 && matrix.architecture == 'amd64' }} | ||
secrets: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,14 +42,14 @@ jobs: | |
|
||
build: | ||
name: Build charm | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].4 | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].5 | ||
|
||
release: | ||
name: Release charm | ||
needs: | ||
- ci-tests | ||
- build | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].4 | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].5 | ||
with: | ||
channel: 14/edge | ||
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
jobs: | ||
sync-docs: | ||
name: Sync docs from Discourse | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].4 | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected].5 | ||
with: | ||
reviewers: a-velasco | ||
permissions: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.