Skip to content

Commit

Permalink
Preliminary updates for Client Relation. (#39)
Browse files Browse the repository at this point in the history
Add some quality of life & admin changes before merging in the client
relation, as well as a hefty lib import
  • Loading branch information
WRFitch authored Feb 21, 2023
1 parent 3304eb0 commit b1654d4
Show file tree
Hide file tree
Showing 47 changed files with 1,169 additions and 61 deletions.
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Proposal
<!-- What does this PR do? -->

## Context
<!-- Necessary details to understand the proposed changes. -->

## Release Notes
<!-- A simple bullet-point summary of the changes in this PR. -->

## Testing
<!-- A summary of how this PR has been tested, including automated testing. -->
18 changes: 14 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
unit-test:
name: Unit tests
runs-on: ubuntu-22.04
needs:
- lint
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -29,6 +31,8 @@ jobs:
integration-test-lxd-charm:
name: Integration tests for the charm (lxd)
runs-on: ubuntu-22.04
needs:
- unit-test
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -42,12 +46,14 @@ jobs:
sudo sysctl -w vm.max_map_count=262144
sudo sysctl -w vm.swappiness=0
sudo sysctl -w net.ipv4.tcp_retries2=5
tox -e charm-integration
integration-test-lxd-tls:
name: Integration tests for TLS (lxd)
runs-on: ubuntu-22.04
needs:
- unit-test
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -61,12 +67,14 @@ jobs:
sudo sysctl -w vm.max_map_count=262144
sudo sysctl -w vm.swappiness=0
sudo sysctl -w net.ipv4.tcp_retries2=5
tox -e tls-integration
integration-test-lxd-ha:
name: Integration tests for HA (lxd)
runs-on: ubuntu-22.04
needs:
- unit-test
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -80,12 +88,14 @@ jobs:
sudo sysctl -w vm.max_map_count=262144
sudo sysctl -w vm.swappiness=0
sudo sysctl -w net.ipv4.tcp_retries2=5
tox -e ha-integration
# integration-test-lxd-ha-service:
# name: Integration tests for HA - Service (lxd)
# runs-on: ubuntu-22.04
# needs:
# - unit-test
# steps:
# - name: Checkout
# uses: actions/checkout@v3
Expand All @@ -99,5 +109,5 @@ jobs:
# sudo sysctl -w vm.max_map_count=262144
# sudo sysctl -w vm.swappiness=0
# sudo sysctl -w net.ipv4.tcp_retries2=5
#

# tox -e ha-service-integration
8 changes: 0 additions & 8 deletions .github/workflows/on_pull_request.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
credentials: "${{ secrets.CHARMHUB_TOKEN }}" # FIXME: current token will expire in 2023-07-04
github-token: "${{ secrets.GITHUB_TOKEN }}"

ci-tests:
uses: ./.github/workflows/ci.yaml

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 Canonical Ltd.
Copyright 2023 Canonical Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion actions.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

set-tls-private-key:
Expand Down
2 changes: 1 addition & 1 deletion charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Canonical Ltd.
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

type: charm
Expand Down
Loading

0 comments on commit b1654d4

Please sign in to comment.