Skip to content

Commit 067408d

Browse files
Merge branch 'main' into chore/auto-libs
2 parents 1b95dd4 + 73c5d2d commit 067408d

File tree

147 files changed

+981
-18146
lines changed

Some content is hidden

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

147 files changed

+981
-18146
lines changed

.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_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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
provider: lxd
2626
test-tox-env: integration-juju3.1
2727
modules: '["test_charm_scheduled_events", "test_debug_ssh", "test_charm_upgrade"]'
28-
extra-arguments: "-m openstack"
28+
extra-arguments: '-m openstack --log-format="%(asctime)s %(levelname)s %(message)s"'
2929
self-hosted-runner: true
3030
self-hosted-runner-label: stg-private-endpoint
31+
test-timeout: 90
3132
openstack-interface-tests-private-endpoint:
3233
name: openstack interface test using private-endpoint
3334
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main
@@ -38,6 +39,7 @@ jobs:
3839
provider: lxd
3940
test-tox-env: integration-juju3.6
4041
modules: '["test_runner_manager_openstack"]'
42+
extra-arguments: '--log-format="%(asctime)s %(levelname)s %(message)s"'
4143
self-hosted-runner: true
4244
self-hosted-runner-label: stg-private-endpoint
4345
openstack-integration-tests-private-endpoint:
@@ -49,8 +51,8 @@ jobs:
4951
pre-run-script: scripts/setup-lxd.sh
5052
provider: lxd
5153
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"
54+
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_reactive"]'
55+
extra-arguments: '-m openstack --log-format="%(asctime)s %(levelname)s %(message)s"'
5456
self-hosted-runner: true
5557
self-hosted-runner-label: stg-private-endpoint
5658
allure-report:

0 commit comments

Comments
 (0)