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

agent: Remove unused "error" exit status #1061

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

sharnoff
Copy link
Member

@sharnoff sharnoff commented Sep 4, 2024

The tasks associated with a VM originally could exit with an error on startup, and we'd retry after a duration. This hasn't been possible for some time, so we're better off removing the machinery for it.

Note: This PR removes the following metric:

  • autoscaling_agent_runner_fatal_errors_total

Notes for review: Given the metric is currently always zero, we should preemptively remove it from dashboards & alerts before merging.

Also worth noting this came up as part of neondatabase/docs#96.

The tasks associated with a VM *originally* could exit with an error on
startup, and we'd retry after a duration. This hasn't been possible for
some time, so we're better off removing the machinery for it.

Note: This PR removes the following metric:

- autoscaling_agent_runner_fatal_errors_total
Copy link

github-actions bot commented Sep 19, 2024

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/neondatabase/autoscaling/pkg/agent 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/neondatabase/autoscaling/pkg/agent/globalstate.go 0.00% (ø) 181 (-6) 0 181 (-6)
github.com/neondatabase/autoscaling/pkg/agent/prommetrics.go 0.00% (ø) 33 0 33
github.com/neondatabase/autoscaling/pkg/agent/runner.go 0.00% (ø) 268 (-5) 0 268 (-5)

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

HTML Report

Click to open

@sharnoff
Copy link
Member Author

sharnoff commented Sep 19, 2024

AFAICT, removed the metric from all relevant places. Merging...

@sharnoff sharnoff merged commit 2731a62 into main Sep 19, 2024
21 checks passed
@sharnoff sharnoff deleted the sharnoff/agent-rm-podStatusExitErrored branch September 19, 2024 18:47
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