Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Merge parent into osp trunk #5

Merged
merged 267 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
267 commits
Select commit Hold shift + click to select a range
0335240
Update package.json
Samridhi-98 Apr 4, 2023
98b14c2
changeset: modify version bump for google tagging
4upz Apr 5, 2023
5c2982e
rearrange gcp tag precedence order
4upz Apr 5, 2023
fb436f9
WIP - begin replacing googleapi types with google-cloud package
4upz Apr 5, 2023
9340ca3
[#1104] fixes azure recs
camcash17 Apr 5, 2023
b98fd6d
changeset: azure minor bump
camcash17 Apr 5, 2023
f7dcb39
add documentation for gcp tags
4upz Apr 5, 2023
e8fe392
[#1106] Update emissions factors in mockData.json file to match cloud…
ashutoshkrris Apr 6, 2023
c4c7e56
[#1106] add SkuChange type to test fixture
4upz Apr 6, 2023
f1b1700
[#1111] adds DCU to gcp compute types to calculate dataplex
camcash17 Apr 13, 2023
5627391
patches gcp version
camcash17 Apr 13, 2023
07ee2dd
[#1112] bumps ramda deps
camcash17 Apr 14, 2023
6538633
changeset: patch bumps for package dep updates
camcash17 Apr 14, 2023
d99bb9d
Bump webpack from 5.73.0 to 5.76.3
dependabot[bot] Mar 28, 2023
389503d
Bump @xmldom/xmldom from 0.7.5 to 0.7.8
dependabot[bot] Nov 1, 2022
301b41a
updates mock data and integration tests
camcash17 Apr 18, 2023
b7155df
updates client templates
camcash17 Apr 18, 2023
bcb7742
changest patch bumps
camcash17 Apr 18, 2023
537f037
updates service wrapper with client endpoints from google-cloud/compu…
4upz Apr 19, 2023
dc63c63
Bump loader-utils from 2.0.2 to 2.0.4
dependabot[bot] Nov 15, 2022
7952c87
removes use of googleapis clients from main account
4upz Apr 20, 2023
e089007
updates types and fixtures for service wrapper test based on compute …
4upz Apr 21, 2023
60ac4b5
[#705] Update documentation to indicate no IAM user role needed to ru…
ashutoshkrris Apr 17, 2023
9e04408
[#705] Update documentation to indicate no IAM user role needed to ru…
ashutoshkrris Apr 24, 2023
b2a130d
updates fixtures to be immutable and to be used in recs test
4upz Apr 25, 2023
dbd1beb
remove googleapis dependency
4upz Apr 25, 2023
e0299c2
changeset: Replaces the use of googleapis with separate package clients
4upz Apr 25, 2023
f0ccbdb
temp fix to update demo app data
camcash17 Apr 26, 2023
ab29327
fix: remove cancel in progress for demo app
camcash17 Apr 26, 2023
20fb1a8
remove all demo concurrency
camcash17 Apr 26, 2023
6f35f5a
removes workflow condition to run on releases
camcash17 Apr 26, 2023
b212f0e
[#1127] remove version locks and update azure response structure to l…
4upz May 2, 2023
180ab62
add additional azure region aliases
4upz May 2, 2023
a0f8497
add additional azure region aliases
4upz May 2, 2023
36672ec
add concurrency cancel and trigger back to demo app
4upz May 2, 2023
5b5a0ac
changeset: Updates support to version 9.2 of the @azure/arm-consumpti…
4upz May 2, 2023
b82eacb
[#1127] removes version lock from create-app
4upz May 2, 2023
5e89748
changeset: Removes version locks for azure sdk
4upz May 2, 2023
af2c645
removes redundant mock data script file
camcash17 May 2, 2023
903f3a8
moves google-auth import above ccf imports
4upz May 3, 2023
ac70c98
Merge branch 'trunk' into gcp-refactor
4upz May 3, 2023
1650d9b
update lock file
4upz May 3, 2023
2b8b2ca
Merge pull request #1130 from cloud-carbon-footprint/gcp-refactor
4upz May 3, 2023
31158ff
Version Packages
github-actions[bot] May 3, 2023
166e067
Merge pull request #1095 from cloud-carbon-footprint/changeset-releas…
4upz May 3, 2023
b070bb2
fixes demo app workflow changes
camcash17 May 3, 2023
95b6d14
temp update to demo workflow
camcash17 May 3, 2023
a06a87d
updates mock estimates
camcash17 May 3, 2023
93cf993
updates mock data
camcash17 May 3, 2023
d4643e6
undo's demo app yml change
camcash17 May 3, 2023
7802975
Version Packages
github-actions[bot] May 3, 2023
2b7e3c6
Merge pull request #1131 from cloud-carbon-footprint/changeset-releas…
ccasher May 3, 2023
ae2836d
updates mock data scripts for demo app
camcash17 May 3, 2023
c2fc8a0
removes unused google-cloud depedency from app package
4upz May 3, 2023
1163418
remove script console log
camcash17 May 3, 2023
f1b3065
reverts demo app yml changes
camcash17 May 3, 2023
804eb1c
[#1114] adds documentation for the request splitting and additional p…
4upz May 5, 2023
9bc3ad3
adds date format to documentation
4upz May 9, 2023
47ddb3c
Add Climatiq to list of adopters
gpantelidou May 15, 2023
fcebb63
Update AzureRegions.ts
laellyo May 12, 2023
2eba59b
Update AzureRegions.ts by removing EU region
laellyo May 17, 2023
7fd0e62
updates gcp emissions factors and adds new regions
4upz May 18, 2023
9927fc5
update lookup table snapshots
4upz May 18, 2023
858e02d
update multi-region emissions factors and reduce replication for thos…
4upz May 19, 2023
122a142
update gcp region PUE values
4upz May 19, 2023
42b2359
changeset: Updates emissions factors and PUE constants to latest publ…
4upz May 19, 2023
e0718ce
add ali package
dustleafwjl Mar 13, 2023
df78d3b
add ali config
dustleafwjl Mar 14, 2023
d270016
add ali mock data and carbon intensity map.
dustleafwjl Mar 14, 2023
ef57775
add ali cost and usage service
dustleafwjl Mar 14, 2023
dee8856
add ali get cost class
tw-dean Mar 14, 2023
8538679
add ali config ak and as
tw-dean Mar 14, 2023
e2feaf2
finish get estimates from ali cloud payment
tw-dean Mar 15, 2023
3220bd8
undo talisman check sum
tw-dean Mar 15, 2023
85f9e5c
move call ali sdk to getEstimates
tw-dean Mar 15, 2023
893fd64
add ali calculate row.
dustleafwjl Mar 15, 2023
c8bd11c
add ali calculate compute usage logic.
dustleafwjl Mar 15, 2023
4194a6e
get data from month
tw-dean Mar 16, 2023
3cf6328
set data for ali cloud.
dustleafwjl Mar 16, 2023
51838c5
fix serviceEstimates init in every date
tw-dean Mar 16, 2023
cbde2c8
add gpu calculate logic.
dustleafwjl Mar 16, 2023
eb746d6
add ali region and region emission factor.
dustleafwjl Mar 16, 2023
0c6391c
add get memory footprint estimate
tw-dean Mar 16, 2023
0069165
fix bug no bill continue not break
tw-dean Mar 17, 2023
1883875
add memory calculate
tw-dean Mar 20, 2023
ad1cd3d
add ali embodied emissions logic.
dustleafwjl Mar 20, 2023
5180746
add aliyun regions and modify get usage method.
dustleafwjl Mar 20, 2023
59d5733
add all ecs instance types.
dustleafwjl Mar 21, 2023
15249c0
change memory default zero
tw-dean Mar 21, 2023
30d582e
storage network and known estimate
tw-dean Mar 21, 2023
a5ea541
add ali cost and usage service test.
dustleafwjl Mar 21, 2023
fa6016d
add function compute service.
dustleafwjl Mar 22, 2023
4142c5a
add instance specification mapping when get embodied emissions.
dustleafwjl Mar 24, 2023
a898f4e
Swagger WIP [Melanie Hahn]
May 25, 2023
5864873
Revert the change for adding ali cloud for the pull request.
huahuajiujiu May 29, 2023
d568da2
Fix the test and update the yarn lock.
huahuajiujiu May 29, 2023
d24cc61
Add PITS Global Data Recovery Services to the list of adopters
May 23, 2023
5e6a435
add github link to latest adopter
4upz May 30, 2023
0d20b32
[changset] Common: Adds support for Google Cloud resource tags to con…
4upz Jun 1, 2023
4be98c4
Version Packages
github-actions[bot] Jun 1, 2023
3fd6785
Merge pull request #1146 from cloud-carbon-footprint/changeset-releas…
4upz Jun 1, 2023
2f280fc
adding additional switch case statement
tkennes May 30, 2023
6403a60
updating lockfile
tkennes May 31, 2023
8164d13
updating lockfile
tkennes May 31, 2023
45ee265
fixing some yarn linting issues
tkennes May 31, 2023
25cfccc
fixing some yarn linting issues
tkennes May 31, 2023
0719f22
small fixes
tkennes Jun 2, 2023
63b5178
small fixes
tkennes Jun 2, 2023
dfa4dbb
removing docker compose azure local
tkennes Jun 5, 2023
7f5fd07
adds advisor documentation
camcash17 Jun 5, 2023
c82bf5f
[1022] adds support for chunking azure requests by subscriptions
4upz Jun 6, 2023
946b68f
update env templates
4upz Jun 6, 2023
7688b08
changeset: Updates env templates with new configuration options
4upz Jun 6, 2023
e5ff25e
add mongo static connector and remove per-request connections
4upz Jun 9, 2023
7858f2b
add support for opening and closing enabled mongodb connections to th…
4upz Jun 9, 2023
e640034
add mongodb connection management to cli processes
4upz Jun 9, 2023
8995b8a
update create-app templates
4upz Jun 9, 2023
fedf79c
changeset: API and CLI processes now persist connection to mongodb cl…
4upz Jun 9, 2023
5069d8b
[#1022] add support for specifying list of Azure subscriptions to fetch
4upz Jun 13, 2023
1a5d763
changeset: Adds support for listing Azure subscription IDs to fetch
4upz Jun 13, 2023
c9f02a8
update env templates with azure subscription config
4upz Jun 13, 2023
e29a98c
remove swagger as a root dependency
4upz Jun 13, 2023
e396fff
removes recommendation option schemas
4upz Jun 13, 2023
7096134
[#1022] remove exclusive and synchronous behavior from azure day chun…
4upz Jun 14, 2023
86971b4
[#1022] set chunking of 10 subscriptions as default azure fetch behavior
4upz Jun 14, 2023
2a4c7d5
[#963] separate middleware functions and add comment documentation
4upz Jun 14, 2023
5ac6ddf
[#963] add test directory and tests for swagger
4upz Jun 14, 2023
f44edc2
[#963] removes response specs from common and finishes documentation
4upz Jun 14, 2023
045ef41
changeset: Adds OpenAPI spec documentation and Swagger portal
4upz Jun 14, 2023
af4c412
fix: recommendations now only show values from last 30 days
kevinmonvoisin-reply May 26, 2023
64b6cbc
fix: comma were not showing in recommendation
kevinmonvoisin-reply May 26, 2023
db18d4f
fix: yarn lint
kevinmonvoisin-reply May 26, 2023
2640851
chore(client): yarn lint
Synchroneyes Jun 13, 2023
b572cbf
fix: recommendations now show last 30 days data
Synchroneyes Jun 13, 2023
81bfc51
simplifies emissions data slicing for recommendations page
4upz Jun 19, 2023
fb83ef5
updates tests and recs service hook with new emissions data
4upz Jun 19, 2023
3d7a21f
changeset: Improves recommendations forecast accuracy, and fixes cost…
4upz Jun 19, 2023
6699a64
removes unnecessary json module config and swagger import
4upz Jun 21, 2023
e8e5ba8
add basic test for auth stub
4upz Jun 21, 2023
b6603ad
Resolves merge conflicts with trunk
4upz Jun 21, 2023
caa6267
Merge pull request #1167 from cloud-carbon-footprint/swagger-docs
4upz Jun 21, 2023
e1708e3
[#963] updates create-app template
4upz Jun 21, 2023
4514392
#1014 resolves hanging gcp recommendations issue
camcash17 Jun 22, 2023
4683b86
changeset: patch for gcp
camcash17 Jun 22, 2023
d217e11
changeset: Adds OpenAPI spec documentation and Swagger portal to crea…
4upz Jun 22, 2023
d6c120b
microsite: adds documentation for additional Azure configuration methods
4upz Jun 22, 2023
0aacf0e
update config glossary and env template descriptions
4upz Jun 22, 2023
d8e7399
fix formatting errors in config glossary
4upz Jun 22, 2023
aa46c7a
microsite: add page for running the API and viewing its documentation
4upz Jun 23, 2023
8b0a379
Avoid creating files for commented out variables in .env
mvaltas-tw Jun 28, 2023
197cb18
fix: updates client lib exports
camcash17 Jun 30, 2023
7fc2fe8
fix: update client imports
camcash17 Jun 30, 2023
e942828
changeset: client patch
camcash17 Jun 30, 2023
5eaf24b
Version Packages
github-actions[bot] Jun 30, 2023
7f88be5
Merge pull request #1161 from cloud-carbon-footprint/changeset-releas…
ccasher Jun 30, 2023
6d5202c
Updates docker-compose to handle MONGODB credentials
mvaltas-tw Jun 30, 2023
c723142
Adds MongoDB connection configuration example
mvaltas-tw Jul 5, 2023
3cd1dbd
add glue query for checking athena table schema
4upz Jul 6, 2023
42beda6
[#1170] adds check for cpu column in Athena table before including it…
4upz Jul 6, 2023
7fe7498
[#1170] changeset: Fixes Athena query column error for accounts witho…
4upz Jul 6, 2023
4c7d537
[#1174] fixes recommendation selectors and non-rendering elements in …
4upz Jul 6, 2023
6d4ce5f
changeset: Fixes failing recommendations test
4upz Jul 6, 2023
64eb04a
add ali cloud.
dustleafwjl Jul 10, 2023
3413cea
refactor code.
dustleafwjl Jul 10, 2023
8418475
Fix docker secrets to account for multiple '=' in conf
mvaltas-tw Jul 10, 2023
86b4ba2
Merge pull request #1183 from Thoughtworks-EMPC/trunk
4upz Jul 11, 2023
3017fe9
fix module build error with ali cloud by removing implicity any check
4upz Jul 12, 2023
9589679
adds config for disabling forecast validation, disables for demo app
4upz Jul 17, 2023
5a8ce22
temporarily enable forecast in integration tests
4upz Jul 17, 2023
8b28756
update templates
4upz Jul 17, 2023
dced022
update config glossary and default values
4upz Jul 17, 2023
1b5b112
update create-app templates
4upz Jul 17, 2023
e1a603a
changeset: add support for disabling recommendations forecast date va…
4upz Jul 17, 2023
d36b238
Update AzureRegions.ts
mountainaireman Jul 10, 2023
02e729b
Lint
Jul 10, 2023
c29f88f
Version Packages
github-actions[bot] Jul 17, 2023
c515ba6
changeset: Adds aditional aliases for Azure regions
4upz Jul 17, 2023
2d76146
Merge pull request #1179 from cloud-carbon-footprint/changeset-releas…
4upz Jul 17, 2023
34e774f
disable AliCloud map from UI
4upz Jul 17, 2023
ec9e4c8
temporarily disable updating mock data for the demo app
4upz Jul 17, 2023
6bf5745
Revert "Version Packages"
4upz Jul 17, 2023
59587cb
Merge pull request #1187 from cloud-carbon-footprint/revert-1179-chan…
4upz Jul 17, 2023
879966d
set ali version to initial number
4upz Jul 17, 2023
61b2d21
update demo app workflow to allow for manual trigger
4upz Jul 17, 2023
4eca2ca
re-add mock data script to demo app workflow and remove ali cloud inc…
4upz Jul 17, 2023
6669f14
update checkout action version for demo app workflow
4upz Jul 17, 2023
d9d6dd3
updates mock data with better cost correlation, disables forecast val…
4upz Jul 19, 2023
c9799b2
adds multiplier to mock data costs
4upz Jul 19, 2023
15915d6
increase magnitude of c02e for demo app
4upz Jul 20, 2023
fb4d730
randomizes magnitude for mock data costs
4upz Jul 20, 2023
d3616ff
change unit of request splitting frequency based on groupBy parameter
4upz Jul 20, 2023
f1f3fab
update create-app cli templates
4upz Jul 20, 2023
056c0c8
changeset: Changes seed-cache-file request splitting frequency to be …
4upz Jul 20, 2023
fa933d4
Bump semver from 5.7.1 to 5.7.2 in /microsite
dependabot[bot] Jul 11, 2023
53a1afb
fixes recommendations tests and disables forecast validation for inte…
Aug 2, 2023
8a8482c
changeset: Integration tests now disable forecast validation for test…
Aug 2, 2023
3ed2b84
updates testcafe version and reduces concurrency count
Aug 3, 2023
35b0030
changeset: Migrates to Testcafe version 3, and reduces test concurrency
Aug 3, 2023
a26e380
fix: makes include estimates variable true by default
camcash17 Aug 4, 2023
00d4b21
[1193] Fix issue with concatentation of data from multiple footprint …
mgriffin-scottlogic Aug 3, 2023
4ad7583
[1193] Copy change to create-app folder
mgriffin-scottlogic Aug 3, 2023
cd3da60
[1193] Add changeset
mgriffin-scottlogic Aug 3, 2023
3ce7790
[1193] Fix changeset description
mgriffin-scottlogic Aug 4, 2023
df80cae
Add unsupported usage unit of Azure - 1 GB Hour/1 GB Second
HankLeo Aug 2, 2023
78f3dec
Add the test cases for returning estimates of Azure Memory usage unit…
HankLeo Aug 6, 2023
3817637
updates package description for aliyun
Aug 9, 2023
fc4a1c9
changeset: Fixes package.json description for initial release
Aug 9, 2023
8b52471
Version Packages
github-actions[bot] Aug 9, 2023
43002ac
Merge pull request #1186 from cloud-carbon-footprint/changeset-releas…
4upz Aug 9, 2023
6b98d6a
fixes assertion of INCLUDE_ESTIMATES config value
Aug 14, 2023
bc06b86
changeset: Fixes issue when asserting set values of INCLUDE_ESTIMATES…
Aug 14, 2023
9f976e5
[1205] Export buildTagQuery function to allow for individual tests
mgriffin-scottlogic Aug 15, 2023
bacb3f8
[1205] Remove repeated 'ON' from tag query join
mgriffin-scottlogic Aug 15, 2023
601e950
[1205] Ensure that the key joins reference the correct tag type
mgriffin-scottlogic Aug 15, 2023
72619a2
[1205] Ensure that project labels use correct field name
mgriffin-scottlogic Aug 15, 2023
ff955bd
[1205] Use query columns in the correct order
mgriffin-scottlogic Aug 15, 2023
53812d8
[1205] Add changeset
mgriffin-scottlogic Aug 15, 2023
8ef806a
[#1213] re-initializes blog and updates docusaurus
4upz Aug 23, 2023
a5f2618
enables Ali Cloud estimates within app
4upz Aug 24, 2023
3b71a0d
removes double brackets from shell script conditionals for better env…
4upz Aug 24, 2023
dd98c8c
[changeset] Enables Ali Cloud ECS estimates in the CCF Application
4upz Aug 24, 2023
73d3342
bump testcafe and fix type issue causing tests to hang
4upz Aug 28, 2023
0c575c2
add ali dependency to app package
4upz Aug 28, 2023
faa4e7e
add ali dependency to app package
4upz Aug 28, 2023
a26ac92
temporarily remove checks for implicit any
4upz Aug 28, 2023
4712267
temporarily remove checks for implicit any
4upz Aug 28, 2023
85508c3
disable no implicit any at the root
4upz Aug 28, 2023
7630768
patch bump for common package
camcash17 Aug 4, 2023
9dd4dfd
microsite: adds ariks blog post ✨
camcash17 Sep 1, 2023
d1d70e3
Merge branch 'blog' into trunk
camcash17 Sep 1, 2023
4ea575f
microsite: fixes page break issues and removes welcome post
camcash17 Sep 1, 2023
37479a3
microsite: adds ccf on prem blog
camcash17 Sep 7, 2023
bf900d7
microsite: fix blog title
camcash17 Sep 7, 2023
4e0605c
microsite: adds changes to fix build
camcash17 Sep 7, 2023
f5c5c55
microsite: adds subtitle to description
camcash17 Sep 7, 2023
c87c725
Update 2023-09-07-on-prem-data-collection.md
ccasher Sep 7, 2023
4a33722
[1234]: adds electricity maps config and handling for AWS estimations
camcash17 Sep 12, 2023
33a5ac9
[1234]: updates emissions factor logic to use logger for warnings
camcash17 Sep 12, 2023
4ed3149
[1234]: add electricity map config for gcp
camcash17 Sep 12, 2023
1d3a034
remove integration tests from ci workflow to unblock build
camcash17 Sep 12, 2023
9c26b4f
[1234] fix missing argument in aws compute optimzer
camcash17 Sep 12, 2023
d15d4a9
[1234]: adds electricity maps implementation for azure
camcash17 Sep 12, 2023
0050426
[1234]: adds emissions factor and electricity maps documentation
camcash17 Sep 13, 2023
2749723
create-app - updates cli templates
camcash17 Sep 13, 2023
6ffe749
changeset updates for electricity maps integration
camcash17 Sep 13, 2023
e7c1f76
create app template package.json updates
camcash17 Sep 13, 2023
fb11e65
changeset - create app bump
camcash17 Sep 13, 2023
edcf5af
Version Packages
github-actions[bot] Sep 13, 2023
4e5a17e
Merge pull request #1207 from cloud-carbon-footprint/changeset-releas…
camcash17 Sep 13, 2023
b7f0ff1
updates incorrect variable in update-mock-data script
camcash17 Sep 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file registers ownership for certain parts of the Cloud Carbon Footprint code
# Review from a member of the maintanence team or other designated owner is required for merging pull requests
# The last matching pattern takes precedence
# <https://help.github.com/articles/about-codeowners/>

* @cloud-carbon-footprint/maintainers
/microsite/* @cloud-carbon-footprint/maintainers @ericksod
/*.md @cloud-carbon-footprint/maintainers @ericksod
packages/* @cloud-carbon-footprint/maintainers
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
bash <(curl -s https://codecov.io/bash) -f packages/aws/coverage/* -F aws
bash <(curl -s https://codecov.io/bash) -f packages/gcp/coverage/* -F gcp
bash <(curl -s https://codecov.io/bash) -f packages/azure/coverage/* -F azure
- name: integration tests
run: yarn test:integration
continue-on-error: true # Temporarily allow continue on failure till we've seen the tests consistently pass on CI
# - name: integration tests
# run: yarn test:integration
# continue-on-error: true # Temporarily allow continue on failure till we've seen the tests consistently pass on CI
build:
needs: lint-test
runs-on: ubuntu-latest
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
cancel-in-progress: true
jobs:
deploy-demo-app:
if: github.event.pull_request.head.ref == 'changeset-release/trunk'
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.ref == 'changeset-release/trunk'
runs-on: ubuntu-latest
container:
image: node:16.19-alpine3.17
Expand All @@ -24,7 +24,7 @@ jobs:
steps:
# Fetch and checkout the repo
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
# Run Yarn Install in the Client Package
Expand All @@ -39,6 +39,7 @@ jobs:
REACT_APP_PREVIOUS_YEAR_OF_USAGE: ${{ secrets.REACT_APP_PREVIOUS_YEAR_OF_USAGE }}
REACT_APP_GROUP_BY: ${{ secrets.REACT_APP_GROUP_BY }}
REACT_APP_MINIMAL_DATE_AGE: ${{ secrets.REACT_APP_MINIMAL_DATE_AGE }}
REACT_APP_DISABLE_FORECAST_VALIDATION: ${{ secrets.REACT_APP_DISABLE_FORECAST_VALIDATION }}
run: |
cd packages/client
./create_client_env_file.sh
Expand Down Expand Up @@ -70,7 +71,8 @@ jobs:
mkdir packages/client/stub-server/api
mkdir packages/client/stub-server/api/regions

node scripts/create-client-mock-data.js
# Updates the timestamps and values of the mock data files (usually for the forecast data)
node scripts/create-mock-data.js

# Copy static build files to demo Google Cloud Bucket
gsutil cp -r packages/client/build/* gs://${GOOGLE_DEMO_STORAGE_BUCKET}
Expand Down
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
branch="$(git rev-parse --abbrev-ref HEAD)"
root=$( git diff --pretty="" --name-only --staged -- packages/ | wc -l )

if [[ "$branch" != "changeset-release/trunk" ]]; then
if [ "$branch" != "changeset-release/trunk" ]; then
if [ ! -t 1 ]; then
export TALISMAN_INTERACTIVE="false"
fi

./scripts/copyright_check.sh && ./scripts/branch_warning.sh && $TALISMAN_HOME/talisman_hook_script pre-commit || exit 1
if [[ "$root" -gt "0" ]]; then
if [ "$root" -gt "0" ]; then
echo 'Detecting modified files in packages directory...'
yarn lerna run precommit --stream
fi
Expand Down
44 changes: 36 additions & 8 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ fileignoreconfig:
checksum: bd3ecff05d1290b7f7d0a4ba4267c3f34037b52aa82f13c31e35ca8803103b9b
- filename: docker/nginx.conf
checksum: a4632d785a11f199217d4229a40eba5a38180d9945d96799dc9b5efc6a3bc06e
- filename: microsite/blog/2023-08-23-ccf-on-vm.md
checksum: 84e94d40daf06c50f7b0e26d8d73a300d967279a87612e991e417530bfb8774c
- filename: microsite/docs/ClassifyingUsageTypes.md
checksum: f4b232851337efec90c4a88271cdf4cde2a9d732f0f69824223f1dcf7c6b8aaa
- filename: microsite/docs/ConfigurationOptions/PerformanceConsiderations.md
checksum: f98b207c28550e3f44b27a47ebb0a5553c28318edaaf2f490ba94856a082badb
- filename: microsite/docs/CreatingALookupTable.md
checksum: 71905a04532ef57e9eab56fefd1c1e43dfd48fabb928a044bbb7c5100640fe5c
- filename: microsite/docs/EmbodiedEmissions.md
Expand All @@ -113,22 +117,30 @@ fileignoreconfig:
checksum: 4271fca662d95372f0f1439c4a5f82424a06e2c38790a8806e1031dc74387016
- filename: package.json
checksum: ba58128b0b71af8219a05b5cf27fcad837639fdb85c8846be7ef8248b5124f1c
- filename: packages/ali/src/__tests__/AliCostAndUsageService.test.ts
checksum: 5f7313007ca6a4eae2a608faa11dbb0be97712371703b618e28093138a345363
- filename: packages/ali/src/lib/AliCalculateRow.ts
checksum: 77997e1e88c3fe9bbafbda63d4c1c9b83df439417664cf0d080488b01c8c0c51
- filename: packages/api/.env.template
checksum: ec94dc4f50d599e64405562c74b0ba2d1f49781dba1d0fbc9f5011eeea7e2101
checksum: 024d92688cbbca7a345f9c9ee53e86d377ec6df92ddb746dce90c57b2a5c988f
- filename: packages/api/CHANGELOG.md
checksum: 70538ae254f51f772d64e42ddb9f2c6393fc49969ea0be0cc5c91a6447204032
- filename: packages/api/create_docker_secrets.sh
checksum: c34b49c2f48a01a21f5a86bc2cc76980231d780fb884d5b829dc595c9ba6d9dd
checksum: 61bf83f49efc9578228e8136896e957d0f6a50d62034413f1173e41f10304b83
- filename: packages/api/create_server_env_file.sh
checksum: b6a9b46936e31ca0690ea2fc7080f4c6b5eac0e807c6a71e9dabc13ff8a2d026
- filename: packages/api/estimates.cache-uscs.json
checksum: 0ed3196623ac3ad3ec034c0694c8e0c525549e0b362719808fd21d3ed9d11cba
- filename: packages/api/estimates.cache.test.json
checksum: 47701f39ac93d11ebf30ebc3eb7499971094144b82bbd558aebdaa551d8228f3
- filename: packages/api/mock-estimates.json
checksum: 8e9863c48edd5fb60fd4cb2085f466884b231105bdeb16619fdb72ad63598253
checksum: 1a811c04be292f000abe28d55a30aa3fc37bd4891e1ecfef8a9122e256f87a06
- filename: packages/api/package.json
checksum: 3fd7ec81bfa309f1d01ae0eadb695a418850e671d148715ae4259e14706491f5
- filename: packages/api/src/api.test.ts
checksum: 860db73e7ff2f960dd5de86d49d09d629fdaccba4b1c85724dace7efd5791943
- filename: packages/app/CHANGELOG.md
checksum: 55548743013fe54dcb1b59e301992d92326b18ee9f74a71d1ceff6af13818aeb
- filename: packages/app/src/Cache.ts
checksum: e1ebd94bd8b823c4c3e94a547bceb82d1f37f73c03cdf5d32fd4f9c1effff68e
- filename: packages/app/src/CreateValidRequest.ts
Expand Down Expand Up @@ -170,15 +182,19 @@ fileignoreconfig:
- filename: packages/azure/package.json
checksum: 5059b9e6c08f6482b208ff4a5c3189873868a82cabdd4a089d7efe64eafd004a
- filename: packages/azure/src/__tests__/AzureAccount.test.ts
checksum: aaae306bc2bf8a39f34e31f41e7e7c9fd98321fcefc72aca0e126500446ccbfb
checksum: b1a4309f63a2831c0664290f2ee6c4dbbb7cc3b3eb7ed1288ad0a8abadd3b452
- filename: packages/azure/src/__tests__/AzureCredentialsProvider.test.ts
checksum: 4719d9bfa50789868066ca218f2202a316aaa70904a4152c2a5dfde80f11ba80
- filename: packages/azure/src/__tests__/ConsumptionManagement.test.ts
checksum: 68f9a8c23d08e892511e99356f39c010b8e8959fd012aaa51e999cd51e51181b
- filename: packages/azure/src/application/AzureCredentialsProvider.ts
checksum: 08ea921d8cf6e05dd55183b8c9c338dee64bcb3a77d875c276455f79e3034c4e
- filename: packages/azure/src/lib/ConsumptionManagement.ts
checksum: 42fc6ed4df06fb61f5077f3192d8b8aa8162016621da79f369247fac612afbd6
- filename: packages/cli/.env.template
checksum: 698cfcaab558a76335309ee251a2180312cdf93214c371afe0dc6f8254ccd7b6
checksum: e3d3b374e2680bc5f346eb243c96ec94ca7e08e449a1cbc5e6cf9561490d7082
- filename: packages/cli/CHANGELOG.md
checksum: 21834ba3691c0d05ea8d60ccaae74695a0e7a1f73c762d2692a5e2e2bb7c5c93
- filename: packages/cli/src/CreateLookupTable/createAzureInput.ts
checksum: b5deddd45ffaceb0ff503797a3a6401541821fee39cb8d6a48601c971fce4566
- filename: packages/cli/src/CreateLookupTable/createLookupTable.ts
Expand All @@ -195,6 +211,8 @@ fileignoreconfig:
checksum: 89d6331e5be615cc6caefb8537aab159edaf16ca4f19efaaf38c411b667285a6
- filename: packages/client/create_client_env_file.sh
checksum: 2ebf0978d768edd6423a9f5f3b0f3fcdbe2c484d69152c6125575ff93e9708f4
- filename: packages/client/src/Config.ts
checksum: a1c04f96a9be8e217e535f25a61a5cae1c40933129a05dac81243bb2caa92c60
- filename: packages/client/src/common/FilterBar/FilterBar.tsx
checksum: 0005b5abc9cba50b821c955aa1cc28e9860d4c8748f52c3bf6927eef620500fc
- filename: packages/client/src/common/FilterBar/utils/DropdownConstants.test.ts
Expand Down Expand Up @@ -279,10 +297,16 @@ fileignoreconfig:
checksum: 6c6198c36a6276699d141dd125eb8d8f247f7dc41cc27078332791d50d9a1074
- filename: packages/client/stub-server/footprint.json
checksum: 2a1551ebe105d866d121c17029d53c7466b67e2cfc1c71b13b5894ae5bc06b50
- filename: packages/client/stub-server/mockData.json
checksum: c0e961bc6f9750fb6d304ef1e5650024454d327690a2755da61b755bdf166a85
- filename: packages/client/stub-server/recommendations.json
checksum: fd9afa539a5991cb21416293ae9d17a57005b5bcacdd148fe9f4ce0fd3de145e
- filename: packages/common/src/Config.ts
checksum: 8cde1d40a5a56e3f1454534817d254a7b61baf2d28e185bf0c5093d8320c8b85
- filename: packages/common/src/EmissionsFactors.ts
checksum: e28dbaf55e4a2a02ec43a1adfad5b060774a5dcd1c872b9bb5e28727e26f8de7
- filename: packages/common/src/__tests__/EmissionsFactors.test.ts
checksum: b513f4119cae71648485f3f3d6795f1062f361f45028deaddfa506132a0a49cb
- filename: packages/core/package.json
checksum: c0f3b35fe6ca5f0bb14a34ccda0ed917ed97c03b116190210f4da82628891706
- filename: packages/core/src/CloudConstantsTypes.ts
Expand Down Expand Up @@ -315,10 +339,12 @@ fileignoreconfig:
checksum: 39e68fa8eeb0706e881d900f8cf69d9859131b087b1555a51015faded40f6504
- filename: packages/core/src/unknown/UnknownEstimator.ts
checksum: 4033fa577fb1b42245c0471ce7da72f76713d394370a17695c022eb22ca7c42c
- filename: packages/create-app/CHANGELOG.md
checksum: a64d71c2fc2e45bccba7b7bdb9bcac70825eb78882799e789c130b60cae4558e
- filename: packages/create-app/templates/default-app/packages/api/.env.template
checksum: 6a3a9348d74dd6df5978cc0aa6a2fa0c5b51cb62484735614eb5338ccdb6458e
- filename: packages/create-app/templates/default-app/packages/cli/.env.template
checksum: 7663594e66cc73a1906c4195e8860d3bec17d17ce3a582d2095638702dda9db4
checksum: 5445657c548050959e00d0b6ea0c05551679bf9b4f2bc3859d6f4fbb1501de37
- filename: packages/create-app/templates/default-app/packages/cli/src/GuidedInstall/aws.ts
checksum: 402853f10d9ee56006cea9b63d6ec8d34d6eed506addf89d048d3072069d9f7b
- filename: packages/create-app/templates/default-app/packages/cli/src/GuidedInstall/azure.ts
Expand Down Expand Up @@ -351,12 +377,14 @@ fileignoreconfig:
checksum: 99c4532676af436031037ef8794891a85cc7a6bb306491f7d96339f91c5fccf5
- filename: packages/create-app/templates/default-app/packages/client/src/utils/helpers/transformData.ts
checksum: 0d806eb083f87fba89e6cf56744269e50c76d2fd4a096a30f8ab7d16fcdcb991
- filename: packages/create-app/templates/default-app/packages/client/stub-server/mockData.json
checksum: 9073338cab91e48f6b789c52f415d8559926d791d80aeb2954cb2fb842202a66
- filename: packages/gcp/src/__tests__/BillingExportTable.test.ts
checksum: 806ca071f5f496e5bd682f0474543f9b6e6c7f5d687e8db89cf244371393188f
checksum: 50397c9013f12b8b9cc457ffdeee4e5796edf2175dccc2c3aef7c7016c6fb144
- filename: packages/gcp/src/__tests__/GCPAccount.test.ts
checksum: 26ef0caf65177a4e013ecff94012824cee58ceed48c09b29f7710712084ab9c4
- filename: packages/gcp/src/lib/BillingExportTable.ts
checksum: df8f16310cd2bf983821666d495f5bf1945584851e1242e37ecdf0a652102113
checksum: 96f2b97dfa7265469d3a6958aac504414c2f298bd214364d925b3c0b65efa2a7
- filename: packages/gcp/src/lib/BillingExportTypes.ts
checksum: 27e7319ef9204e0c6e575ddf8bf288d2627fb8542f468ddde86439420be8c93d
- filename: packages/gcp/src/lib/MachineTypes.ts
Expand Down
4 changes: 4 additions & 0 deletions ADOPTERS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
© 2021 Thoughtworks, Inc.

| Organization | Contact (github handle or other) | Description of Use |
|----------------------------------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Thoughtworks](https://www.thoughtworks.com) | green-cloud@thoughtworks.com | Measure and reduce cloud carbon emissions for Thoughtworks. Deployed internally on GCP. Expanding feature set and refining methodology. |
| [OSP](https://www.osp.de/en) | ccf@osp.de | Measure and reduce cloud carbon emissions for OSP. The tool is part of the tool infrastructure of the OSP Sustainable Programming Initiative (SPI). The tool is part of a strategy to become more energy efficient with our cloud projects. |
|[Climatiq](https://www.climatiq.io/) | hello@climatiq.io | Measure the embodied and use-phase cloud emissions of GCP, AZURE, and AWS. |
| | | |
|[PITS Global Data Recovery Services](https://www.pitsdatarecovery.net/) | [@pheianox](https://github.com/pheianox) | Analytics and effective integration with other cloud providers |
18 changes: 17 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ services:
- AZURE_CLIENT_ID
- AZURE_CLIENT_SECRET
- AZURE_TENANT_ID
- MONGODB_URI
- MONGODB_CREDENTIALS
# uncomment to define this as the certificate file for your MongoDB
#- x509-cert-mongodb.pem
environment:
# set the CACHE_MODE to MONGODB to use MongoDB
- CACHE_MODE=LOCAL
- AWS_USE_BILLING_DATA=true
- AWS_TARGET_ACCOUNT_ROLE_NAME=/run/secrets/AWS_TARGET_ACCOUNT_ROLE_NAME
- AWS_ATHENA_DB_NAME=/run/secrets/AWS_ATHENA_DB_NAME
Expand All @@ -49,7 +55,10 @@ services:
- AZURE_CLIENT_ID=/run/secrets/AZURE_CLIENT_ID
- AZURE_CLIENT_SECRET=/run/secrets/AZURE_CLIENT_SECRET
- AZURE_TENANT_ID=/run/secrets/AZURE_TENANT_ID

# uncomment to enable MongoDB
#- MONGODB_URI=/run/secrets/MONGODB_URI
#- MONGODB_CREDENTIALS=/run/secrets/MONGODB_CREDENTIALS
#- x509-cert-mongodb.pem=/run/secrets/x509-cert-mongodb.pem
secrets:
AWS_TARGET_ACCOUNT_ROLE_NAME:
file: ~/.docker/secrets/AWS_TARGET_ACCOUNT_ROLE_NAME
Expand Down Expand Up @@ -77,3 +86,10 @@ secrets:
file: ~/.docker/secrets/AZURE_CLIENT_SECRET
AZURE_TENANT_ID:
file: ~/.docker/secrets/AZURE_TENANT_ID
MONGODB_URI:
file: ~/.docker/secrets/MONGODB_URI
MONGODB_CREDENTIALS:
file: ~/.docker/secrets/MONGODB_CREDENTIALS
# uncomment to refer to your MongoDB cert file
#x509-cert-mongodb.pem:
# file: ~/.docker/secrets/x509-cert-mongodb.pem
3 changes: 3 additions & 0 deletions footprint-test.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET http://127.0.0.1:4000/api/footprint?start=2022-07-01&end=2022-07-02&ignoreCache=true&groupBy=day&limit=1000&skip=0

Accept: application/json, text/plain, */*
Loading
Loading