-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
Summary
We have a number of examples which are not tested, and would provide more test coverage if we tested them.
It would be good if we also knew we had not regressed and that all examples worked.
Use Cases
The code to run examples is in test/e2e/examples_test.go
Multiple suggested improvements to the test framework for examples. These can be tackled in separate PRs.
- Get the tests to run in parallel. Currently they run under
testify/suite, which breaks t.Parallel. So divorce it from suite as the setup for this is trivial, and then run each test in a subtest with t.Parallel() - Currently we filter the tests based on seeing
workflows.argoproj.io/testin the example. In the interests of more and better coverage I suggest flipping this toworkflows.argoproj.io/no-test, probably with two options:workflows.argoproj.io/no-test-brokenfor genuinely broken examples which can be fixedworkflows.argoproj.io/no-test-environmentfor examples which need to run in a different environment, e.g. need access to artifactory.
- Run
argo linton every example. Failing examples could be flagged withworkflows.argoproj.io/no-lint, but really we should fix these!
partomatl