Skip to content

Upgrade go, deps, and sanitize values better#30

Open
crohr wants to merge 4 commits intomainfrom
fix/upgrade-go-1-26
Open

Upgrade go, deps, and sanitize values better#30
crohr wants to merge 4 commits intomainfrom
fix/upgrade-go-1-26

Conversation

@crohr
Copy link
Contributor

@crohr crohr commented Mar 11, 2026

Note

Medium Risk
Medium risk because it upgrades the Go toolchain and multiple AWS SDK dependencies, and changes runtime handling of CloudWatch datapoints (filtering NaN/Inf) which could affect displayed stats/output.

Overview
Upgrades the project to Go 1.26 (including mise.toml) and bumps AWS SDK v2, asciigraph, and go-githubactions dependencies.

Hardens CloudWatch metric rendering by sanitizing float series across sparklines/charts and summary stats: NaN/Inf datapoints are filtered during fetch and before display/stats, with a new "(no valid data yet)" message when all values are invalid. Adds tests covering invalid-value filtering in displayMetric.

Written by Cursor Bugbot for commit f28251c. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: MetricSummary fields become dead stores after refactoring
    • Removed the unused Min, Max, Avg fields from MetricSummary struct and the dead calculateStats computation in GetMetricSummary since displayMetric recalculates stats from the Data slice.
  • ✅ Fixed: Unused calculateMin and calculateMax contain new dead code
    • Removed the unused calculateMin and calculateMax functions which had no callers in the codebase.

cursoragent and others added 2 commits March 11, 2026 17:00
…ateMax functions

- Remove Min, Max, Avg fields from MetricSummary struct (never read, displayMetric recalculates stats from Data)
- Remove dead calculateStats call and field assignments in GetMetricSummary
- Remove unused calculateMin and calculateMax helper functions
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