pipelines-as-code
pipelines-as-code copied to clipboard
Show events in tkn pac describe
- Add a reason to every message emitted so it shows better. (and make it easy to fitler)

Signed-off-by: Chmouel Boudjnah [email protected]
Changes
Submitter Checklist
- [ ] β½ Run
make test lintbefore submitting a PR (ie: with pre-commit, no need to waste CPU cycle on CI - [ ] π If you are adding a user facing feature or make a change of the behavior, please verify that you have documented it
- [ ] π§ͺ 100% coverage is not a target but most of the time we would rather have a unit test if you make a code change.
- [ ] π If that's something that is possible to do please ensure to check if we can add a e2e test.
- [ ] π If there is a flakiness in the CI tests then don't necessary ignore it, better get the flakyness fixed before merging or if that's not possible there is a good reason to bypass it. (token rate limitation may be a good reason to skip).
I didn't take care of the events sorting, probably will do this next..
Codecov Report
Merging #935 (e4ed779) into main (76de58f) will decrease coverage by
0.16%. The diff coverage is37.93%.
@@ Coverage Diff @@
## main #935 +/- ##
==========================================
- Coverage 63.82% 63.66% -0.17%
==========================================
Files 81 82 +1
Lines 5269 5309 +40
==========================================
+ Hits 3363 3380 +17
- Misses 1587 1606 +19
- Partials 319 323 +4
| Impacted Files | Coverage Ξ | |
|---|---|---|
| pkg/kubeinteraction/events.go | 0.00% <0.00%> (ΓΈ) |
|
| pkg/pipelineascode/pipelineascode.go | 24.61% <0.00%> (ΓΈ) |
|
| pkg/reconciler/reconciler.go | 22.87% <0.00%> (ΓΈ) |
|
| pkg/pipelineascode/match.go | 57.37% <40.00%> (ΓΈ) |
|
| pkg/cmd/tknpac/describe/describe.go | 47.50% <42.42%> (-1.42%) |
:arrow_down: |
| pkg/events/emit.go | 80.00% <100.00%> (+0.51%) |
:arrow_up: |
| pkg/templates/templating.go | 100.00% <0.00%> (ΓΈ) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
the e2e failure will be fixed by https://github.com/tektoncd/catalog/pull/1094