Repository navigation
Add arm64, ppc64el and s390x and migrate workflows to charm-ci #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
01d12ba
add arm64, ppc64el and s390x and migrate workflows to charm-ci
weiiwang01 32336f3
Update runner type
weiiwang01 a6f00c4
Update runner type
weiiwang01 0d16439
Update runner type
weiiwang01 b3de504
Remove 20.04 ppc64el platform
weiiwang01 7ff334a
Update runners
weiiwang01 66b02da
Test tutorial spread
weiiwang01 15ca9d7
Fix arch name problem
weiiwang01 1355e41
Fix arch name problem
weiiwang01 a3a0c59
Remove build from soread exclude
javierdelapuente ea21386
Put explicit timeout of 100m for the charm build.
javierdelapuente 6b16b32
go for 120m
javierdelapuente 217179e
Fix integration test dependency
weiiwang01 5925906
Add required status check
weiiwang01 388c24e
Test all bases
weiiwang01 26cbdcb
Test all bases
weiiwang01 12de954
Fix spread variant issue
weiiwang01 42d59b6
Fix spread variant issue
weiiwang01 b805788
Format
weiiwang01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,6 +1,7 @@ | ||
| venv/ | ||
| build/ | ||
| *.charm | ||
| artifacts.build.yaml | ||
| .tox/ | ||
| .coverage | ||
| __pycache__/ | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Copyright 2026 Canonical Ltd. | ||
| # See LICENSE file for licensing details. | ||
|
|
||
| version: 1 | ||
| charms: | ||
| - name: aproxy | ||
| charmcraft-yaml: charmcraft.yaml | ||
| platforms: | ||
| - arch: amd64 | ||
| runner: [ubuntu-24.04] | ||
| - arch: arm64 | ||
| runner: [ubuntu-24.04-arm] | ||
| - arch: ppc64el | ||
| runner: [self-hosted-linux-ppc64el-noble-edge] | ||
| - arch: s390x | ||
| runner: [self-hosted-linux-s390x-noble-medium] |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Copyright 2026 Canonical Ltd. | ||
| # See LICENSE file for licensing details. | ||
|
|
||
| juju: | ||
| channel: 3.6/stable | ||
| model-defaults: | ||
| test-mode: "true" | ||
| automatically-retry-hooks: "false" | ||
|
|
||
| providers: | ||
| lxd: | ||
| enable: true | ||
| bootstrap: true | ||
|
|
This file contains hidden or 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 hidden or 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 hidden or 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,62 +1,75 @@ | ||
| # Copyright 2026 Canonical Ltd. | ||
| # See LICENSE file for licensing details. | ||
|
|
||
| project: aproxy-operator | ||
| project: aproxy | ||
|
|
||
| path: /aproxy-operator | ||
| environment: | ||
| PROJECT_PATH: /aproxy-operator | ||
| path: /home/ubuntu/proj | ||
|
|
||
| kill-timeout: 60m | ||
| warn-timeout: 1m | ||
|
|
||
| # important to ensure adhoc and linode/qemu behave the same | ||
| SUDO_USER: "" | ||
| SUDO_UID: "" | ||
| backends: | ||
| integration-test: | ||
| type: integration-test | ||
| systems: | ||
| - ubuntu-24.04: | ||
| runner: [ubuntu-24.04] | ||
| arch: amd64 | ||
| cpu: 4 | ||
| memory: 8 | ||
| disk: 40 | ||
| - ubuntu-24.04-arm64: | ||
| runner: [ubuntu-24.04-arm] | ||
| arch: arm64 | ||
| cpu: 4 | ||
| memory: 8 | ||
| disk: 40 | ||
| - ubuntu-24.04-ppc64el: | ||
| runner: [self-hosted-linux-ppc64el-noble-edge] | ||
| arch: ppc64el | ||
| cpu: 4 | ||
| memory: 8 | ||
| disk: 40 | ||
| - ubuntu-24.04-s390x: | ||
| runner: [self-hosted-linux-s390x-noble-medium] | ||
| arch: s390x | ||
| cpu: 4 | ||
| memory: 8 | ||
| disk: 40 | ||
|
|
||
| LANG: "C.UTF-8" | ||
| LANGUAGE: "en" | ||
| environment: | ||
| CONCIERGE: '$(HOST: echo "${CONCIERGE:-concierge.yaml}")' | ||
| OPCLI_GIT_REF: '$(HOST: echo "${OPCLI_GIT_REF:-main}")' | ||
|
|
||
| exclude: | ||
| - .git | ||
| - .github | ||
| - .tox | ||
| - .venv | ||
| - .*_cache | ||
| - charmcraft | ||
| - libexec | ||
| - schema | ||
| - snap | ||
|
|
||
| backends: | ||
| github-ci: | ||
| type: adhoc | ||
| allocate: | | ||
| echo "Allocating ad-hoc $SPREAD_SYSTEM" | ||
| if [ -z "${GITHUB_RUN_ID:-}" ]; then | ||
| FATAL "this back-end only works inside GitHub CI" | ||
| exit 1 | ||
| fi | ||
| echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/99-spread-users | ||
| ADDRESS localhost:22 | ||
| discard: | | ||
| echo "Discarding ad-hoc $SPREAD_SYSTEM" | ||
| systems: | ||
| - ubuntu-24.04-64: | ||
| username: ubuntu | ||
| password: ubuntu | ||
| workers: 1 | ||
|
|
||
| prepare: | | ||
| snap refresh --hold | ||
|
|
||
| if systemctl is-enabled unattended-upgrades.service; then | ||
| systemctl stop unattended-upgrades.service | ||
| systemctl mask unattended-upgrades.service | ||
| fi | ||
|
|
||
| sudo snap install --classic concierge | ||
| sudo concierge prepare -p machine | ||
|
|
||
| integration-suites: | ||
| tests/integration/: | ||
| working-dir: ./ | ||
| summary: aproxy integration tests | ||
| auto-discover: false | ||
| backends: | ||
| - integration-test | ||
| environment: | ||
| MODULE/focal: tests/integration/test_charm.py | ||
| MODULE/jammy: tests/integration/test_charm.py | ||
| MODULE/noble: tests/integration/test_charm.py | ||
| BASE/focal: "20.04" | ||
| BASE/jammy: "22.04" | ||
| BASE/noble: "24.04" | ||
| pytest-arguments-template: | | ||
| --model testing | ||
| --keep-models | ||
| --base {{ env.get("BASE", "24.04") }} | ||
| suites: | ||
| tests/spread/: | ||
| summary: tutorial test | ||
| tests/spread/tutorial/: | ||
| summary: aproxy tutorial smoke test | ||
| systems: | ||
| - ubuntu-24.04-64 | ||
| - ubuntu-24.04 | ||
| environment: | ||
| TUTORIAL: docs/tutorial.md |
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.