From 6af52363a5735d460ed1f4b176cc92c3674fe385 Mon Sep 17 00:00:00 2001 From: Tomasz Konieczny Date: Thu, 19 Dec 2024 15:13:31 +0100 Subject: [PATCH] feat: Workflows special cases - large logs (#6088) * workflows - large logs * workflows - large logs - command - bash * workflows - large logs - sleep fixed --- test/special-cases/test-workflows/large.yaml | 84 ++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 test/special-cases/test-workflows/large.yaml diff --git a/test/special-cases/test-workflows/large.yaml b/test/special-cases/test-workflows/large.yaml new file mode 100644 index 00000000000..f85de5bc5e1 --- /dev/null +++ b/test/special-cases/test-workflows/large.yaml @@ -0,0 +1,84 @@ +apiVersion: testworkflows.testkube.io/v1 +kind: TestWorkflow +metadata: + name: large-logs-1mb-no-delay + labels: + core-tests: large +description: "Logs: 1 MB" +spec: + steps: + - name: Run test + run: + image: bash:alpine3.21 + command: + - bash + - -c + - 'for iteration in {1..100}; do printf "\niteration $iteration\n"; for sets in {1..20}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..20}; printf "_LINE_END"; printf "\n"; done; done' # 100 iterations - about 1.1MB +--- +apiVersion: testworkflows.testkube.io/v1 +kind: TestWorkflow +metadata: + name: large-logs-1mb-1s + labels: + core-tests: large +description: "Logs: 1 MB" +spec: + steps: + - name: Run test + run: + image: bash:alpine3.21 + command: + - bash + - -c + - for iteration in {1..100}; do sleep 1; printf "\niteration $iteration\n"; for sets in {1..20}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..20}; printf "_LINE_END"; printf "\n"; done; done # 100 iterations - about 1.1MB +--- +apiVersion: testworkflows.testkube.io/v1 +kind: TestWorkflow +metadata: + name: large-logs-11mb-no-delay + labels: + core-tests: large +description: "Logs: 11 MB" +spec: + steps: + - name: Run test + run: + image: bash:alpine3.21 + command: + - bash + - -c + - for iteration in {1..1000}; printf "\niteration $iteration\n"; for sets in {1..20}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..20}; printf "_LINE_END"; printf "\n"; done; done # 1k iterations - about 11MB +--- +apiVersion: testworkflows.testkube.io/v1 +kind: TestWorkflow +metadata: + name: large-logs-11mb-1s + labels: + core-tests: large +description: "Logs: 11 MB" +spec: + steps: + - name: Run test + run: + image: bash:alpine3.21 + command: + - bash + - -c + - for iteration in {1..1000}; do sleep 1; printf "\niteration $iteration\n"; for sets in {1..20}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..20}; printf "_LINE_END"; printf "\n"; done; done # 1k iterations - about 11MB +--- +apiVersion: testworkflows.testkube.io/v1 +kind: TestWorkflow +metadata: + name: large-logs-22mb-2s + labels: + core-tests: large +description: "Logs: 22 MB" +spec: + steps: + - name: Run test + run: + image: bash:alpine3.21 + command: + - bash + - -c + - for iteration in {1..2000}; do sleep 2; printf "\niteration $iteration\n"; for sets in {1..20}; do printf "LINE_BEGINNING_"; printf "abc DEFghi JKL ASDF BBB CCC%.0s" {1..20}; printf "_LINE_END"; printf "\n"; done; done # 1k iterations - about 11MB