Skip to content

Add Eco CI - #36

Merged
trotro merged 11 commits into
mainfrom
eco-ci
Jul 31, 2026
Merged

Add Eco CI#36
trotro merged 11 commits into
mainfrom
eco-ci

Conversation

@trotro

@trotro trotro commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Add Eco CI to pipelines

Copilot AI review requested due to automatic review settings July 30, 2026 15:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The new workflow as written will fail on schedule because it invokes non-existent project files/commands (e.g., requirements.txt and pytest) and needs adjustment to match the repo’s actual validation/test entrypoints.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Adds a new scheduled GitHub Actions workflow intended to run daily tests while capturing energy measurements via Eco-CI.

Changes:

  • Introduces .github/workflows/eco-ci.yml with a daily cron trigger.
  • Adds Eco-CI start/measurement/result display steps around checkout + Python setup + test execution.
File summaries
File Description
.github/workflows/eco-ci.yml New scheduled workflow to run a daily job with Eco-CI energy estimation instrumentation.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 3
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread .github/workflows/eco-ci.yml Outdated
Comment thread .github/workflows/eco-ci.yml Outdated
Comment thread .github/workflows/eco-ci.yml Outdated
Copilot AI review requested due to automatic review settings July 30, 2026 15:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The new workflow is currently invalid/misconfigured (permissions YAML format) and would fail at runtime due to missing dependency/test setup (nonexistent requirements.txt, pytest not present/used in repo).

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (3)

.github/workflows/eco-ci.yml:38

  • This workflow installs dependencies with pip install -r requirements.txt, but the repository does not have a root requirements.txt (it uses docs/requirements.txt + uv in .github/workflows/validate.yml). As written, the job will fail at install time.
      - name: setup python
        uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
        with:
          python-version: '3.10'
          cache: 'pip'

.github/workflows/eco-ci.yml:53

  • The job runs pytest, but there are no pytest tests/config in this repo (and docs/requirements.txt doesn’t include pytest). This will fail or do nothing meaningful; consider running the existing validation command instead.
      - name: Run Tests
        shell: bash
        run: pytest

.github/workflows/eco-ci.yml:44

  • Spelling: "Measurment" → "Measurement" (step name).
      - name: Setup Python Measurment
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread .github/workflows/eco-ci.yml Outdated
Copilot AI review requested due to automatic review settings July 30, 2026 15:26
Replace astral-sh/setup-uv v7 to v9.0.0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The workflow currently installs a non-existent root requirements.txt and runs pytest even though pytest/tests aren’t present/installed in this repo, so scheduled runs will fail.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (4)

.github/workflows/eco-ci.yml:9

  • permissions: read-all is broader than needed for this workflow (it only checks out the repo and runs scripts). Prefer least-privilege permissions, consistent with other workflows in this repo.
permissions:
  read-all

.github/workflows/eco-ci.yml:53

  • pytest is invoked here, but there are no Python tests/pytest configuration in the repo, and docs/requirements.txt doesn’t install pytest. This step will fail (likely pytest: command not found). If the intent is to run the repo’s existing Python checks, run the provider validator script instead (same as validate.yml).
      - name: Run Tests
        shell: bash
        run: pytest

.github/workflows/eco-ci.yml:44

  • Spelling: “Measurment” → “Measurement”.
      - name: Setup Python Measurment

.github/workflows/eco-ci.yml:60

  • After replacing the test command with provider validation, this measurement label should be updated to match what’s actually being measured (otherwise the results will be misleading).
      - name: Tests measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'pytest'
        continue-on-error: true
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread .github/workflows/eco-ci.yml Outdated
Copilot AI review requested due to automatic review settings July 30, 2026 15:30
trotro and others added 2 commits July 30, 2026 17:31
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The new scheduled workflow will fail as written due to referencing a non-existent requirements.txt and invoking pytest despite no pytest tests/deps in the repo.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (4)

.github/workflows/eco-ci.yml:42

  • This workflow installs dependencies from requirements.txt, but the repository doesn't have that file (the existing validation workflow installs from docs/requirements.txt). This will fail before any measurements/tests run.
        run: uv pip install -r requirements.txt

.github/workflows/eco-ci.yml:59

  • After switching away from pytest, this measurement step name/label still references pytest, which makes the energy report misleading.
      - name: Tests measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'pytest'

.github/workflows/eco-ci.yml:44

  • Typo in step name: "Measurment" → "Measurement".
      - name: Setup Python Measurement

.github/workflows/eco-ci.yml:9

  • permissions: read-all grants broader token access than this workflow appears to need (it only checks out code and runs commands). Minimizing permissions reduces blast radius if a third-party action is compromised.
permissions:
  contents: read
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread .github/workflows/eco-ci.yml Outdated
Copilot AI review requested due to automatic review settings July 30, 2026 15:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The new eco-ci.yml workflow currently references a non-existent requirements.txt and runs pytest despite no test suite being present, so it will fail and not perform meaningful checks.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (2)

.github/workflows/eco-ci.yml:53

  • pytest is invoked here, but there are no Python test files in the repository and pytest is not installed by the listed requirements, so this step will fail and the workflow won’t exercise any of the repo’s existing validation checks.
      - name: Run Tests
        shell: bash
        run: pytest

.github/workflows/eco-ci.yml:42

  • This workflow installs dependencies from requirements.txt, but the repository only contains docs/requirements.txt, so the step will fail on a fresh runner.
      - name: Install dependencies
        run: uv pip install -r requirements.txt
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Add Eco CI steps
Copilot AI review requested due to automatic review settings July 30, 2026 15:58
@trotro trotro changed the title Create eco-ci.yml Add Eco CI Jul 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The new eco-ci results job can run before measurement jobs complete, which can lead to incomplete or empty displayed results.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (1)

.github/workflows/ci.yml:127

  • The eco-ci job runs without needs, so it can start in parallel with build/axe-core/lighthouse and may display incomplete (or empty) results because those jobs’ get-measurement steps haven’t finished yet. Make eco-ci depend on the measurement-producing jobs (and consider if: always() so results still display when an upstream job fails).
  eco-ci:
    runs-on: ubuntu-latest
    steps:
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Copilot AI review requested due to automatic review settings July 30, 2026 16:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The Eco CI integration currently won’t reliably display measurements on failures and includes a standalone results job that cannot display any measurements due to job isolation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (6)

.github/workflows/ci.yml:94

  • display-results should also run under if: always() so energy output is still printed even when earlier steps fail.
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
        continue-on-error: true

.github/workflows/ci.yml:136

  • display-results should run under if: always() so energy output is still printed even when Lighthouse fails.
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
        continue-on-error: true

.github/workflows/ci.yml:44

  • The build job records a measurement but never runs display-results, so energy output for the build segment won’t be shown. Also, without if: always(), this step will be skipped if a prior step fails (even though the Eco-CI step itself is continue-on-error).
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'build'
        continue-on-error: true

.github/workflows/ci.yml:88

  • If the axe-core run fails, these Eco-CI steps won’t execute unless they’re marked if: always(), so the measurement output can be lost exactly when it’s most useful for debugging CI regressions.

This issue also appears on line 89 of the same file.

      - name: Get measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'axe-core'
        continue-on-error: true

.github/workflows/ci.yml:130

  • If Lighthouse fails, these Eco-CI steps won’t run unless they’re marked if: always(), so the workflow can miss energy output for failing runs.

This issue also appears on line 131 of the same file.

      - name: Get measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'lighthouse'
        continue-on-error: true

.github/workflows/ci.yml:144

  • This separate eco-ci job runs display-results without any prior start-measurement/get-measurement steps in the same job; GitHub Actions jobs are isolated, so this won’t have any measurements to display and will just consume runner time (and is currently masked by continue-on-error).
  eco-ci:
    runs-on: ubuntu-latest
    steps:
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
        continue-on-error: true
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Copilot AI review requested due to automatic review settings July 30, 2026 16:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The Eco CI result collection/display steps and the eco-ci summary job are currently configured in a way that can skip or run too early, leading to missing/incomplete results.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (4)

.github/workflows/ci.yml:92

  • Same as above: if Serve site and run axe-core fails, the energy measurement collection/display steps will be skipped unless they use if: always().
      - name: Get measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'axe-core'

.github/workflows/ci.yml:134

  • Same as above: if Lighthouse analysis fails, the energy measurement steps won’t run unless they use if: always().
      - name: Get measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'lighthouse'

.github/workflows/ci.yml:49

  • The energy measurement steps won’t run if an earlier step in the job fails (default if: success() behavior). If the intent is to always collect/display energy metrics even on failures, add if: always() to both the get-measurement and display-results steps.

This issue also appears in the following locations of the same file:

  • line 88
  • line 130
      - name: Get measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'build'

.github/workflows/ci.yml:150

  • The eco-ci job runs without any needs, so it can start before the other jobs finish and may display incomplete/empty results. If it’s meant to be a workflow-level summary, make it depend on the other jobs and run regardless of their outcome.
  eco-ci:
    runs-on: ubuntu-latest
    steps:
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Copilot AI review requested due to automatic review settings July 30, 2026 16:24
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 30561351138]:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
build38.911124.19744.615.25
Total Run38.9124.204.615.25
Additional overhead from Eco CIN/A2.163.860.56

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.003172784 g
CO₂ from manufacturing (embodied carbon) is: 0.001497897 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.004671 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 30561351138]:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
axe-core22.951469.3293.7618.43
Total Run22.9569.333.7618.43
Additional overhead from Eco CIN/A1.171.650.71

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.009089776 g
CO₂ from manufacturing (embodied carbon) is: 0.005258333 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.014348 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The updated CI workflow permissions and the Eco CI reporting steps need adjustments to avoid breaking checkout/permissions and to ensure measurement/reporting behaves reliably across push vs PR runs and failure cases.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (6)

.github/workflows/ci.yml:94

  • If axe-core fails, this step will be skipped and you won’t get any measurement output. Add if: always() so the measurement is retrieved even when earlier steps fail.
      - name: Get measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'axe-core'

.github/workflows/ci.yml:101

  • This step may run on push where there is no PR context, causing noisy failures (even if continue-on-error hides them). Gate PR commenting to PR events and run the step with if: always() so you still get results even when earlier steps fail.
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
          pr-comment: true

.github/workflows/ci.yml:137

  • If Lighthouse fails, this step will be skipped and you won’t get any measurement output. Add if: always() so the measurement is retrieved even when earlier steps fail.
      - name: Get measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'lighthouse'

.github/workflows/ci.yml:144

  • This step may run on push where there is no PR context, causing noisy failures (even if continue-on-error hides them). Gate PR commenting to PR events and run the step with if: always() so you still get results even when earlier steps fail.
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
          pr-comment: true

.github/workflows/ci.yml:45

  • If the build fails before this point, this step will be skipped and you won’t get any measurement output. Add if: always() so the measurement is retrieved even on failed builds.

This issue also appears in the following locations of the same file:

  • line 90
  • line 133
      - name: Get measurement
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: get-measurement
          label: 'build'

.github/workflows/ci.yml:51

  • This step may run on push where there is no PR context, causing noisy failures (even if continue-on-error hides them). Gate PR commenting to PR events and run the step with if: always() so you still get results even when earlier steps fail.

This issue also appears in the following locations of the same file:

  • line 97
  • line 140
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
          pr-comment: true
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread .github/workflows/ci.yml
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 30561351138]:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
lighthouse21.0924679.5853.69184.20
Total Run21.09679.593.69184.20
Additional overhead from Eco CIN/A2.251.761.28

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.089101800 g
CO₂ from manufacturing (embodied carbon) is: 0.052554803 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.141657 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 30, 2026 17:01
@github-actions

Copy link
Copy Markdown

Eco CI Output [RUN-ID: 30564133458]:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
build34.203924.46484.435.52
Total Run34.2024.464.435.52
Additional overhead from Eco CIN/A2.874.100.70

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.003206768 g
CO₂ from manufacturing (embodied carbon) is: 0.001574932 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.004782 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

@github-actions

Copy link
Copy Markdown

Eco CI Output [RUN-ID: 30564133458]:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
axe-core33.3513102.8314.4123.32
Total Run33.35102.834.4123.32
Additional overhead from Eco CIN/A2.142.740.78

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.013482208 g
CO₂ from manufacturing (embodied carbon) is: 0.006653518 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.020136 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The workflow-level pull-requests: write permission combined with third-party actions needs tighter scoping (and PR-comment steps should be gated) to reduce security and operational risk.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Comments suppressed due to low confidence (4)

.github/workflows/ci.yml:11

  • pull-requests: write is granted at the workflow level, which means every job/step (including third-party actions like green-coding-solutions/eco-ci-energy-estimation) runs with PR write access. For least-privilege, scope PR write permissions only to the jobs/steps that actually need to post PR comments (or move PR commenting into a dedicated PR-only job/workflow) and keep other jobs at contents: read only.
permissions:
  contents: read
  pull-requests: write

.github/workflows/ci.yml:102

  • This step is configured to post a PR comment (pr-comment: true), but the workflow also runs on push to main where no PR exists. Even with continue-on-error, this adds avoidable API calls/noise; gate the PR comment behavior to pull_request runs.
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
          pr-comment: true

.github/workflows/ci.yml:145

  • This step is configured to post a PR comment (pr-comment: true), but the workflow also runs on push to main where no PR exists. Even with continue-on-error, this adds avoidable API calls/noise; gate the PR comment behavior to pull_request runs.
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
          pr-comment: true

.github/workflows/ci.yml:52

  • This step is configured to post a PR comment (pr-comment: true), but the workflow also runs on push to main where no PR exists. Even with continue-on-error, this adds avoidable API calls/noise; gate the PR comment behavior to pull_request runs.

This issue also appears in the following locations of the same file:

  • line 98
  • line 141
      - name: Show Energy Results
        uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0
        with:
          task: display-results
          pr-comment: true
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@github-actions

Copy link
Copy Markdown

Eco CI Output [RUN-ID: 30564133458]:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
lighthouse20.6037680.9743.65186.74
Total Run20.60680.973.65186.74
Additional overhead from Eco CIN/A1.951.741.12

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.089282576 g
CO₂ from manufacturing (embodied carbon) is: 0.053279501 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.142562 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

@trotro
trotro merged commit b4b29b7 into main Jul 31, 2026
9 checks passed
@trotro
trotro deleted the eco-ci branch July 31, 2026 07:31
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.

2 participants