Update go.mod and go.sum to latest version from networkservicemesh/in… #24
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
--- | |
name: performance-testing | |
on: | |
push: | |
branches: | |
- 'release/**' | |
jobs: | |
### INTERDOMAIN CLUSTER | |
interdomain-kind: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/setup-go@v1 | |
with: | |
go-version: 1.16 | |
github-token: ${{ github.token }} | |
- name: Set go env | |
run: | | |
echo GOPATH=$GITHUB_WORKSPACE >> $GITHUB_ENV | |
echo GO111MODULE=on >> $GITHUB_ENV | |
echo $GITHUB_WORKSPACE/bin >> $GITHUB_PATH | |
- uses: actions/checkout@v2 | |
with: | |
path: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
- name: Get kind | |
run: go install sigs.k8s.io/[email protected] | |
- name: Create kind clusters | |
run: | | |
for (( i = 1; i <= 2; i++ )); do | |
kind create cluster --name "kind-${i}" --config cluster-config-interdomain.yaml --image="kindest/node:${{ vars.NSM_KUBERNETES_VERSION }}" | |
configPath=${{ github.workspace }}/src/github.com/${{ github.repository }}/config${i} | |
kind get kubeconfig --name "kind-${i}" > ${configPath} | |
echo KUBECONFIG${i}=${configPath} >> $GITHUB_ENV | |
echo CLUSTER${i}_CIDR="172.18.${i}.128/25" >> $GITHUB_ENV | |
done | |
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
- name: Performance tests | |
run: | | |
performance_testing/scripts/full_ci_run.sh "$NSM_VERSION" "$ARTIFACTS_DIR" "$QPS_LIST" "$DURATION" "$CONNECTIONS" "$ITERATIONS" | |
env: | |
NSM_VERSION: ${{ github.ref_name }} | |
ARTIFACTS_DIR: perf-test-results | |
QPS_LIST: 100 1000 1000000 | |
DURATION: 60s | |
CONNECTIONS: 1 | |
ITERATIONS: 3 | |
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
- name: Print results | |
run: | | |
performance_testing/scripts/print_all_summaries.sh "$ARTIFACTS_DIR" | |
env: | |
ARTIFACTS_DIR: perf-test-results | |
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
- name: Cleanup resources | |
if: ${{ success() || failure() || cancelled() }} | |
run: kind delete clusters $(kind get clusters) | |
- name: Upload artifacts | |
if: ${{ success() || failure() || cancelled() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Performance tests results and logs | |
path: ${{ github.workspace }}/src/github.com/${{ github.repository }}/perf-test-results |