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

UI: Topology info panel incorrect accounting bugs #9886

Merged
merged 4 commits into from
Jan 28, 2021

Conversation

DingoEatingFuzz
Copy link
Contributor

Fixes #9800

The cluster info panel was over-reporting reserved amounts due to counting the reserved capacity for terminal allocations. This fixes that bug.

Additionally, the topo viz node component did the same over-reporting by counting all allocs instead of only the pending and running ones.

This also adds acceptance tests to all the info panel states, and by writing those tests I discovered another bug: the unique allocation placements figure was always equal to the number of sibling allocations instead of the count of unique clients. I fixed that.

This would only ever realistically happen with fixture data, but still
good to not have these warnings.
This fixes a couple bugs

1. Overreporting resources reserved due to counting terminal allocs
2. Overreporting unique client placements due to uniquing on object refs
   instead of on client ID.
@github-actions
Copy link

github-actions bot commented Jan 26, 2021

Ember Asset Size action

As of 73be2c3

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +59 B +19 B

Files that stayed the same size 🤷‍:

File raw gzip
vendor.js 0 B 0 B
nomad-ui.css 0 B 0 B
vendor.css 0 B 0 B

Copy link
Contributor

@backspace backspace left a comment

Choose a reason for hiding this comment

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

👍

I noticed a “simple” merge conflict from ff252db that I first fixed in the web console and then had to do two subsequent force pushes to fully fix… including changing the tests. I probably should have just left it alone for you, sorry, as I know you tend to like to rebase! 😳

@github-actions
Copy link

github-actions bot commented Jan 28, 2021

Ember Test Audit comparison

master 73be2c3 change
passes 1544 1544 0
failures 0 0 0
flaky 0 0 0
duration 8m 14s 108ms 8m 05s 484ms -08s 624ms

@DingoEatingFuzz
Copy link
Contributor Author

No worries! One less merge conflict I have to resolve, thanks!

@DingoEatingFuzz DingoEatingFuzz merged commit d0f96f3 into master Jan 28, 2021
@DingoEatingFuzz DingoEatingFuzz deleted the b-ui/topo-viz-accounting branch January 28, 2021 17:23
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[question] Topology dashboard overcounting allocations and reserved resources.
2 participants