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

Make 'Broken' workers show as 'Unavailable' instead #6073

Merged

Conversation

r-richardson
Copy link
Contributor

@r-richardson r-richardson commented Dec 2, 2024

This PR displays "Broken" workers as instead "Unavailable", as the previous wording was e.g. not including workers which where unavailable due to 'too high load'.
It also replaces the 'Error' title of the worker states hover popup with 'Details' and enhances the 'too high load' output.

Example:
Screenshot From 2024-12-02 21-17-21

Related Ticket: https://progress.opensuse.org/issues/164084

@@ -767,7 +767,8 @@ sub _check_system_utilization (
return undef unless $threshold && @$load >= 3;
# look at the load evolution over time to react quick enough if the load
# rises but accept a falling edge
return "The average load (@$load) is exceeding the configured threshold of $threshold."
return
"The average load (@$load) is exceeding the configured threshold of $threshold. The worker will temporarily not accept new jobs until the load is lower again."
Copy link
Contributor

Choose a reason for hiding this comment

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

one comment quite off the PR. this seems to be displayed as a info next to the status. I wonder why we do not display the load as another key:value field in the page.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right that might be a good idea 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

not sure. Maybe check with others too. for me makes sense but maybe there is a reason

Copy link
Contributor

Choose a reason for hiding this comment

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

The load is not checked every time the worker details page is shown. The worker sends this info via websocket if the load is too high, and it gets saved into the worker table in the database.

@r-richardson r-richardson force-pushed the 164084_high_load_improve_wording branch 3 times, most recently from b45a245 to 7a7a74d Compare December 2, 2024 16:19
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.98%. Comparing base (35e1cc4) to head (bff1577).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6073   +/-   ##
=======================================
  Coverage   98.98%   98.98%           
=======================================
  Files         395      395           
  Lines       39508    39508           
=======================================
  Hits        39108    39108           
  Misses        400      400           

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

Copy link
Contributor

@perlpunk perlpunk left a comment

Choose a reason for hiding this comment

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

The "Broken" in the dropdown in the worker list also needs to be changed.

@r-richardson r-richardson force-pushed the 164084_high_load_improve_wording branch from 7a7a74d to 93d89ff Compare December 2, 2024 19:39
This commit displays "Broken" workers as instead "Unavailable",
as the previous wording was e.g. not including workers which where
unavailable due to 'too high load'.
For the same reason the 'Error' title of the worker states hover popup is replaced with
'Details' and the 'too high load' output is enhanced.

Related Ticket: https://progress.opensuse.org/issues/164084
@r-richardson r-richardson force-pushed the 164084_high_load_improve_wording branch from 93d89ff to bff1577 Compare December 2, 2024 19:55
@r-richardson r-richardson marked this pull request as ready for review December 2, 2024 20:13
@mergify mergify bot merged commit db480fd into os-autoinst:master Dec 2, 2024
46 checks passed
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.

4 participants