-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meaningful (e2e) tests for examples #192
Comments
/area testing |
priority/important-soon |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lifecycle frozen |
Have a branch with a simple bash test runner: https://github.com/tektoncd/triggers/compare/master...dibyom:examples_test?expand=1 |
There are 3 parts to this:
I think this can happen incrementally. Even simply applying the YAMLs for all examples would be an improvement (currently, we only apply YAMLs for a subset of examples). /cc @sm43 |
Expected Behavior
We should know when code changes break the examples we are hosting in the Triggers repository.
Actual Behavior
We do not currently run automated tests on all of the examples included in the Triggers repository. So, a code change can break the examples without us knowing about it. This was made apparent recently when a change broke the cron example (#190).
I think that we should try to have meaningful automated tests for all of the examples, and we should have examples for the most common use-cases of Triggers. This will help stop us from making changes that have unintended consequences, and will make it easy for people to start using Triggers.
I also hope that having meaningful tests for each example will force us to keep the number of examples to a small and manageable size. If we don't want to create tests for an example, then we probably shouldn't have the example in the Triggers repository.
Additional Info
I think that at the moment the examples that lack meaningful tests are:
The documentation examples seem to overlap with the cron example and getting started guide, so it might be beneficial to merge the documentation examples into one of the other examples?
The text was updated successfully, but these errors were encountered: