-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add more charms to large spread tests
- Loading branch information
Showing
5 changed files
with
100 additions
and
76 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
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,36 +1,42 @@ | ||
summary: Recursively pack a bundle with all charms | ||
#systems: | ||
# - ubuntu-22.04-64 | ||
#kill-timeout: 30m | ||
# | ||
#environment: | ||
# BUNDLE/notebook_operators: https://github.com/canonical/notebook-operators | ||
# | ||
#prepare: | | ||
# git clone --depth=1 "${BUNDLE}" bundle | ||
# | ||
#restore: | | ||
# pushd bundle/charms/jupyter-controller | ||
# charmcraft clean | ||
# popd | ||
# pushd bundle/charms/jupyter-ui | ||
# charmcraft clean | ||
# popd | ||
# | ||
# rm -rf bundle | ||
# | ||
#execute: | | ||
# cd bundle | ||
# charmcraft pack --verbose --include-all-charms --output-bundle=output_bundle.yaml | ||
# | ||
# # Ensure that the output bundle.yaml file is the same as the bundle.yaml file | ||
# # within the bundle itself. | ||
# unzip -p *.zip bundle.yaml | diff -s output_bundle.yaml - | ||
# # Ensure at least one charm file is referenced in the bundle.yaml | ||
# test $(grep "charm: ${PWD}" output_bundle.yaml | wc -l) -ge 1 | ||
# # Ensure all local charms referenced in the bundle exist | ||
# grep "charm: ${PWD}" output_bundle.yaml | cut -d: -f2 | xargs file -E | ||
# | ||
# # Test deploying the bundle. | ||
# # TODO: install juju on the runner and re-enable this. | ||
# # juju deploy --dry-run *.zip | ||
manual: true | ||
systems: | ||
- ubuntu-22.04-64 | ||
kill-timeout: 30m | ||
|
||
environment: | ||
BUNDLE/argo: https://github.com/canonical/argo-operators | ||
# TODO: Enable once cos-lite uses charmcraft's recursive build. | ||
# BUNDLE/cos_lite: https://github.com/canonical/cos-lite-bundle | ||
BUNDLE/cos_proxy: https://github.com/canonical/cos-proxy-operator | ||
BUNDLE/kfp: https://github.com/canonical/kfp-operators | ||
BUNDLE/kubeflow: https://github.com/canonical/bundle-kubeflow | ||
BUNDLE/notebook_operators: https://github.com/canonical/notebook-operators | ||
|
||
prepare: | | ||
git clone --depth=1 "${BUNDLE}" bundle | ||
restore: | | ||
for directory in $(ls -1 bundle/charms); do | ||
pushd "bundle/charms/${directory}" | ||
charmcraft clean | ||
popd | ||
done | ||
rm -rf bundle | ||
execute: | | ||
cd bundle | ||
charmcraft pack --verbose --include-all-charms --output-bundle=output_bundle.yaml | ||
# Ensure that the output bundle.yaml file is the same as the bundle.yaml file | ||
# within the bundle itself. | ||
unzip -p *.zip bundle.yaml | diff -s output_bundle.yaml - | ||
# Ensure at least one charm file is referenced in the bundle.yaml | ||
test $(grep "charm: ${PWD}" output_bundle.yaml | wc -l) -ge 1 | ||
# Ensure all local charms referenced in the bundle exist | ||
grep "charm: ${PWD}" output_bundle.yaml | cut -d: -f2 | xargs file -E | ||
# Test deploying the bundle. | ||
# TODO: install juju on the runner and re-enable this. | ||
# juju deploy --dry-run *.zip |
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