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

fix: ec regex to extract voilation reports from tkn logs #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sahil143
Copy link
Collaborator

Fixes

https://issues.redhat.com/browse/KONFLUX-5697

Description

with tekton results upgrade tkn logs format changed due to which logs parsing is failing on UI.

Type of change

  • Feature
  • Bugfix
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Screen shots / Gifs for design review

image

How to test or reproduce?

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 80.11%. Comparing base (38a7c3b) to head (ea092ec).

Files with missing lines Patch % Lines
src/components/EnterpriseContract/utils.tsx 66.66% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main      #84    +/-   ##
========================================
  Coverage   80.11%   80.11%            
========================================
  Files         570      570            
  Lines       21444    21447     +3     
  Branches     5308     5050   -258     
========================================
+ Hits        17179    17182     +3     
- Misses       4240     4241     +1     
+ Partials       25       24     -1     
Flag Coverage Δ
unittests 80.11% <80.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@sahil143
Copy link
Collaborator Author

/test

try {
return JSON.parse(extractedLogs[0]);
} catch {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would not make sense to propagate this higher? And ignore it where it is used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants