Repository navigation
Releases
1.5
Highlights
- Carbon intensity from WattTime at the time of usage (#302). The new
watttimemodules (aws.WattTimeCarbonIntensityandazure.WattTimeCarbonIntensity) setcarbon_intensityto the average operating emissions rate published by WattTime for the grid region of each cloud region, averaged over the usage period of the line item. They read the FOCUS, CUR and Azure date columns, and need a WattTime account (WATTTIME_USERNAMEandWATTTIME_PASSWORD). Line items that WattTime does not cover keep their previous value. Seemodules.mdfor the scope and configuration. - BoaviztAPI 2.6.0 (#312). The bundled AWS and Azure impact files have been regenerated with BoaviztAPI 2.6.0, which estimates the electricity used by GPUs.
- Ember data refresh (#310). The carbon intensity scripts have been ported to Ember's new releases and the bundled
ember_co2_intensity.csvand NESO monthly figures refreshed. Ember rebuilt its US sub-national dataset and moved it from CO2 to CO2 equivalent, so figures for US regions shift by around 15% with no change in SPRUCE itself.
Breaking changes
- The Accelerators module has been removed (#313). BoaviztAPI 2.6.0 now covers GPU electricity, so the CCF based module, its data file and the two comparison scripts are gone. Custom configurations that reference it need to drop that entry.
Performance
- Enriched rows are materialised by cloning the row's backing array instead of copying field by field, which cuts that step by about a third (#307).
- The Boavizta impacts CSV is parsed once per JVM rather than once per Spark task (#308).
New features
SparkJobhas a new-m/--metricsoption which reports how long each enrichment module spent on rows, logged as a table at the end of the job and visible in the Spark UI accumulators while it runs (#305). Without the flag, a run is unaffected.
Tooling
- New script retrieving both current and discontinued EC2 instance types from the price list catalogue, the per region offerings and the 2015 to 2017 public price lists. It feeds the Boavizta APITester, which now sees 1436 types instead of 1388 (#309).
- The APITester sorts its output before writing it, so regenerated files produce readable diffs.
Other
- New talk resource: SPRUCE at Glasgow 2026.
- Bumped
actions/setup-javafrom 6.0.1 to 6.1.0 (#304). .gitignoretidied up.
Full changelog: 1.4...1.5
1.4
SPRUCE 1.4
⚠️ Changes that affect results
Two fixes and the new carbon intensity data change the output numbers. Expect noticeable differences from 1.3:
- Compute energy is 3.6x higher. Energy from BoaviztAPI was being treated as MJ and converted to kWh, but the API's value is already in kWh, so every compute energy figure was 3.6 times too low. The AWS and Azure static impact files have been regenerated with the fix. (#298)
- Bedrock estimates corrected for some models. The EcoLogits coefficients were generated with an artificially short request latency. For 245 of the 348 models, embodied impacts came out about 5 orders of magnitude too low and energy about 40% too low. Two of them are used for Bedrock: Mistral-7B and Mixtral-8x7B. The coefficients have been regenerated from the current API. (#297)
- Carbon intensity now depends on the year of usage. Ember figures are now available per region and per year from 2022 on. Each line gets the figure for the year it was billed in, or the latest earlier year if that year isn't published yet. (#281, fixes #280)
- Monthly carbon intensity for UK regions. A new
neso.MonthlyCarbonIntensitymodule replaces Ember's yearly UK figure with monthly, regional figures for AWSeu-west-2, Azureuksouth/ukwestand GCPeurope-west2. (#293, fixes #286)
New features
-
neso.MonthlyCarbonIntensitymodule, added to all default configs right afterember.AverageCarbonIntensity:- The source is NESO's half-hourly regional fuel mix (Carbon Intensity API), with each fuel valued at Ember's lifecycle factors.
- Imports are weighted by the actual interconnector flows reported by Elexon.
- The data is generated by
scripts/fetch_neso_carbon_intensity.py.
(#293)
-
spruce_versionoutput column records which version of SPRUCE produced each enriched row. (#291, fixes #285) -
GHG Protocol scopes in the report and dashboard. Emissions are now summarised by scope, and the overview cards are labelled with their scope. (#289, fixes #288)
-
SPRUCE version shown in the report and dashboard. (#296)
Data updates
-
Refreshed the Ember carbon intensity data, and fixed the generation of the CSV:
usgovvirginiais now placed in Virginia.- "Washington, D.C." rows are no longer dropped.
- The script now stops instead of falling back to the national figure for US
(#281)
-
AWS
eu-west-2is now placed in Hayes, west of London. (#293) -
Regenerated the AWS and Azure instance impacts against BoaviztAPI 2.5.0. (#29
Fixes
report.pyno longer runs out of memory on large inputs, because its input i than a table. (#290)- AWS Marketplace charges are excluded from the report and dashboard. (#292)
- Fixed a geocode cache clash and province matching in the water fetch scripts.
Documentation
- Documented BoaviztAPI lifespan and LCA boundaries. (#287)
- Documented that Ember intensity excludes transmission and distribution (T&D) losses and imports. (#295)
- Corrected the
fix_cloud_regions.shusage in the scripts README. (#295) - Documented
MonthlyCarbonIntensityin the module overview and the configuration how-to. (#293) - Smaller documentation images, link fixes, and SEO improvements. (#279)
- Added the Open Source GreenOps talk to the resources, and updated the support section.
Build and dependencies
- Bumped
actions/setup-javafrom 6.0.0 to 6.0.1. (#282) - The NESO fetch script requires
carbonintensity-api0.4.0.
Full changelog: 1.3...1.4
1.3
What's Changed
- Bump actions/setup-java from 4 to 5.6.0 by @dependabot[bot] in #261
- Bump actions/setup-python from 6 to 7 by @dependabot[bot] in #260
- Allow setting the driver memory of the Docker image by @jnioche in #262
- Support fractional GPUs in the AWS Accelerators module by @jnioche in #265
- Refresh the EcoLogits coefficients from the API by @dpol1 in #266
- Estimate LLM inference impacts from Azure Foundry token meters by @dpol1 in #267
- Give every docs page its own title, description and H1 by @jnioche in #268
- Add Open Graph, Twitter card and structured data to the docs by @jnioche in #269
- Migrate Column tests to JUnit 5 so they actually run by @jnioche in #273
- Show cost in dashboard trends by @wessim852 in #272
- Apply PUE and WUE for the year the usage was incurred by @jnioche in #271
- Add embodied emissions to storage by @jnioche in #275
- Cover DocumentDB Elastic, Amazon MQ and ElastiCache by @jnioche in #276
- Drop versioning from the documentation site by @dpol1 in #277
- Bump actions/setup-java from 5.6.0 to 6.0.0 by @dependabot[bot] in #278
New Contributors
- @wessim852 made their first contribution in #272
Full Changelog: 1.2...1.3
1.2
What's Changed
- only rebuild docs site on docs-related changes by @dpol1 in #235
- Generate FOCUS columns for Azure exports by @dpol1 in #241
- Bump actions/checkout from 6 to 7 by @dependabot[bot] in #242
- Add impact equivalence conversions for dashboard overview by @dpol1 in #243
- feat(GPU): compare GPU impacts from BoaviztAPI 2.3.0 with Accelerator by @jonperron in #245
- feat(Azure): support FOCUS 1.0 report format by @jnioche in #247
- feat(AWS): support FOCUS 1.2 report format by @jnioche in #250
- Generate FOCUS-compatible columns for AWS CURs by @jnioche in #251
- Use FOCUS columns in reporting scripts and dashboard by @jnioche in #252
- Handle Azure Date column inferred as DateType by Spark 4 by @jnioche in #255
- Include reporting tools in the Docker image by @jnioche in #256
- Move to Java 21 + Spark 4.2.0 by @jnioche in #259
New Contributors
- @jonperron made their first contribution in #245
Full Changelog: 1.1...1.2
1.1
What's Changed
- Azure: initial modules by @jnioche in #207
- Add PUE/WUE factors for Azure by @jnioche in #216
- Water module loads data for Azure by @jnioche in #219
- Add OperationalEmissions module to Azure workflow by @jnioche in #221
- Add Azure Storage by @dpol1 in #214
- Azure Boavizta module by @jnioche in #223
- unified PUE/WUE module by @jnioche in #224
- Port documentation to Zensical by @jnioche in #226
- Dashboard can cope with input without resource_tags (e.g. anonymised) by @jnioche in #228
- configure versioning for documentation site by @dpol1 in #229
- Spark 4.1.2 by @jnioche in #231
- Bump apache/spark from 4.1.1-java17 to 4.1.2-java17 by @dependabot[bot] in #230
- Replace anonymisation script with Spark job by @jnioche in #233
Full Changelog: 1.0...1.1
1.0
What's Changed
- Add sanitizer script for CURs by @jnioche in #171
- Bump docker/login-action from 3 to 4 by @dependabot[bot] in #172
- Bump docker/metadata-action from 5 to 6 by @dependabot[bot] in #173
- Bump docker/setup-buildx-action from 3 to 4 by @dependabot[bot] in #174
- Bump docker/build-push-action from 6 to 7 by @dependabot[bot] in #175
- Bump docker/setup-qemu-action from 3 to 4 by @dependabot[bot] in #176
- Fix ClassCastException when reading MapType product column on Spark 4.x by @jnioche in #177
- BOAVIZTA Get final energy from API instead of calculating it by @jnioche in #180
- Publish Maven artefacts by @jnioche in #183
- Skip tag selection if user specifies top tag 0 by @jnioche in #184
- Specify entrypoint to simplify the use of the Docker image by @jnioche in #186
- Improvements reports by @jnioche in #188
- Add Ember module for carbon intensity by @jnioche in #187
- Make water data independent from Electricity Maps region codes by @jnioche in #190
- Remove ElectricityMap data and code by @jnioche in #192
- Provider-aware config loading by @jnioche in #193
- Move AWS-specific modules into provider-scoped packages by @jnioche in #194
- Split Boavizta module into provider-neutral and AWS-specific layers by @jnioche in #195
- Generate resources files automatically from the Ecologits API by @jnioche in #196
- BedrockEcologits considering only output tokens #178 by @jnioche in #197
- Bump actions/configure-pages from 5 to 6 by @dependabot[bot] in #200
- Bump actions/upload-pages-artifact from 4 to 5 by @dependabot[bot] in #199
- Bump actions/deploy-pages from 4 to 5 by @dependabot[bot] in #198
- Bump com.github.ben-manes.caffeine:caffeine from 3.2.3 to 3.2.4 by @dependabot[bot] in #203
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.14.0 to 3.15.0 by @dependabot[bot] in #204
- Move report script to reporting by @jnioche in #205
- Add Streamlit dashboard example by @dpol1 in #201
Full Changelog: 0.10...1.0
0.10
What's Changed
- Bump mockito.version from 5.22.0 to 5.23.0 by @dependabot[bot] in #169
- Add Ecologits-based LLM inference energy estimation for AWS Bedrock by @dpol1 in #163
- New Networking module, fixes #135 by @jnioche in #170
Full Changelog: 0.9...0.10
0.9
What's Changed
- Remove CarbonRunner by @jnioche in #133
- Bump org.apache.spark:spark-sql_2.13 from 4.0.1 to 4.1.1 by @dependabot[bot] in #128
- Upgrade Docker parent image to Spark 4.1.1 and align Java version to 17 by @tejas-2232 in #134
- Feature/jacoco coverage by @dpol1 in #137
- Bump docker/login-action from 6862ffc5ab2cdb4405cf318a62a6f4c066e2298b to 3227f5311cb93ffd14d13e65d8cc400d30f4dd8a by @dependabot[bot] in #140
- Bump docker/build-push-action from 9e436ba9f2d7bcd1d038c8e55d039d37896ddc5d to 8c1e8f8e5bf845ba3773a14f3967965548a2341e by @dependabot[bot] in #139
- Bump org.jacoco:jacoco-maven-plugin from 0.8.11 to 0.8.14 by @dependabot[bot] in #141
- test: add lightweight unit coverage for EnrichmentPipeline by @dpol1 in #142
- fix: thread-safety for static sets in Boavizta modules by @dpol1 in #148
- Field index caching by @jnioche in #147
- Bump junit.jupiter.version from 6.0.2 to 6.0.3 by @dependabot[bot] in #150
- optimisation: replace per-module row copying with shared map enrichment by @jnioche in #149
- Fix false-positive in EnrichmentPipelineTest by introducing mock Config with DummyModule by @dpol1 in #151
- Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.4 to 3.5.5 by @dependabot[bot] in #152
- Bump actions/attest-build-provenance from 3 to 4 by @dependabot[bot] in #155
- add power supply and transmission overheads to OperationalEmissions by @dpol1 in #154
- Bump mockito.version from 5.21.0 to 5.22.0 by @dependabot[bot] in #159
- Python based report generator by @jnioche in #158
- Removed RealTimeCloud module by @jnioche in #166
- Estimates for water consumption by @jnioche in #165
- Bump org.apache.maven.plugins:maven-shade-plugin from 3.6.1 to 3.6.2 by @dependabot[bot] in #168
New Contributors
- @tejas-2232 made their first contribution in #134
Full Changelog: 0.8...0.9
0.8
What's Changed
- [DOC] How to run on AWS EMR Serverless, fixes #51 by @jnioche in #117
- Fargate -> Serverless by @jnioche in #121
- Modules not configured correctly in distributed mode by @jnioche in #124
- Bump docker/login-action from 28fdb31ff34708d19615a74d67103ddc2ea9725c to 6862ffc5ab2cdb4405cf318a62a6f4c066e2298b by @dependabot[bot] in #125
- Bump junit.jupiter.version from 6.0.1 to 6.0.2 by @dependabot[bot] in #127
- Normalised column for region by @jnioche in #130
- Fix #109: Make PUE dynamic based on AWS region by @davide954 in #126
New Contributors
- @davide954 made their first contribution in #126
Full Changelog: 0.7...0.8
0.7
What's Changed
- Deps upgrades commons-cli, mockito, caffeine by @jnioche in #92
- junit 6.0.1 by @jnioche in #93
- github actions dependency upgrades by @jnioche in #94
- Bump okhttp.version from 4.12.0 to 5.3.2 by @jnioche in #100
- Bump docker/metadata-action from 8d8c7c12f7b958582a5cb82ba16d5903cb27976a to c299e40c65443455700f0fdfc63efafe5b349051 by @dependabot[bot] in #103
- [DOC] Add example of query to show stats per region, fixes #105 by @jnioche in #106
- Build multi-platform images by @jnioche in #108
- Have a separate module for real time cloud, implements #110 by @jnioche in #111
- Bump mockito.version from 5.20.0 to 5.21.0 by @dependabot[bot] in #114
Full Changelog: 0.6...0.7