Repository navigation
fix(obs): cost-roll gets an HTTP client and an honest staleness read (#1339) - #1341
Merged
Merged
Conversation
…1339) The first live run of er-cost-roll failed every Athena call with "No HTTP client was available": the AWS crates are built default-features = false, which drops the default client, and cost_aws.rs did not supply one the way exports.rs and mail.rs do. It now builds the same Ring-backed rustls client. CurStalenessHours read max(line_item_usage_end_date), which is the month's end for monthly line items (2026-12-01 on 2026-11-27), so the CUR would always look fresh. It now reads the newest hourly Usage line's start. Probed against the live CUR with the er-builder profile: latest usage 2026-11-27T14:00Z, and a real instance cost returned. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 28, 2026 14:26 — with
GitHub Actions
Inactive
Merged
11 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1339
cost_aws.rsbuilds the SDK config with an explicit Ring-backed rustls HTTP client (asexports.rsdoes), and CUR staleness reads the newest hourly Usage line's start.Fix-forward from #1332 (#667), found by its first live run on dev: every Athena call failed "No HTTP client was available" (the AWS crates are
default-features = false), andmax(line_item_usage_end_date)is the month's end for monthly lines, so the CUR would always read fresh.Proof
kubectl -n ci create job --from=cronjob/er-cost-roll→athena start: dispatch failure … No HTTP client was available.er-builderprofile:latest_usage_end→2026-11-27T14:00:00Z(was2026-12-01T00:00:00Z),instance_costs("2026-11", ["i-0851a55f0c462da5f"])→$12.35.make checkexit 0.Risk & rollback
Only the cost roll-up's AWS client.
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onMac· 2026-11-28T21:35:11Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: — 67b16ba, rust 46154643020 + frontend 46154643033 success
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46154643127
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — run 46154937065 success; the running image's cost roll succeeded live (below)
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer success on 67b16ba
Donethrough the automation rather than byhand, and the issue closed: — cost-roll: no HTTP client for the AWS SDKs; staleness read the month's end #1339 CLOSED by fix(obs): cost-roll gets an HTTP client and an honest staleness read (#1339) #1341 via automation
(a skill, a reference, memory) — or nothing new was learned: — probe an AWS client with a real call before merge; the er-builder profile can reach Athena for this
Specific to this change
er-cost-rollrun on dev succeeds after the deploy — er-cost-roll-verify-2 Complete, cur_staleness_hours 16.53Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
🤖 Generated with Claude Code