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

remove Logrus with meshkit logger w/signoff #11176

Merged
merged 6 commits into from
Jun 17, 2024

Conversation

Jougan-0
Copy link
Contributor

@Jougan-0 Jougan-0 commented Jun 14, 2024

Notes for Reviewers

This PR fixes #11024

Still some instance left I am working on them.
Here is an update pr on the issue.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
@Jougan-0 Jougan-0 changed the title remove Logrus with meshkit loggert w/signoff remove Logrus with meshkit logger w/signoff Jun 14, 2024
Copy link

github-actions bot commented Jun 14, 2024

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 0% with 186 lines in your changes missing coverage. Please review.

Project coverage is 9.19%. Comparing base (b67b531) to head (c90e488).
Report is 62 commits behind head on master.

Files Patch % Lines
server/handlers/error.go 0.00% 27 Missing ⚠️
server/handlers/k8sconfig_handler.go 0.00% 19 Missing ⚠️
server/helpers/load_test_interface.go 0.00% 18 Missing ⚠️
server/handlers/events_streamer.go 0.00% 15 Missing ⚠️
server/helpers/kubernetes.go 0.00% 15 Missing ⚠️
server/models/pattern/planner/parallel_process.go 0.00% 15 Missing ⚠️
server/handlers/fetch_results_handler.go 0.00% 13 Missing ⚠️
server/handlers/load_test_handler.go 0.00% 12 Missing ⚠️
server/handlers/design_engine_handler.go 0.00% 11 Missing ⚠️
server/cmd/main.go 0.00% 7 Missing ⚠️
... and 13 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11176      +/-   ##
==========================================
- Coverage    9.19%    9.19%   -0.01%     
==========================================
  Files         145      145              
  Lines       19088    19105      +17     
==========================================
  Hits         1756     1756              
- Misses      17030    17047      +17     
  Partials      302      302              
Flag Coverage Δ
unittests 9.19% <0.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.

Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
@Jougan-0 Jougan-0 requested a review from MUzairS15 June 17, 2024 04:06
@Deepak0320Singhal
Copy link

@Jougan-0 Thank you for your contribution.
Let's discuss this on Websites's call on Monday. Adding this as an agenda item into the meeting minutes.

@Jougan-0
Copy link
Contributor Author

@Jougan-0 Thank you for your contribution. Let's discuss this on Websites's call on Monday. Adding this as an agenda item into the meeting minutes.

This is not a website topic so I don't think we should cover this in website's meeting.
@Deepak0320Singhal

Jougan-0 and others added 3 commits June 17, 2024 17:17
Signed-off-by: Shlok Mishra <99207534+Jougan-0@users.noreply.github.com>
Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
)

var (
ErrCreatingRegoInstance = errors.New(ErrCreateRegoInstanceCode, errors.Alert, []string{"Error creating Rego Instance."}, []string{"Unable to create Rego instance, policies will not be evaluated."}, []string{}, []string{})
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this shouldn't be "OPA Instance"

ErrInvalidGenValue = errors.New(ErrInvalidGenValueCode, errors.Alert, []string{"Invalid value for gen"}, []string{}, []string{}, []string{"please provide a valid value for gen (load generator)"})
ErrParseDuration = errors.New(ErrParseDurationCode, errors.Alert, []string{"error parsing test duration"}, []string{}, []string{"The format of the duration passed could be incorrect"}, []string{"please refer to: https://docs.meshery.io/guides/mesheryctl#performance-management"})
ErrPerformanceTest = errors.New(ErrPerformanceTestCode, errors.Alert, []string{"Load test error"}, []string{}, []string{"Load test endpoint could be not reachable"}, []string{"Make sure load test endpoint is reachable"})
ErrInvalidK8SConfigNil = errors.New(ErrInvalidK8SConfigNilCode, errors.Alert, []string{"No valid kubernetes config found. Make sure to pass contextIDs in query parameters."}, []string{"Kubernetes config is not initialized with Meshery"}, []string{"Kubernetes config is not accessible to meshery or not valid"}, []string{"Upload your kubernetes config via the settings dashboard. If uploaded, wait for a minute for it to get initialized"})
Copy link
Member

Choose a reason for hiding this comment

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

Always capitalize Meshery.

Copy link
Member

Choose a reason for hiding this comment

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

Always capitalize Kubernetes.

Copy link
Member

Choose a reason for hiding this comment

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

Please update this for all errors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
@leecalcote leecalcote merged commit 8bc8331 into meshery:master Jun 17, 2024
15 of 17 checks passed
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.

Replace usages of logrus with meshkit logger.
3 participants