Skip to content

[eas-cli] Show accurate build overage count in pre-build usage warning - #3932

Merged
sarahlane8 merged 2 commits into
mainfrom
sarah/filter-build-overage-metrics
Jul 16, 2026
Merged

[eas-cli] Show accurate build overage count in pre-build usage warning#3932
sarahlane8 merged 2 commits into
mainfrom
sarah/filter-build-overage-metrics

Conversation

@sarahlane8

Copy link
Copy Markdown
Contributor

The overage count shown to paid users ("N builds beyond your included credits") summed the value of every overageMetrics row, including rows without build metadata (e.g. rollup/summary rows), which could inflate the number. Filter to genuine per-worker build overage rows (those carrying billingResourceClass + platform metadata) before summing.

Fetch that metadata on overageMetrics in the warning query so the rows can be distinguished.

@sarahlane8 sarahlane8 self-assigned this Jul 1, 2026
@sarahlane8
sarahlane8 requested a review from LipLoody July 1, 2026 16:30
@sarahlane8
sarahlane8 marked this pull request as ready for review July 1, 2026 16:30
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.18%. Comparing base (88c51c3) to head (81f02a2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3932      +/-   ##
==========================================
+ Coverage   59.18%   59.18%   +0.01%     
==========================================
  Files         935      935              
  Lines       41075    41077       +2     
  Branches     8648     8649       +1     
==========================================
+ Hits        24306    24308       +2     
  Misses      16674    16674              
  Partials       95       95              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sarah Lane and others added 2 commits July 16, 2026 09:27
The overage count shown to paid users ("N builds beyond your included
credits") summed the value of every overageMetrics row, including rows
without build metadata (e.g. rollup/summary rows), which could inflate the
number. Filter to genuine per-worker build overage rows (those carrying
billingResourceClass + platform metadata) before summing.

Fetch that metadata on overageMetrics in the warning query so the rows can
be distinguished.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sarahlane8
sarahlane8 force-pushed the sarah/filter-build-overage-metrics branch from 81f02a2 to 9903ae0 Compare July 16, 2026 16:43
@github-actions

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

Comment thread packages/eas-cli/src/graphql/queries/AccountQuery.ts
@sarahlane8
sarahlane8 merged commit 9313ef1 into main Jul 16, 2026
7 checks passed
@sarahlane8
sarahlane8 deleted the sarah/filter-build-overage-metrics branch July 16, 2026 22:43
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.

3 participants