Skip to content

Commit 50f93bd

Browse files
committed
chore: make examples that pass tests to run #15002
Many examples could pass tests but they were marked as no-test for various reasons. I analyzed all the tests and I marked the one that did not pass as `no-test-broken` or `-no-test-environment` according to why they were not passing. The most common issues for failing example were the image used as part of the workflow since we have a list of allowed images that can run as tests I expanded the list accordingly and I moved some images that were doing easy tasks for already allowed images. For example we had some debian images that were running `sleep` or `cat`, such commands can run from a busybox and it was already allowed so I moved the workflow to use it. As follow up I will update images to their up to date version. Signed-off-by: Gianluca Arbezzano <[email protected]>
1 parent 6ce4f01 commit 50f93bd

File tree

166 files changed

+409
-398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+409
-398
lines changed

.github/workflows/ci-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ jobs:
257257
- test: test-cli
258258
profile: mysql
259259
use-api: true
260-
# Cron tests are not retryable withou a controller restart
260+
# Cron tests are not retryable without a controller restart
261261
- test: test-cron
262262
profile: minimal
263263
use-api: false
264264
retries: 0
265-
# Example tests are not retryable withou a controller restart
265+
# Example tests are not retryable without a controller restart
266266
- test: test-examples
267267
profile: minimal
268268
use-api: false

docs/fields.md

Lines changed: 177 additions & 21 deletions
Large diffs are not rendered by default.

examples/archive-location.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
apiVersion: argoproj.io/v1alpha1
22
kind: Workflow
33
metadata:
4-
labels:
5-
workflows.argoproj.io/no-test-broken: "true"
64
generateName: archive-location-
75
spec:
86
entrypoint: hello-world

examples/arguments-artifacts.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
apiVersion: argoproj.io/v1alpha1
88
kind: Workflow
99
metadata:
10-
labels:
11-
workflows.argoproj.io/no-test-broken: "true"
1210
generateName: arguments-artifacts-
11+
labels:
12+
workflows.argoproj.io/no-test-environment: "true"
1313
spec:
1414
entrypoint: kubectl-input-artifact
1515
arguments:
@@ -26,6 +26,6 @@ spec:
2626
path: /usr/local/bin/kubectl
2727
mode: 0755
2828
container:
29-
image: debian:9.4
29+
image: busybox
3030
command: [sh, -c]
3131
args: ["kubectl version"]

examples/arguments-parameters.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
apiVersion: argoproj.io/v1alpha1
22
kind: Workflow
33
metadata:
4-
labels:
5-
workflows.argoproj.io/no-test-broken: "true"
64
generateName: arguments-parameters-
75
spec:
86
entrypoint: print-message

examples/artifact-disable-archive.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
apiVersion: argoproj.io/v1alpha1
77
kind: Workflow
88
metadata:
9-
labels:
10-
workflows.argoproj.io/no-test-broken: "true"
119
generateName: artifact-disable-archive-
1210
spec:
1311
entrypoint: artifact-disable-archive
@@ -59,7 +57,7 @@ spec:
5957
- name: hello-txt-nc
6058
path: /tmp/hello_nc.txt
6159
container:
62-
image: alpine:latest
60+
image: busybox
6361
command: [sh, -c]
6462
args:
6563
- cat /tmp/hello.txt && cat /tmp/hello_nc.txt && cd /tmp/etc && find .

examples/artifact-gc-workflow.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
apiVersion: argoproj.io/v1alpha1
77
kind: Workflow
88
metadata:
9-
labels:
10-
workflows.argoproj.io/no-test-broken: "true"
119
generateName: artifact-gc-
1210
spec:
1311
entrypoint: main

examples/artifact-passing-explicit-plugin.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
apiVersion: argoproj.io/v1alpha1
44
kind: Workflow
55
metadata:
6-
labels:
7-
workflows.argoproj.io/no-test-broken: "true"
86
generateName: artifact-passing-
97
spec:
108
entrypoint: artifact-example
@@ -49,6 +47,6 @@ spec:
4947
- name: message
5048
path: /tmp/message
5149
container:
52-
image: alpine:latest
50+
image: busybox
5351
command: [sh, -c]
5452
args: ["cat /tmp/message"]

examples/artifact-passing-subpath.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
apiVersion: argoproj.io/v1alpha1
55
kind: Workflow
66
metadata:
7-
labels:
8-
workflows.argoproj.io/no-test-broken: "true"
97
generateName: artifact-passing-subpath-
108
spec:
119
entrypoint: artifact-example
@@ -46,7 +44,7 @@ spec:
4644
- name: message
4745
path: /tmp/message
4846
container:
49-
image: alpine:latest
47+
image: busybox
5048
command: [sh, -c]
5149
args: ["ls /tmp/message"]
5250

@@ -56,6 +54,6 @@ spec:
5654
- name: message
5755
path: /tmp/message
5856
container:
59-
image: alpine:latest
57+
image: busybox
6058
command: [sh, -c]
6159
args: ["cat /tmp/message"]

examples/artifact-passing.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
apiVersion: argoproj.io/v1alpha1
44
kind: Workflow
55
metadata:
6-
labels:
7-
workflows.argoproj.io/no-test-broken: "true"
86
generateName: artifact-passing-
97
spec:
108
entrypoint: artifact-example
@@ -36,6 +34,6 @@ spec:
3634
- name: message
3735
path: /tmp/message
3836
container:
39-
image: alpine:latest
37+
image: busybox
4038
command: [sh, -c]
4139
args: ["cat /tmp/message"]

0 commit comments

Comments
 (0)