Skip to content

Commit 50a55ec

Browse files
authored
Merge branch 'canonical:main' into main
2 parents ba46d7b + 43ab437 commit 50a55ec

343 files changed

Lines changed: 20756 additions & 24544 deletions

File tree

Some content is hidden

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

.github/pull_request_template.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ Applicable spec: <link>
2525
- [ ] The [charm style guide](https://juju.is/docs/sdk/styleguide) was applied.
2626
- [ ] The [contributing guide](https://github.com/canonical/is-charms-contributing-guide) was applied.
2727
- [ ] The changes are compliant with [ISD054 - Managing Charm Complexity](https://discourse.charmhub.io/t/specification-isd014-managing-charm-complexity/11619)
28-
- [ ] The documentation is generated using `src-docs`.
2928
- [ ] The documentation for charmhub is updated.
3029
- [ ] The PR is tagged with appropriate label (`urgent`, `trivial`, `complex`).
3130
- [ ] The changelog is updated with changes that affects the users of the charm.
32-
- [ ] The changes do not introduce any regression in code or tests related to LXD runner mode.
3331

3432
<!-- Explanation for any unchecked items above -->

.github/workflows/e2e_test.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: End-to-End tests
22

33
on:
44
pull_request:
5-
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
69

710
jobs:
811
# test option values defined at test/conftest.py are passed on via repository secret
@@ -13,7 +16,7 @@ jobs:
1316
secrets: inherit
1417
with:
1518
juju-channel: 3.6/stable
16-
pre-run-script: scripts/setup-lxd.sh
19+
pre-run-script: scripts/setup-integration-tests.sh
1720
provider: lxd
1821
test-tox-env: integration-juju3.6
1922
modules: '["test_e2e"]'

.github/workflows/e2e_test_run.yaml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,20 @@ on:
1212
description: The e2e test runner tag to run the workflow on.
1313
type: string
1414
required: true
15-
runner-virt-type:
16-
description: The e2e test runner virtualization type. E.g. lxd, or openstack.
17-
# workflow_call does not support choice type.
18-
type: string
19-
required: true
2015
workflow_dispatch:
2116
inputs:
2217
runner-tag:
2318
description: The e2e test runner tag to run the workflow on.
2419
type: string
2520
required: true
26-
runner-virt-type:
27-
description: The e2e test runner virtualization type.
28-
type: choice
29-
required: true
30-
options:
31-
- lxd
32-
- openstack
3321

3422
jobs:
3523
e2e-test:
3624
name: End-to-End Test Run
3725
runs-on: [self-hosted, linux, "${{ inputs.runner-tag }}"]
3826
steps:
3927
- name: Hostname is set to "github-runner"
40-
if: "${{ github.event.inputs.runner-virt-type == 'openstack' }}"
4128
run: sudo hostnamectl hostname | grep github-runner
42-
# Snapd can have some issues in privileged LXD containers without setting
43-
# security.nesting=True and this.
44-
- name: Fix snap issue in privileged LXD containers
45-
run: ln -s /bin/true /usr/local/bin/udevadm
4629
# Below is a series of simple tests to assess the functionality of the newly spawned runner.
4730
- name: Echo hello world
4831
run: echo "hello world"
@@ -104,11 +87,3 @@ jobs:
10487
# ~/.local/bin is added to path runner env through in scripts/env.j2
10588
- name: test check-jsonschema
10689
run: check-jsonschema --version
107-
- name: Test Firewall
108-
if: "${{ github.event.inputs.runner-virt-type == 'lxd' }}"
109-
run: |
110-
HOST_IP=$(ip route | grep default | cut -f 3 -d" ")
111-
[ $((ping $HOST_IP -c 5 || :) | grep "Destination Port Unreachable" | wc -l) -eq 5 ]
112-
- name: Test sctp support
113-
if: "${{ github.event.inputs.runner-virt-type == 'lxd' }}"
114-
run: sudo apt-get install lksctp-tools -yq && checksctp

.github/workflows/integration_test.yaml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,26 @@ name: integration-tests
33
on:
44
pull_request:
55

6-
# Disabled until we get more resources for the actions
7-
# schedule:
8-
# # Trigger at 6:00 AM and 6:00 PM UTC
9-
# - cron: "0 6,18 * * *"
6+
schedule:
7+
# Trigger at 6:00 AM and 6:00 PM UTC
8+
- cron: "0 6,18 * * *"
109

1110
concurrency:
1211
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1312
cancel-in-progress: true
1413

1514
jobs:
16-
# test option values defined at test/conftest.py are passed on via repository secret
17-
# INTEGRATION_TEST_ARGS to operator-workflows automatically.
18-
integration-tests:
19-
name: Integration test with juju 3.1
20-
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main
21-
secrets: inherit
22-
with:
23-
juju-channel: 3.1/stable
24-
pre-run-script: scripts/setup-lxd.sh
25-
provider: lxd
26-
test-tox-env: integration-juju3.1
27-
modules: '["test_charm_scheduled_events", "test_debug_ssh", "test_charm_upgrade"]'
28-
extra-arguments: "-m openstack"
29-
self-hosted-runner: true
30-
self-hosted-runner-label: stg-private-endpoint
3115
openstack-interface-tests-private-endpoint:
3216
name: openstack interface test using private-endpoint
3317
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main
3418
secrets: inherit
3519
with:
3620
juju-channel: 3.6/stable
37-
pre-run-script: scripts/setup-lxd.sh
21+
pre-run-script: scripts/setup-integration-tests.sh
3822
provider: lxd
3923
test-tox-env: integration-juju3.6
4024
modules: '["test_runner_manager_openstack"]'
25+
extra-arguments: '--log-format="%(asctime)s %(levelname)s %(message)s"'
4126
self-hosted-runner: true
4227
self-hosted-runner-label: stg-private-endpoint
4328
openstack-integration-tests-private-endpoint:
@@ -46,17 +31,16 @@ jobs:
4631
secrets: inherit
4732
with:
4833
juju-channel: 3.6/stable
49-
pre-run-script: scripts/setup-lxd.sh
34+
pre-run-script: scripts/setup-integration-tests.sh
5035
provider: lxd
5136
test-tox-env: integration-juju3.6
52-
modules: '["test_charm_metrics_failure", "test_charm_metrics_success", "test_charm_fork_repo", "test_charm_runner", "test_reactive"]'
53-
extra-arguments: "-m openstack"
37+
modules: '["test_charm_metrics_failure", "test_charm_metrics_success", "test_charm_fork_repo", "test_charm_fork_path_change", "test_charm_no_runner", "test_charm_runner", "test_debug_ssh", "test_charm_upgrade", "test_reactive", "test_jobmanager_prespawned", "test_jobmanager_reactive"]'
38+
extra-arguments: '-m openstack --log-format="%(asctime)s %(levelname)s %(message)s"'
5439
self-hosted-runner: true
5540
self-hosted-runner-label: stg-private-endpoint
5641
allure-report:
5742
if: ${{ (success() || failure()) && github.event_name == 'schedule' }}
5843
needs:
59-
- integration-tests
6044
- openstack-interface-tests-private-endpoint
6145
- openstack-integration-tests-private-endpoint
6246
uses: canonical/operator-workflows/.github/workflows/allure_report.yaml@main

.github/workflows/promote_charm.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ jobs:
2828
origin-channel: ${{ github.event.inputs.origin-channel }}
2929
destination-channel: ${{ github.event.inputs.destination-channel }}
3030
doc-automation-disabled: false
31+
base-channel: '22.04'
3132
secrets: inherit

0 commit comments

Comments
 (0)