Skip to content

Commit

Permalink
Increase timeout for kubectl test (fission#2100)
Browse files Browse the repository at this point in the history
Signed-off-by: Sanket Sudake <[email protected]>
  • Loading branch information
sanketsudake authored Jul 5, 2021
1 parent d5077ee commit 4381445
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/push_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
with:
image: ${{ matrix.kindimage }}
version: v0.11.1
config: kind.yaml

- name: Configuring and testing the Installation
run: |
Expand Down Expand Up @@ -107,14 +108,13 @@ jobs:
run: ./test/kind_CI.sh

- name: Collect Fission Dump
if: ${{ failure() }}
run: |
fission support dump
command -v fission && fission support dump
- name: Archive fission dump
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: fission-support-dump
name: fission-dump
path: fission-dump/*.zip
retention-days: 5
14 changes: 13 additions & 1 deletion .github/workflows/upgrade_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,16 @@ jobs:
- name: Test previously created fission objects with new release
run: |
source ./test/upgrade_test/fission_objects.sh test_fission_objects
source ./test/upgrade_test/fission_objects.sh test_fission_objects
- name: Collect Fission Dump
run: |
command -v fission && fission support dump
- name: Archive fission dump
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: fission-dump
path: fission-dump/*.zip
retention-days: 5
3 changes: 1 addition & 2 deletions kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:v1.19.11
kubeadmConfigPatches:
- |
kind: InitConfiguration
Expand All @@ -22,4 +21,4 @@ nodes:
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
protocol: TCP
8 changes: 4 additions & 4 deletions test/tests/test_kubectl/test_kubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ pkgName="go-b4bbb0e0-2d93-47f0-8c4e-eea644eec2a9"
kubectl apply -f spec-yaml -R

# wait for build to finish
timeout 90 bash -c "wait_for_builder $name"
timeout 90 bash -c "waitBuildExpectedStatus $pkgName failed"
timeout 180 bash -c "wait_for_builder $name"
timeout 180 bash -c "waitBuildExpectedStatus $pkgName failed"

sed -i 's/gogo/go/g' spec-yaml/function-go.yaml

# before we enable "/status" this should be failed.
kubectl apply -f spec-yaml/function-go.yaml
timeout 90 bash -c "waitBuildExpectedStatus $pkgName failed"
timeout 180 bash -c "waitBuildExpectedStatus $pkgName failed"

kubectl replace -f spec-yaml/function-go.yaml
timeout 90 bash -c "waitBuild $pkgName"
timeout 180 bash -c "waitBuild $pkgName"

fission fn test --name $name

Expand Down

0 comments on commit 4381445

Please sign in to comment.