Skip to content

Compute emissions based on ongoing carbon intensity#1050

Open
cianc wants to merge 4 commits intomasterfrom
feature/issue-994
Open

Compute emissions based on ongoing carbon intensity#1050
cianc wants to merge 4 commits intomasterfrom
feature/issue-994

Conversation

@cianc
Copy link
Contributor

@cianc cianc commented Feb 4, 2026

Description

Compute emissions based on ongoing carbon intensity samples, rather than just taking the latest value and applying it to all energy consumption every time.

Related Issue

Please link to the issue this PR resolves: #994

Motivation and Context

Improves emission accuracy over long runs.

How Has This Been Tested?

Added a new test and ran all existing tests.

Screenshots (if appropriate):

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

Go over all the following points, and put an x in all the boxes that apply.

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.48%. Comparing base (1db90eb) to head (414f160).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1050      +/-   ##
==========================================
+ Coverage   68.26%   68.48%   +0.22%     
==========================================
  Files          41       41              
  Lines        3847     3858      +11     
==========================================
+ Hits         2626     2642      +16     
+ Misses       1221     1216       -5     

☔ View full report in Codecov by Sentry.
📢 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.

@cianc cianc marked this pull request as ready for review February 4, 2026 17:50
@cianc cianc requested a review from a team as a code owner February 4, 2026 17:50
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.

[Co2 Signal] compute emissions on a regular basis

1 participant