Skip to content

Commit

Permalink
ci: run integration tests w/o destructive mode (#341)
Browse files Browse the repository at this point in the history
* ci: run integration tests w/o destructive mode

As canonical/charmcraft#1132 got fixed, destructive mode can now be removed from the
tox command when running integration tests. The fix is in latest/edge, this commit
also points to that version.
minor nit: fix the path of charmcraft logs for collecting them.
  • Loading branch information
DnPlas authored Oct 4, 2023
1 parent 0d639dc commit 5678df3
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ jobs:
channel: ${{ matrix.microk8s-versions }}
microk8s-addons: "dns hostpath-storage rbac metallb:10.64.140.43-10.64.140.49"
juju-channel: 3.1/stable
charmcraft-channel: latest/candidate
charmcraft-channel: latest/edge

- name: Run integration tests
run: |
juju add-model test-istio
# Using destructive mode because of https://github.com/canonical/charmcraft/issues/1132
# and https://github.com/canonical/charmcraft/issues/1138
tox -e integration -- --model test-istio --destructive-mode
tox -e integration -- --model test-istio
timeout-minutes: 80

- name: Setup Debug Artifact Collection
Expand All @@ -76,8 +74,8 @@ jobs:

- name: Collect charmcraft logs
if: failure()
run: cat /home/runner/snap/charmcraft/common/cache/charmcraft/log/charmcraft-*.log
| tee tmp/charmcraft.log
run: |
cat /home/runner/.local/state/charmcraft/log/charmcraft-*.log | tee tmp/charmcraft.log
- name: Collect Juju status
if: failure()
Expand Down Expand Up @@ -129,14 +127,12 @@ jobs:
channel: ${{ matrix.microk8s-versions }}
microk8s-addons: "dns hostpath-storage rbac metallb:10.64.140.43-10.64.140.49"
juju-channel: 3.1/stable
charmcraft-channel: latest/candidate
charmcraft-channel: latest/edge

- name: Run observability integration tests
run: |
juju add-model cos-test
# Using destructive mode because of https://github.com/canonical/charmcraft/issues/1132
# and https://github.com/canonical/charmcraft/issues/1138
tox -vve cos-integration -- --model cos-test --destructive-mode
tox -vve cos-integration -- --model cos-test
- run: kubectl get pod/prometheus-k8s-0 -n knative-test -o=jsonpath='{.status}'
if: failure()

0 comments on commit 5678df3

Please sign in to comment.