Skip to content

Commit 1b78730

Browse files
[DPE-2904] Switching to self-hosted runners (#329)
* Update data-platform-workflows to v11 * Switch to latest dpw * Git add self-hosted test * Switch to self-hosted runners for all tests * Code review improvements --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent e509ced commit 1b78730

18 files changed

+45
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
lint:
2424
name: Lint
25-
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v9.3.1
25+
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v11.0.0
2626

2727
unit-test:
2828
name: Unit test charm
@@ -42,9 +42,9 @@ jobs:
4242

4343
build:
4444
name: Build charm
45-
uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v9.3.1
45+
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v11.0.0
4646
with:
47-
charmcraft-snap-channel: beta
47+
cache: true
4848

4949
integration-test:
5050
strategy:
@@ -59,9 +59,9 @@ jobs:
5959
- lint
6060
- unit-test
6161
- build
62-
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v9.3.1
62+
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v11.0.0
6363
with:
64-
artifact-name: ${{ needs.build.outputs.artifact-name }}
64+
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
6565
cloud: lxd
6666
juju-agent-version: ${{ matrix.juju.agent }}
6767
libjuju-version-constraint: ${{ matrix.juju.libjuju }}

.github/workflows/release.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@ jobs:
2222

2323
build:
2424
name: Build charm
25-
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
26-
with:
27-
charmcraft-snap-channel: beta
25+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
2826

2927
release:
3028
name: Release charm
3129
needs:
3230
- ci-tests
3331
- build
34-
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v9.3.1
32+
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v11.0.0
3533
with:
3634
channel: 14/edge
37-
artifact-name: ${{ needs.build.outputs.artifact-name }}
35+
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
3836
secrets:
3937
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }}
4038
permissions:

.github/workflows/sync_issue_to_jira.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
sync:
1111
name: Sync GitHub issue to Jira
12-
uses: canonical/data-platform-workflows/.github/workflows/sync_issue_to_jira.yaml@v9.3.1
12+
uses: canonical/data-platform-workflows/.github/workflows/sync_issue_to_jira.yaml@v11.0.0
1313
with:
1414
jira-base-url: https://warthogs.atlassian.net
1515
jira-project-key: DPE

poetry.lock

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ optional = true
6565

6666
[tool.poetry.group.integration.dependencies]
6767
pytest = "^7.4.4"
68-
pytest-github-secrets = {git = "https://github.com/canonical/data-platform-workflows", tag = "v9.3.1", subdirectory = "python/pytest_plugins/github_secrets"}
68+
pytest-github-secrets = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.0", subdirectory = "python/pytest_plugins/github_secrets"}
6969
pytest-operator = "^0.32.0"
70-
pytest-operator-cache = {git = "https://github.com/canonical/data-platform-workflows", tag = "v9.3.1", subdirectory = "python/pytest_plugins/pytest_operator_cache"}
71-
pytest-operator-groups = {git = "https://github.com/canonical/data-platform-workflows", tag = "v9.3.1", subdirectory = "python/pytest_plugins/pytest_operator_groups"}
70+
pytest-operator-cache = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.0", subdirectory = "python/pytest_plugins/pytest_operator_cache"}
71+
pytest-operator-groups = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.0", subdirectory = "python/pytest_plugins/pytest_operator_groups"}
7272
juju = "^3.3.0.0"
7373
boto3 = "*"
7474
tenacity = "*"

tests/integration/ha_tests/test_replication.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
)
1919

2020

21+
@pytest.mark.runner(["self-hosted", "linux", "X64", "jammy", "large"])
2122
@pytest.mark.group(1)
2223
@pytest.mark.abort_on_fail
2324
async def test_build_and_deploy(ops_test: OpsTest) -> None:

tests/integration/ha_tests/test_restore_cluster.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
charm = None
3030

3131

32+
@pytest.mark.runner(["self-hosted", "linux", "X64", "jammy", "large"])
3233
@pytest.mark.group(1)
3334
@pytest.mark.abort_on_fail
3435
async def test_build_and_deploy(ops_test: OpsTest) -> None:

tests/integration/ha_tests/test_self_healing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
DB_PROCESSES = [POSTGRESQL_PROCESS, PATRONI_PROCESS]
6161

6262

63+
@pytest.mark.runner(["self-hosted", "linux", "X64", "jammy", "large"])
6364
@pytest.mark.group(1)
6465
@pytest.mark.abort_on_fail
6566
async def test_build_and_deploy(ops_test: OpsTest) -> None:

tests/integration/ha_tests/test_upgrade.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
TIMEOUT = 600
3131

3232

33+
@pytest.mark.runner(["self-hosted", "linux", "X64", "jammy", "large"])
3334
@pytest.mark.group(1)
3435
@pytest.mark.abort_on_fail
3536
async def test_deploy_latest(ops_test: OpsTest) -> None:

tests/integration/ha_tests/test_upgrade_from_stable.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
TIMEOUT = 600
2626

2727

28+
@pytest.mark.runner(["self-hosted", "linux", "X64", "jammy", "large"])
2829
@pytest.mark.group(1)
2930
@pytest.mark.abort_on_fail
3031
async def test_deploy_stable(ops_test: OpsTest) -> None:

0 commit comments

Comments
 (0)