Commit 55dd80e
ci: only run catlin validate when a resource manifest changes
catlin (all versions through HEAD) only registers the tekton.dev/v1beta1
scheme and cannot parse tekton.dev/v1 resources, failing with:
no kind "Task" is registered for version "tekton.dev/v1"
See tektoncd/catlin#10. The catalog already ships 37 tekton.dev/v1
Tasks. Normal PRs touch a single task and rarely a v1 one, so this went
unnoticed. A broad, README-only PR touching nearly every task directory
makes the catlin validate gate reduce every changed file to its version
directory and validate the whole catalog, hitting v1 resources catlin
cannot parse.
Filter the changed-file set to resource manifests that live directly in
a version directory (task/<name>/<version>/*.yaml) before reducing to
the version directory. README/OWNERS-only changes, test manifests under
tests/, and files under samples/ no longer trigger validation, so a
docs-only change validates nothing and does not fail on catlin's missing
v1 support.
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>1 parent 81c9609 commit 55dd80e
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
89 | | - | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
0 commit comments