Increase timeout for kubectl test (#2100)
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -62,6 +62,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
image: ${{ matrix.kindimage }}
|
image: ${{ matrix.kindimage }}
|
||||||
version: v0.11.1
|
version: v0.11.1
|
||||||
|
config: kind.yaml
|
||||||
|
|
||||||
- name: Configuring and testing the Installation
|
- name: Configuring and testing the Installation
|
||||||
run: |
|
run: |
|
||||||
@@ -107,14 +108,13 @@ jobs:
|
|||||||
run: ./test/kind_CI.sh
|
run: ./test/kind_CI.sh
|
||||||
|
|
||||||
- name: Collect Fission Dump
|
- name: Collect Fission Dump
|
||||||
if: ${{ failure() }}
|
|
||||||
run: |
|
run: |
|
||||||
fission support dump
|
command -v fission && fission support dump
|
||||||
|
|
||||||
- name: Archive fission dump
|
- name: Archive fission dump
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: fission-support-dump
|
name: fission-dump
|
||||||
path: fission-dump/*.zip
|
path: fission-dump/*.zip
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
@@ -82,3 +82,15 @@ jobs:
|
|||||||
- name: Test previously created fission objects with new release
|
- name: Test previously created fission objects with new release
|
||||||
run: |
|
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
|
||||||
@@ -8,7 +8,6 @@ kind: Cluster
|
|||||||
apiVersion: kind.x-k8s.io/v1alpha4
|
apiVersion: kind.x-k8s.io/v1alpha4
|
||||||
nodes:
|
nodes:
|
||||||
- role: control-plane
|
- role: control-plane
|
||||||
image: kindest/node:v1.19.11
|
|
||||||
kubeadmConfigPatches:
|
kubeadmConfigPatches:
|
||||||
- |
|
- |
|
||||||
kind: InitConfiguration
|
kind: InitConfiguration
|
||||||
|
|||||||
@@ -31,17 +31,17 @@ pkgName="go-b4bbb0e0-2d93-47f0-8c4e-eea644eec2a9"
|
|||||||
kubectl apply -f spec-yaml -R
|
kubectl apply -f spec-yaml -R
|
||||||
|
|
||||||
# wait for build to finish
|
# wait for build to finish
|
||||||
timeout 90 bash -c "wait_for_builder $name"
|
timeout 180 bash -c "wait_for_builder $name"
|
||||||
timeout 90 bash -c "waitBuildExpectedStatus $pkgName failed"
|
timeout 180 bash -c "waitBuildExpectedStatus $pkgName failed"
|
||||||
|
|
||||||
sed -i 's/gogo/go/g' spec-yaml/function-go.yaml
|
sed -i 's/gogo/go/g' spec-yaml/function-go.yaml
|
||||||
|
|
||||||
# before we enable "/status" this should be failed.
|
# before we enable "/status" this should be failed.
|
||||||
kubectl apply -f spec-yaml/function-go.yaml
|
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
|
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
|
fission fn test --name $name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user