-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
517 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,5 @@ jobs: | |
- name: Run lint | ||
run: npm run lint | ||
|
||
- name: Run tests | ||
- name: Run unit tests | ||
run: npm run test --silent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
name: cloud-metadata | ||
description: cloud/instance-type instance type is not supported in the cloud vendor | ||
tags: | ||
tags: null | ||
initialize: | ||
# outputs: ['yaml'] | ||
outputs: | ||
- yaml | ||
plugins: | ||
cloud-metadata: | ||
path: builtin | ||
|
@@ -12,15 +13,65 @@ initialize: | |
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv | ||
query: | ||
instance-class: cloud/instance-type | ||
output: ['cpu-cores-utilized', 'vcpus-allocated'] | ||
output: | ||
- cpu-cores-utilized | ||
- vcpus-allocated | ||
execution: | ||
status: fail | ||
command: >- | ||
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node | ||
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml | ||
-o | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-invalid-instance-type-1 | ||
environment: | ||
if-version: 0.4.0 | ||
os: macOS | ||
os-version: '13.2' | ||
node-version: 18.14.2 | ||
date-time: 2024-07-04T13:44:58.641Z (UTC) | ||
dependencies: | ||
- '@babel/[email protected]' | ||
- '@babel/[email protected]' | ||
- '@commitlint/[email protected]' | ||
- '@commitlint/[email protected]' | ||
- '@grnsft/[email protected]' | ||
- '@jest/[email protected]' | ||
- '@types/[email protected]' | ||
- '@types/[email protected]' | ||
- '@types/[email protected]' | ||
- '@types/[email protected]' | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
error: >- | ||
QueryDataNotFoundError: One or more of the given query parameters are not | ||
found in the target CSV file column headers. | ||
tree: | ||
children: | ||
child: | ||
pipeline: | ||
- cloud-metadata | ||
config: | ||
config: null | ||
inputs: | ||
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred | ||
- timestamp: 2023-07-06T00:00 | ||
cloud/vendor: aws | ||
cloud/instance-type: m6 | ||
duration: 100 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,22 +21,21 @@ execution: | |
command: >- | ||
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node | ||
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yml | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yaml | ||
-o | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor1 | ||
environment: | ||
if-version: 0.4.0 | ||
os: macOS | ||
os-version: '13.2' | ||
node-version: 18.14.2 | ||
date-time: 2024-07-02T21:20:08.333Z (UTC) | ||
date-time: 2024-07-05T09:07:35.386Z (UTC) | ||
dependencies: | ||
- '@babel/[email protected]' | ||
- '@babel/[email protected]' | ||
- '@commitlint/[email protected]' | ||
- '@commitlint/[email protected]' | ||
- '@grnsft/[email protected]' | ||
|
||
- '@grnsft/[email protected]' | ||
- '@jest/[email protected]' | ||
- '@types/[email protected]' | ||
- '@types/[email protected]' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,21 +20,20 @@ execution: | |
command: >- | ||
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node | ||
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/success.yml -o | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/success | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/success.yaml -o | ||
manifests/outputs/plugins/csv-lookup/cloud-metadata/success1 | ||
environment: | ||
if-version: 0.4.0 | ||
os: macOS | ||
os-version: '13.2' | ||
node-version: 18.14.2 | ||
date-time: 2024-07-02T21:21:45.504Z (UTC) | ||
date-time: 2024-07-05T09:05:09.577Z (UTC) | ||
dependencies: | ||
- '@babel/[email protected]' | ||
- '@babel/[email protected]' | ||
- '@commitlint/[email protected]' | ||
- '@commitlint/[email protected]' | ||
- '@grnsft/[email protected]' | ||
|
||
- '@jest/[email protected]' | ||
- '@types/[email protected]' | ||
- '@types/[email protected]' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.