Skip to content
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

Troubeshoot Follower CI #98

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test-kuttl/e2e/cluster-follow/00-create-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ spec:
replicas: 1
networking:
circuitRelays: 1
ipfsResources:
limits:
cpu: 250m
memory: 512M
# ipfsResources:
# limits:
# cpu: 250m
# memory: 512M
follows:
- name: gutenberg_es
template: gutenberg-es.collab.ipfscluster.io
template: gutenberg-es.collab.ipfscluster.io
5 changes: 5 additions & 0 deletions test-kuttl/e2e/cluster-follow/05-assert-running.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
collectors:
- type: command
command: kubectl -n "$NAMESPACE" describe all,ipfscluster
- type: command
command: kubectl -n ipfs-operator-system logs deployment/ipfs-operator-controller-manager
---
apiVersion: apps/v1
kind: StatefulSet
Expand Down
4 changes: 2 additions & 2 deletions test-kuttl/e2e/cluster-follow/10-validate-contents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ count_pins() {
declare pinTypeRecursive="recursive"

# ensure that the corresponding IPFS container has pinned content
pins=$(kubectl exec "${podName}" -n "${NAMESPACE}" -c "${followContainerName}" -- ipfs pin ls | grep -i "${pinTypeRecursive}")
pins=$(kubectl exec "${podName}" -n "${NAMESPACE}" -c "${followContainerName}" -- ipfs-cluster-ctl pin ls | grep -i "${pinTypeRecursive}")
readarray -d $'\n' -t pinArray <<< "${pins}"
echo "${#pinArray[*]}"
}
Expand Down Expand Up @@ -53,4 +53,4 @@ main() {
done
}

main
main
5 changes: 5 additions & 0 deletions test-kuttl/e2e/ipfs/10-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
collectors:
- type: command
command: kubectl -n "$NAMESPACE" describe all,ipfscluster
- type: command
command: kubectl -n ipfs-operator-system logs deployment/ipfs-operator-controller-manager
---
apiVersion: apps/v1
kind: StatefulSet
Expand Down
3 changes: 2 additions & 1 deletion test-kuttl/kuttl-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ apiVersion: kuttl.dev/v1beta1
kind: TestSuite
testDirs:
- ./e2e
timeout: 120
timeout: 600
parallel: 1