Skip to content

Commit

Permalink
feat: Workflows special cases - large logs (#6088)
Browse files Browse the repository at this point in the history
* workflows - large logs

* workflows - large logs - command - bash

* workflows - large logs - sleep fixed
  • Loading branch information
tkonieczny authored Dec 19, 2024
1 parent 5f4da60 commit 6af5236
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions test/special-cases/test-workflows/large.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6af5236

Please sign in to comment.