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: junit report structure (cherry-pick #1977) #1978

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

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

Cherry-picked refactor: junit report structure (#1977)

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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 13, 2024 15:14
@eddycharly eddycharly enabled auto-merge (squash) September 13, 2024 15:14
@eddycharly eddycharly added this to the v0.2.10 milestone Sep 13, 2024
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

Attention: Patch coverage is 13.43284% with 116 lines in your changes missing coverage. Please review.

Project coverage is 67.58%. Comparing base (6ec1ea1) to head (2f2fd5d).
Report is 1 commits behind head on release-0.2.

Files with missing lines Patch % Lines
pkg/report/junit.go 6.83% 105 Missing and 4 partials ⚠️
pkg/report/report.go 56.25% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           release-0.2    #1978      +/-   ##
===============================================
- Coverage        68.59%   67.58%   -1.02%     
===============================================
  Files              136      136              
  Lines             6387     6484      +97     
===============================================
+ Hits              4381     4382       +1     
- Misses            1693     1787      +94     
- Partials           313      315       +2     

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

@eddycharly eddycharly merged commit 9ecfeff into release-0.2 Sep 13, 2024
12 of 16 checks passed
@eddycharly eddycharly deleted the cherry-pick-7a6e80-release-0.2 branch September 13, 2024 15:23
shanduur referenced this pull request in registry-operator/registry-operator Sep 21, 2024

Verified

This commit was signed with the committer’s verified signature.
metcoder95 Carlos Fuentes
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