Skip to content
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

refactor: failure propagation in reports (cherry-pick #1960) #1961

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

gcp-cherry-pick-bot[bot]
Copy link
Contributor

Cherry-picked refactor: failure propagation in reports (#1960)

Signed-off-by: Charles-Edouard Brétéché charles.edouard@nirmata.com

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
@gcp-cherry-pick-bot gcp-cherry-pick-bot bot requested a review from a team as a code owner September 12, 2024 20:36
@eddycharly eddycharly enabled auto-merge (squash) September 12, 2024 20:37
@eddycharly eddycharly added this to the v0.2.10 milestone Sep 12, 2024
@eddycharly eddycharly merged commit a5b478d into release-0.2 Sep 12, 2024
12 of 15 checks passed
Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 12.50000% with 14 lines in your changes missing coverage. Please review.

Project coverage is 68.95%. Comparing base (f36ca88) to head (e3c6314).
Report is 1 commits behind head on release-0.2.

Files with missing lines Patch % Lines
pkg/report/junit.go 0.00% 7 Missing ⚠️
pkg/model/report.go 0.00% 6 Missing ⚠️
pkg/runner/processors/operation.go 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           release-0.2    #1961      +/-   ##
===============================================
- Coverage        69.07%   68.95%   -0.12%     
===============================================
  Files              135      135              
  Lines             6260     6266       +6     
===============================================
- Hits              4324     4321       -3     
- Misses            1626     1635       +9     
  Partials           310      310              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eddycharly eddycharly deleted the cherry-pick-f6bb3d-release-0.2 branch September 12, 2024 20:45
shanduur referenced this pull request in registry-operator/registry-operator Sep 21, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/kyverno/chainsaw](https://redirect.github.com/kyverno/chainsaw)
| `v0.2.9` -> `v0.2.10` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fkyverno%2fchainsaw/v0.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fkyverno%2fchainsaw/v0.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fkyverno%2fchainsaw/v0.2.9/v0.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fkyverno%2fchainsaw/v0.2.9/v0.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>kyverno/chainsaw (github.com/kyverno/chainsaw)</summary>

###
[`v0.2.10`](https://redirect.github.com/kyverno/chainsaw/releases/tag/v0.2.10)

[Compare
Source](https://redirect.github.com/kyverno/chainsaw/compare/v0.2.9...v0.2.10)

#### 💫 New features 💫

-   Added bindings support when referencing step templates
-   Restructured the reports system
-   Added reports in JSON format back
- Added new JUnit report formats with different granularity
(`JUNIT-TEST`, `JUNIT-STEP`, `JUNIT-OPERATION`)
- `XML` report format should be considered deprecated and replaced with
one of the `JUNIT-*` format

#### 🔧 Fixes 🔧

-   Fixed default report name not set correctly
-   Made `template` required when referencing a step template

#### 📚 Docs 📚

- Started a JMESPath function example page in the docs (only `x_k8s_get`
is available at this time)

#### 🎸 Misc 🎸

-   Removed test `v1alpha2` API for now

#### What's Changed

- chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions
from 3.0.11 to 3.0.12 (cherry-pick
[#&#8203;1936](https://redirect.github.com/kyverno/chainsaw/issues/1936))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1937](https://redirect.github.com/kyverno/chainsaw/pull/1937)
- fix: default report name not set correctly (cherry-pick
[#&#8203;1939](https://redirect.github.com/kyverno/chainsaw/issues/1939))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1940](https://redirect.github.com/kyverno/chainsaw/pull/1940)
- Update bindings.md with 'x_k8s_get()' example (cherry-pick
[#&#8203;1915](https://redirect.github.com/kyverno/chainsaw/issues/1915))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1941](https://redirect.github.com/kyverno/chainsaw/pull/1941)
- chore: remove checkout when uploading to codecov (cherry-pick
[#&#8203;1942](https://redirect.github.com/kyverno/chainsaw/issues/1942))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1943](https://redirect.github.com/kyverno/chainsaw/pull/1943)
- chore(deps): bump k8s.io/api from 0.31.0 to 0.31.1 (cherry-pick
[#&#8203;1945](https://redirect.github.com/kyverno/chainsaw/issues/1945))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1948](https://redirect.github.com/kyverno/chainsaw/pull/1948)
- chore(deps): bump k8s.io/client-go from 0.31.0 to 0.31.1 (cherry-pick
[#&#8203;1947](https://redirect.github.com/kyverno/chainsaw/issues/1947))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1949](https://redirect.github.com/kyverno/chainsaw/pull/1949)
- fix: reports system (cherry-pick
[#&#8203;1950](https://redirect.github.com/kyverno/chainsaw/issues/1950))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1952](https://redirect.github.com/kyverno/chainsaw/pull/1952)
- feat: use jstemmer/go-junit-report (cherry-pick
[#&#8203;1951](https://redirect.github.com/kyverno/chainsaw/issues/1951))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1953](https://redirect.github.com/kyverno/chainsaw/pull/1953)
- feat: restructure junit reports (cherry-pick
[#&#8203;1954](https://redirect.github.com/kyverno/chainsaw/issues/1954))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1955](https://redirect.github.com/kyverno/chainsaw/pull/1955)
- refactor: report system (cherry-pick
[#&#8203;1956](https://redirect.github.com/kyverno/chainsaw/issues/1956))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1957](https://redirect.github.com/kyverno/chainsaw/pull/1957)
- refactor: decouple operation execution from failer (cherry-pick
[#&#8203;1958](https://redirect.github.com/kyverno/chainsaw/issues/1958))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1959](https://redirect.github.com/kyverno/chainsaw/pull/1959)
- refactor: failure propagation in reports (cherry-pick
[#&#8203;1960](https://redirect.github.com/kyverno/chainsaw/issues/1960))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1961](https://redirect.github.com/kyverno/chainsaw/pull/1961)
- fix: json reports (cherry-pick
[#&#8203;1962](https://redirect.github.com/kyverno/chainsaw/issues/1962))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1963](https://redirect.github.com/kyverno/chainsaw/pull/1963)
- feat: improve json report format (cherry-pick
[#&#8203;1964](https://redirect.github.com/kyverno/chainsaw/issues/1964))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1965](https://redirect.github.com/kyverno/chainsaw/pull/1965)
- feat: add cleanup operations in reports (cherry-pick
[#&#8203;1966](https://redirect.github.com/kyverno/chainsaw/issues/1966))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1968](https://redirect.github.com/kyverno/chainsaw/pull/1968)
- refactor: reports failures propagation (cherry-pick
[#&#8203;1969](https://redirect.github.com/kyverno/chainsaw/issues/1969))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1970](https://redirect.github.com/kyverno/chainsaw/pull/1970)
- feat: operation type to report (cherry-pick
[#&#8203;1971](https://redirect.github.com/kyverno/chainsaw/issues/1971))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1972](https://redirect.github.com/kyverno/chainsaw/pull/1972)
- feat: move cleanup in separate report steps (cherry-pick
[#&#8203;1973](https://redirect.github.com/kyverno/chainsaw/issues/1973))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1974](https://redirect.github.com/kyverno/chainsaw/pull/1974)
- feat: add test cleanup to report (cherry-pick
[#&#8203;1975](https://redirect.github.com/kyverno/chainsaw/issues/1975))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1976](https://redirect.github.com/kyverno/chainsaw/pull/1976)
- refactor: junit report structure (cherry-pick
[#&#8203;1977](https://redirect.github.com/kyverno/chainsaw/issues/1977))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1978](https://redirect.github.com/kyverno/chainsaw/pull/1978)
- chore(deps): bump github/codeql-action from 3.26.6 to 3.26.7
(cherry-pick
[#&#8203;1979](https://redirect.github.com/kyverno/chainsaw/issues/1979))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1981](https://redirect.github.com/kyverno/chainsaw/pull/1981)
- feat: remove v1alpha2 tests api for now (cherry-pick
[#&#8203;1982](https://redirect.github.com/kyverno/chainsaw/issues/1982))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1983](https://redirect.github.com/kyverno/chainsaw/pull/1983)
- fix: make template required in step template (cherry-pick
[#&#8203;1984](https://redirect.github.com/kyverno/chainsaw/issues/1984))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1986](https://redirect.github.com/kyverno/chainsaw/pull/1986)
- fix: dependabot gomod directories (cherry-pick
[#&#8203;1987](https://redirect.github.com/kyverno/chainsaw/issues/1987))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1988](https://redirect.github.com/kyverno/chainsaw/pull/1988)
- chore(deps): bump sigs.k8s.io/controller-tools from 0.16.1 to 0.16.3
in /hack/controller-gen (cherry-pick
[#&#8203;1990](https://redirect.github.com/kyverno/chainsaw/issues/1990))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1991](https://redirect.github.com/kyverno/chainsaw/pull/1991)
- chore(deps): bump k8s.io/apiextensions-apiserver from 0.31.0 to 0.31.1
in /hack/controller-gen (cherry-pick
[#&#8203;1989](https://redirect.github.com/kyverno/chainsaw/issues/1989))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1992](https://redirect.github.com/kyverno/chainsaw/pull/1992)
- feat: add bindings support to step templates (cherry-pick
[#&#8203;1985](https://redirect.github.com/kyverno/chainsaw/issues/1985))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1993](https://redirect.github.com/kyverno/chainsaw/pull/1993)
- chore: update release notes (cherry-pick
[#&#8203;1995](https://redirect.github.com/kyverno/chainsaw/issues/1995))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1996](https://redirect.github.com/kyverno/chainsaw/pull/1996)
- release: v0.2.10 (cherry-pick
[#&#8203;1997](https://redirect.github.com/kyverno/chainsaw/issues/1997))
by
[@&#8203;gcp-cherry-pick-bot](https://redirect.github.com/gcp-cherry-pick-bot)
in
[https://github.com/kyverno/chainsaw/pull/1998](https://redirect.github.com/kyverno/chainsaw/pull/1998)

**Full Changelog**:
kyverno/chainsaw@v0.2.9...v0.2.10

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/registry-operator/registry-operator).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXJlYS9kZXBlbmRlbmN5Il19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant