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 worker hardware utilization code #1400

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

3vilhamster
Copy link
Contributor

@3vilhamster 3vilhamster commented Nov 11, 2024

What changed?
Reverting #1260 since this code is unused and this logic is not required in the worker code.

Why?
To remove unused code and improve code coverage.

How did you test it?
Unit tests.

Potential risks
In theory, somebody could start using these metrics, but they should not be part of Cadence client responsibilities, and there is better tooling (prom-client) that does it better.

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.20%. Comparing base (82d54a7) to head (75c6630).
Report is 1 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
internal/internal_worker.go 82.56% <ø> (-0.08%) ⬇️
internal/internal_worker_base.go 81.95% <ø> (+8.03%) ⬆️
internal/worker.go 40.00% <ø> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@ketsiambaku
Copy link
Contributor

@timl3136 Did we have a change of plans ? wondering why this ended up not being used

@3vilhamster 3vilhamster merged commit f8bfb87 into uber-go:master Nov 13, 2024
13 of 14 checks passed
@3vilhamster 3vilhamster deleted the revert-1260 branch November 13, 2024 09:41
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.

2 participants