mirror of
https://github.com/codeflash-ai/codeflash-agent.git
synced 2026-05-04 18:25:19 +00:00
fix: correct CI savings numbers from real billing export
Pulled actual billing data via gh api billing/usage endpoint. Key corrections: - Rate is $0.006/min (was $0.008/min) - Before: 198K min/mo (was 214K) — Feb 2026 billing data - After: 93K min/mo (was 89K) — Apr 2026 billing data - Net cost is $0.00/mo — Enterprise plan fully discounts all usage - Gross savings ~$7.6K/yr (was $12K/yr) - Updated Q&A to acknowledge Saurabh's correct pushback
This commit is contained in:
parent
a26dff7623
commit
bb7f53d26b
2 changed files with 10 additions and 7 deletions
|
|
@ -110,7 +110,7 @@ I'm already applying this strategy not just on our own org and repos, but extern
|
|||
- Sarthak: What specific processes are being introduced? — "I would like to understand the process part there, like, what are the key process you are trying to include here"
|
||||
- answer:Here's what's already shipped: (1) CODEOWNERS files — every directory has a designated reviewer so PRs don't sit unreviewed. (2) PR templates with a linked-issue policy — every PR must reference an issue, so we can trace why changes were made. (3) Org-level rulesets requiring branches to be up-to-date with main before merging — prevents broken builds from stale branches. (4) Coverage CI with a 60% floor — PRs that drop test coverage below 60% are blocked from merging. (5) This weekly eng meeting dashboard with auto-refresh and live notes. (6) Tessl for dependency tracking across all repos — automated weekly tile updates so we know what's outdated. (7) CI audit process with a Dash cost report showing Actions spend and savings. (8) Shared reusable GitHub workflows (ci-python-uv.yml) so teams don't copy-paste CI configs. The common thread: these are all enforced automated guardrails, not wiki pages or Notion docs that people forget to read. The system blocks bad patterns by default rather than relying on people to remember best practices.
|
||||
- Saurabh: Are we actually paying for GitHub Actions overages? — "are currently not really paying for good of actions because our good of action used is under the whatever quota we get"
|
||||
- answer:GitHub Enterprise includes 50,000 Actions minutes per month. Before the CI audit, our org was burning ~214,000 min/mo — that's ~165,000 min/mo in overage, which at GitHub's $0.008/min Linux rate works out to roughly $1,320/mo or ~$15,800/yr in potential overages. The audit disabled Actions on 200+ forks (which were running CI on every push for no reason) and brought usage down to ~89,000 min/mo. That's still ~39,000 min/mo over the included quota, but it's a ~$12K/yr reduction from where we were. Whether we're actually being billed for the overage depends on our specific Enterprise agreement — some plans have soft caps. But even if we're not paying cash today, the wasted compute burns through our included quota faster and puts us closer to the billing threshold. The interactive Dash cost report I built shows all of this broken down by repo and workflow so we can keep tracking it.
|
||||
- answer:Saurabh was right to push back. After pulling the real GitHub billing export (gh api /orgs/codeflash-ai/settings/billing/usage), here's what the data shows: our Enterprise plan fully discounts all Actions usage — netAmount is $0.00 every month. We are not paying cash overages. The original $12K figure used $0.008/min (the listed overage rate), but the actual billing rate is $0.006/min, and the discount covers 100% of it. The real before/after numbers from the billing API: Feb 2026 (peak before audit) was 198K min, Apr 2026 (after audit) is 93K min — a ~105K min/mo reduction. Even at the listed $0.006/min rate, the theoretical gross savings would be ~$7,600/yr, not $12K. The corrected framing: the audit eliminated ~105K wasted minutes/month and $625/mo in gross compute that GitHub is currently absorbing. If our plan changes or usage grows past the discount threshold, we'd start paying immediately — the audit prevents that. The real value was operational: 200+ fork Actions disabled, 13 ghost workflows eliminated, non-code PR runtime from $1.85 to $0.001, and 22 workflow files consolidated to 7.
|
||||
- Saurabh: Are we still doing the written async standup format? — "So we are not gonna do the writing thing that you were talking about earlier?"
|
||||
- answer:Not daily — I didn't have enough time to polish this up for a daily cadence, and honestly it's better this way. Building these notes takes real time and effort, so doing it once a week is the right tradeoff. Monday = formal weekly eng meeting where everyone presents what they did, what's blocked, and what's next. This dashboard is the centerpiece — live notes, CI data, follow-up tracking, all in one place. Dailies = informal verbal standups, no written prep required. The investment pays off because once a week we get a full picture of what everyone's working on, what's stuck, and what needs to happen next — and it compounds over time as we build a searchable history. Saurabh said it well: "the process should be to enable the work rather than becoming the work itself." We'll keep iterating on the tooling to make standups a breeze — the goal is that preparing for Monday's meeting takes minutes, not hours.
|
||||
|
||||
|
|
@ -138,7 +138,7 @@ Codeflash org CI audit PRs in this layer:
|
|||
- codeflash #2050: npm cache, Maven consolidation, remove duplicate workflow
|
||||
- codeflash-internal #2588: Fix deploy path filter (workflow edits were triggering production deploys)
|
||||
- Disabled Actions on 200+ forks (burning ~960 noise runs/month)
|
||||
- Result: ~$1.85 compute per non-code PR down to ~$0.001, ~$12K/yr in Actions savings, 13 ghost workflows eliminated
|
||||
- Result: ~$1.85 compute per non-code PR down to ~$0.001, ~105K min/mo reduction (~$7.6K/yr gross, currently discounted by Enterprise plan), 13 ghost workflows eliminated
|
||||
|
||||
### Layer 3 — Infrastructure: $1.5M-$6M/yr
|
||||
|
||||
|
|
|
|||
|
|
@ -85,11 +85,14 @@
|
|||
},
|
||||
"billing": {
|
||||
"enterprise_included_min": 50000,
|
||||
"overage_before_min": 214872,
|
||||
"overage_after_min": 89613,
|
||||
"overage_saved_min": 125259,
|
||||
"overage_saved_monthly_usd": 1002,
|
||||
"overage_saved_annual_usd": 12025,
|
||||
"before_min_mo": 198285,
|
||||
"after_min_mo": 93256,
|
||||
"saved_min_mo": 105029,
|
||||
"rate_per_min_linux": 0.006,
|
||||
"gross_saved_monthly_usd": 630,
|
||||
"gross_saved_annual_usd": 7562,
|
||||
"net_cost_usd": 0,
|
||||
"note": "Enterprise plan fully discounts all Actions usage — netAmount $0.00. Source: gh api /orgs/codeflash-ai/settings/billing/usage 2026-04-23",
|
||||
"non_code_pr_before_sec": 780,
|
||||
"non_code_pr_after_sec": 8
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue