-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to DP workflows and self-hosted runners (#440)
## Issue This PR: - moves our CI pipelines to using the DP workflows - moves to poetry - enables allure reports - makes integ. tests run on self-hosted runners - bumps juju version to `3.4.4` on CI - updates the dp libs on client integration tests
- Loading branch information
1 parent
522c326
commit cc2a364
Showing
35 changed files
with
4,024 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,19 @@ on: | |
jobs: | ||
lint: | ||
name: Lint | ||
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v13.1.1 | ||
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v16.7.0 | ||
|
||
unit-test: | ||
name: Unit tests | ||
name: Unit test charm | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install tox | ||
# TODO: Consider replacing with custom image on self-hosted runner OR pinning version | ||
run: python3 -m pip install --upgrade pip; python3 -m pip install tox | ||
- name: Install tox & poetry | ||
run: | | ||
pipx install tox | ||
pipx install poetry | ||
- name: Run tests | ||
run: tox run -e unit | ||
|
||
|
@@ -40,11 +41,16 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: | | ||
# Workaround for https://github.com/canonical/charmcraft/issues/1389#issuecomment-1880921728 | ||
touch requirements.txt | ||
- name: Check libs | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMHUB_TOKEN }}" # FIXME: current token will expire in 2023-07-04 | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
credentials: ${{ secrets.CHARMHUB_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
use-labels: false | ||
fail-build: ${{ github.event_name == 'pull_request' }} | ||
|
||
check-terraform: | ||
name: Check Terraform | ||
|
@@ -78,29 +84,31 @@ jobs: | |
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
path: | ||
- . | ||
- tests/integration/sharding_tests/application | ||
- tests/integration/relation_tests/new_relations/application-charm | ||
- tests/integration/dummy_legacy_app | ||
name: Build charm | ||
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v13.1.1 | ||
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v16.7.0 | ||
with: | ||
path-to-charm-directory: ${{ matrix.path }} | ||
cache: true | ||
|
||
integration-test: | ||
name: Integration test charm | ||
name: Integration test charm | 3.4.4 | ||
needs: | ||
- lint | ||
- unit-test | ||
- build | ||
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v13.1.1 | ||
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v16.7.0 | ||
with: | ||
artifact-prefix: packed-charm-cache-true | ||
cloud: lxd | ||
juju-agent-version: 3.1.7 | ||
juju-agent-version: 3.4.4 | ||
_beta_allure_report: true | ||
permissions: | ||
contents: write # Needed for Allure Report beta | ||
secrets: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/requirements.txt | ||
/requirements-last-build.txt | ||
|
||
*.idea | ||
.vscode/ | ||
.coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6 | ||
7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.