-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
302 additions
and
234 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: "3" | ||
|
||
tasks: | ||
build-stress-test-image: | ||
desc: build the container image used for stress testing | ||
vars: | ||
BUILDKIT_PROGRESS: plain | ||
cmds: | ||
- docker build -t ghcr.io/miracum/vfps/stress-test:v1 --target=stress-test --iidfile=./stress-test-iid.txt . | ||
sources: | ||
- src/Vfps.StressTests/*.cs | ||
generates: | ||
- ./stress-test-iid.txt | ||
|
||
install-argo-cli: | ||
desc: download and install the argo workflows cli | ||
dir: tests/chaos | ||
cmds: | ||
- curl -sL -o - https://github.com/argoproj/argo-workflows/releases/download/v3.5.2/argo-linux-amd64.gz | gunzip > argo | ||
- chmod +x ./argo | ||
- ./argo version | ||
status: | ||
- ./argo version | ||
|
||
create-cluster: | ||
desc: create a KinD cluster | ||
cmds: | ||
- kind create cluster --name kind | ||
status: | ||
- kind get clusters | grep kind | ||
|
||
chaos-test: | ||
desc: run the chaos testing workflow | ||
dir: tests/chaos | ||
deps: | ||
- create-cluster | ||
- install-argo-cli | ||
- build-stress-test-image | ||
cmds: | ||
- helm repo add chaos-mesh https://charts.chaos-mesh.org | ||
- kind load docker-image ghcr.io/miracum/vfps/stress-test:v1 | ||
- helm upgrade --install --create-namespace -n vfps -f vfps-values.yaml --wait vfps oci://ghcr.io/miracum/charts/vfps | ||
- helm upgrade --install chaos-mesh chaos-mesh/chaos-mesh --create-namespace --wait -n chaos-mesh --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath='/run/containerd/containerd.sock' | ||
- kubectl apply -f chaos-mesh-rbac.yaml | ||
- helm upgrade --install --create-namespace -n argo-workflows -f argo-workflows-values.yaml --wait argo-workflows oci://ghcr.io/argoproj/argo-helm/argo-workflows | ||
- ./argo submit workflow.yaml -n vfps --wait --log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
global using Xunit; | ||
global using FluentAssertions; | ||
global using Xunit; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
global using Xunit; | ||
global using FluentAssertions; | ||
global using Grpc.Core; | ||
global using Grpc.Net.Client; | ||
global using Grpc.Net.Client.Configuration; | ||
global using Vfps.Protos; | ||
global using NBomber.Contracts; | ||
global using NBomber.CSharp; | ||
global using FluentAssertions; | ||
global using Vfps.Protos; | ||
global using Xunit; |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
global using Xunit; | ||
global using FluentAssertions; | ||
global using Vfps.Data; | ||
global using Vfps.Protos; | ||
global using Xunit; |
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
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
Oops, something went wrong.