Skip to content

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

Open
sarahlane8 wants to merge 1 commit into
mainfrom
sarah/filter-build-overage-metrics
Open

[eas-cli] Show accurate build overage count in pre-build usage warning#3932
sarahlane8 wants to merge 1 commit 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.

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>
@sarahlane8 sarahlane8 self-assigned this Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

@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
**/* @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.

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.

1 participant