Skip to content

ci(api): codecarbon test ci pushes emissions to api#1123

Merged
inimaz merged 7 commits intomasterfrom
ci/tests-push-emissions
Mar 25, 2026
Merged

ci(api): codecarbon test ci pushes emissions to api#1123
inimaz merged 7 commits intomasterfrom
ci/tests-push-emissions

Conversation

@inimaz
Copy link
Copy Markdown
Collaborator

@inimaz inimaz commented Mar 19, 2026

Description

This is experimental. If it works the tests will push their emissions to the dashboard

@inimaz inimaz requested a review from a team as a code owner March 19, 2026 13:07
@benoit-cty
Copy link
Copy Markdown
Contributor

That's a clever usage, if it works it will be a nice subject for a use case article 👍

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.63%. Comparing base (46ac6dd) to head (cdca163).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
codecarbon/cli/cli_utils.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1123      +/-   ##
==========================================
+ Coverage   80.74%   81.63%   +0.89%     
==========================================
  Files          41       41              
  Lines        3921     3915       -6     
==========================================
+ Hits         3166     3196      +30     
+ Misses        755      719      -36     

☔ 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.

@inimaz
Copy link
Copy Markdown
Collaborator Author

inimaz commented Mar 20, 2026

It works @benoit-cty !

image image

Copy link
Copy Markdown
Member

@SaboniAmine SaboniAmine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci !

@inimaz inimaz merged commit 09fa462 into master Mar 25, 2026
11 of 12 checks passed
@inimaz inimaz deleted the ci/tests-push-emissions branch March 25, 2026 22:05
SaboniAmine pushed a commit that referenced this pull request Mar 27, 2026
* ci(api): codecarbon test ci pushes emissions to api

* trigger it

* fix: secrets access

* fix: cli uses hierarchical config as emissions tracker

* tests: add cli tests
@benoit-cty benoit-cty mentioned this pull request Mar 30, 2026
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