Skip to content

Commit

Permalink
Merge 24bf185 into 33fceee
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente authored Jan 16, 2025
2 parents 33fceee + 24bf185 commit f4b182d
Show file tree
Hide file tree
Showing 144 changed files with 913 additions and 18,124 deletions.
2 changes: 0 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ Applicable spec: <link>
- [ ] The [charm style guide](https://juju.is/docs/sdk/styleguide) was applied.
- [ ] The [contributing guide](https://github.com/canonical/is-charms-contributing-guide) was applied.
- [ ] The changes are compliant with [ISD054 - Managing Charm Complexity](https://discourse.charmhub.io/t/specification-isd014-managing-charm-complexity/11619)
- [ ] The documentation is generated using `src-docs`.
- [ ] The documentation for charmhub is updated.
- [ ] The PR is tagged with appropriate label (`urgent`, `trivial`, `complex`).
- [ ] The changelog is updated with changes that affects the users of the charm.
- [ ] The changes do not introduce any regression in code or tests related to LXD runner mode.

<!-- Explanation for any unchecked items above -->
25 changes: 0 additions & 25 deletions .github/workflows/e2e_test_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,20 @@ on:
description: The e2e test runner tag to run the workflow on.
type: string
required: true
runner-virt-type:
description: The e2e test runner virtualization type. E.g. lxd, or openstack.
# workflow_call does not support choice type.
type: string
required: true
workflow_dispatch:
inputs:
runner-tag:
description: The e2e test runner tag to run the workflow on.
type: string
required: true
runner-virt-type:
description: The e2e test runner virtualization type.
type: choice
required: true
options:
- lxd
- openstack

jobs:
e2e-test:
name: End-to-End Test Run
runs-on: [self-hosted, linux, "${{ inputs.runner-tag }}"]
steps:
- name: Hostname is set to "github-runner"
if: "${{ github.event.inputs.runner-virt-type == 'openstack' }}"
run: sudo hostnamectl hostname | grep github-runner
# Snapd can have some issues in privileged LXD containers without setting
# security.nesting=True and this.
- name: Fix snap issue in privileged LXD containers
run: ln -s /bin/true /usr/local/bin/udevadm
# Below is a series of simple tests to assess the functionality of the newly spawned runner.
- name: Echo hello world
run: echo "hello world"
Expand Down Expand Up @@ -104,11 +87,3 @@ jobs:
# ~/.local/bin is added to path runner env through in scripts/env.j2
- name: test check-jsonschema
run: check-jsonschema --version
- name: Test Firewall
if: "${{ github.event.inputs.runner-virt-type == 'lxd' }}"
run: |
HOST_IP=$(ip route | grep default | cut -f 3 -d" ")
[ $((ping $HOST_IP -c 5 || :) | grep "Destination Port Unreachable" | wc -l) -eq 5 ]
- name: Test sctp support
if: "${{ github.event.inputs.runner-virt-type == 'lxd' }}"
run: sudo apt-get install lksctp-tools -yq && checksctp
6 changes: 3 additions & 3 deletions .github/workflows/integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
provider: lxd
test-tox-env: integration-juju3.1
modules: '["test_charm_scheduled_events", "test_debug_ssh", "test_charm_upgrade"]'
extra-arguments: "-m openstack"
extra-arguments: '-m openstack --log-format="%(asctime)s %(levelname)s %(message)s"'
self-hosted-runner: true
self-hosted-runner-label: stg-private-endpoint
openstack-interface-tests-private-endpoint:
Expand All @@ -49,8 +49,8 @@ jobs:
pre-run-script: scripts/setup-lxd.sh
provider: lxd
test-tox-env: integration-juju3.6
modules: '["test_charm_metrics_failure", "test_charm_metrics_success", "test_charm_fork_repo", "test_charm_runner", "test_reactive"]'
extra-arguments: "-m openstack"
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"]'
extra-arguments: '-m openstack --log-format="%(asctime)s %(levelname)s %(message)s"'
self-hosted-runner: true
self-hosted-runner-label: stg-private-endpoint
allure-report:
Expand Down
Loading

0 comments on commit f4b182d

Please sign in to comment.