Skip to content

Make the resource comparison more informative in case of an error #2273

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

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

ndk
Copy link
Contributor

@ndk ndk commented Dec 14, 2021

Proposed changes

In some rare cases, if an error occurred during comparison resources, this error might be overwritten by a less informative message "Error, spec has unexpected format". I think that giving more precisive information could help DevOps people to find the source of the error faster.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto master
  • I will ensure my PR is targeting the master branch and pulling from my branch from my own fork

@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2021

Codecov Report

Merging #2273 (1f9d1aa) into master (69ad025) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2273      +/-   ##
==========================================
- Coverage   53.39%   53.38%   -0.01%     
==========================================
  Files          43       43              
  Lines       13412    13412              
==========================================
- Hits         7161     7160       -1     
  Misses       6022     6022              
- Partials      229      230       +1     
Impacted Files Coverage Δ
internal/k8s/handlers.go 7.79% <100.00%> (+0.64%) ⬆️
internal/k8s/configuration.go 95.65% <0.00%> (-0.39%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69ad025...1f9d1aa. Read the comment docs.

Copy link
Contributor

@ciarams87 ciarams87 left a comment

Choose a reason for hiding this comment

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

🔥

@nginx-bot nginx-bot force-pushed the master branch 5 times, most recently from 9a2fba4 to 1f9d1aa Compare December 16, 2021 06:36
@ciarams87 ciarams87 merged commit 98239fc into nginx:master Dec 16, 2021
@lucacome lucacome added the enhancement Pull requests for new features/feature enhancements label Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Pull requests for new features/feature enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants