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

Failures view #662

Merged
merged 4 commits into from
Mar 21, 2022
Merged

Failures view #662

merged 4 commits into from
Mar 21, 2022

Conversation

gdubicki
Copy link
Contributor

@gdubicki gdubicki commented Feb 17, 2022

This is a draft of a new view that would help finding the most common errors in puppet runs to resolve them faster.

To do that it would list all the nodes with errors in their last puppet run and for each of them show the first meaningful error in it.

@gdubicki
Copy link
Contributor Author

gdubicki commented Feb 18, 2022

It's totally unfinished, including the UI & UX, but it would very roughly look like this:

Screenshot_2022-02-18_at_08_44_38

@tparkercbn
Copy link
Contributor

tparkercbn commented Feb 18, 2022 via email

@gdubicki gdubicki force-pushed the failures_view branch 2 times, most recently from e9e9481 to dace401 Compare February 21, 2022 20:17
@codecov
Copy link

codecov bot commented Feb 21, 2022

Codecov Report

Merging #662 (dd8504d) into master (5c543b1) will decrease coverage by 4.22%.
The diff coverage is 29.72%.

@@            Coverage Diff             @@
##           master     #662      +/-   ##
==========================================
- Coverage   88.32%   84.09%   -4.23%     
==========================================
  Files          18       19       +1     
  Lines         959     1031      +72     
==========================================
+ Hits          847      867      +20     
- Misses        112      164      +52     
Impacted Files Coverage Δ
puppetboard/core.py 100.00% <ø> (ø)
puppetboard/views/failures.py 22.38% <22.38%> (ø)
puppetboard/app.py 93.47% <100.00%> (+0.14%) ⬆️
puppetboard/default_settings.py 100.00% <100.00%> (ø)
puppetboard/docker_settings.py 100.00% <100.00%> (ø)

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 5c543b1...dd8504d. Read the comment docs.

@gdubicki
Copy link
Contributor Author

For a long time now I was thinking that Puppet's error messages can and should be improved. They contain a lot of redundancy, are not well formatted for readability. Therefore I added a feature for it here. I would like to optionally make it available in the report view too, while doing #641.

Example "raw" error:

Screenshot_2022-02-27_at_20_46_24

...and its "friendly" version:

Screenshot 2022-02-27 at 20 46 59

Opinions?

@gdubicki
Copy link
Contributor Author

gdubicki commented Feb 27, 2022

Current looks of the failures page:

Screenshot_2022-02-27_at_20_54_43

@gdubicki gdubicki marked this pull request as ready for review March 21, 2022 16:49
@bastelfreak bastelfreak merged commit e0889f5 into master Mar 21, 2022
@bastelfreak bastelfreak deleted the failures_view branch March 21, 2022 17:03
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