Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix output manifests to run with if-check #1036

Merged
merged 7 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,25 @@ initialize:
output:
- yaml
plugins:
"time-sync":
'time-sync':
method: TimeSync
path: "builtin"
config:
# start-time: '2023-12-12T00:00:00.000Z'
# end-time: '2023-12-12T00:01:00.000Z'
# interval: 5
# allow-padding: true
path: 'builtin'
tree:
children:
child:
pipeline:
compute:
- time-sync
inputs:
- timestamp: "2023-12-12T00:00:00.000Z"
- timestamp: '2023-12-12T00:00:00.000Z'
duration: 3
energy-cpu: 0.001
- timestamp: "2023-12-12T00:00:01.000Z"
- timestamp: '2023-12-12T00:00:01.000Z'
duration: 5
energy-cpu: 0.001
- timestamp: "2023-12-12T00:00:06.000Z"
- timestamp: '2023-12-12T00:00:06.000Z'
duration: 7
energy-cpu: 0.001
- timestamp: "2023-12-12T00:00:13.000Z"
- timestamp: '2023-12-12T00:00:13.000Z'
duration: 30
energy-cpu: 0.001
16 changes: 8 additions & 8 deletions manifests/examples/builtins/time-sync/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ initialize:
output:
- yaml
plugins:
"time-sync":
'time-sync':
method: TimeSync
path: "builtin"
path: 'builtin'
config:
start-time: "2023-12-12T00:00:00.000Z"
end-time: "2023-12-12T00:01:00.000Z"
start-time: '2023-12-12T00:00:00.000Z'
end-time: '2023-12-12T00:01:00.000Z'
interval: 5
allow-padding: true
tree:
Expand All @@ -20,15 +20,15 @@ tree:
compute:
- time-sync
inputs:
- timestamp: "2023-12-12T00:00:00.000Z"
- timestamp: '2023-12-12T00:00:00.000Z'
duration: 1
energy-cpu: 0.001
- timestamp: "2023-12-12T00:00:01.000Z"
- timestamp: '2023-12-12T00:00:01.000Z'
duration: 5
energy-cpu: 0.001
- timestamp: "2023-12-12T00:00:06.000Z"
- timestamp: '2023-12-12T00:00:06.000Z'
duration: 7
energy-cpu: 0.001
- timestamp: "2023-12-12T00:00:13.000Z"
- timestamp: '2023-12-12T00:00:13.000Z'
duration: 30
energy-cpu: 0.001
62 changes: 31 additions & 31 deletions manifests/outputs/bugs/aggregation-error-wrong-metric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ initialize:
- 10
- 50
- 100
"y":
'y':
- 0.12
- 0.32
- 0.75
Expand Down Expand Up @@ -83,34 +83,33 @@ initialize:
method: TimeSync
path: builtin
config:
start-time: "2023-12-12T00:00:00.000Z"
end-time: "2023-12-12T00:01:00.000Z"
start-time: '2023-12-12T00:00:00.000Z'
end-time: '2023-12-12T00:01:00.000Z'
interval: 5
allow-padding: true
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/bugs/aggregation-error-wrong-metric.yml -o
manifests/outputs/bugs/aggregation-error-wrong-metric
/Users/manushak/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
/Users/manushak/Documents/Projects/Green-Software/if/src/if-run/index.ts -m
manifests/outputs/bugs/aggregation-error-wrong-metric.yaml
environment:
if-version: 0.4.0
if-version: 0.6.0
os: macOS
os-version: "13.2"
node-version: 18.14.2
date-time: 2024-07-01T19:25:34.759Z (UTC)
os-version: 14.6.1
node-version: 18.20.4
date-time: 2024-10-04T08:38:25.343Z (UTC)
dependencies:
- "@babel/core@7.22.10"
- "@babel/preset-typescript@7.23.3"
- "@commitlint/cli@18.6.0"
- "@commitlint/config-conventional@18.6.0"
- "@grnsft/if-core@0.0.10"
- "@jest/globals@29.7.0"
- "@types/jest@29.5.8"
- "@types/js-yaml@4.0.9"
- "@types/luxon@3.4.2"
- "@types/node@20.9.0"
- '@babel/core@7.22.10'
- '@babel/preset-typescript@7.23.3'
- '@commitlint/cli@18.6.0'
- '@commitlint/config-conventional@18.6.0'
- '@grnsft/if-core@0.0.25'
- '@jest/globals@29.7.0'
- '@types/jest@29.5.8'
- '@types/js-yaml@4.0.9'
- '@types/luxon@3.4.2'
- '@types/node@20.9.0'
- axios-mock-adapter@1.22.0
- axios@1.7.2
- cross-env@7.0.3
Expand All @@ -130,9 +129,10 @@ execution:
- typescript-cubic-spline@1.0.1
- typescript@5.2.2
- winston@3.11.0
- zod@3.22.4
- zod@3.23.8
error: >-
MissingInputDataError: `functional-unit` value is missing from input data or it is not a positive integer
MissingAggregationParamError: Aggregation metric dummy-param is not found in
inputs[0].
tree:
children:
child-1:
Expand Down Expand Up @@ -160,25 +160,25 @@ tree:
vcpus-allocated: 1
vcpus-total: 8
inputs:
- timestamp: "2023-12-12T00:00:00.000Z"
- timestamp: '2023-12-12T00:00:00.000Z'
cloud/instance-type: A1
cloud/region: uk-west
duration: 1
cpu/utilization: 10
requests: 100
- timestamp: "2023-12-12T00:00:01.000Z"
- timestamp: '2023-12-12T00:00:01.000Z'
duration: 5
cpu/utilization: 20
cloud/instance-type: A1
cloud/region: uk-west
requests: 100
- timestamp: "2023-12-12T00:00:06.000Z"
- timestamp: '2023-12-12T00:00:06.000Z'
duration: 7
cpu/utilization: 15
cloud/instance-type: A1
cloud/region: uk-west
requests: 100
- timestamp: "2023-12-12T00:00:13.000Z"
- timestamp: '2023-12-12T00:00:13.000Z'
duration: 30
cloud/instance-type: A1
cloud/region: uk-west
Expand Down Expand Up @@ -209,25 +209,25 @@ tree:
vcpus-allocated: 1
vcpus-total: 8
inputs:
- timestamp: "2023-12-12T00:00:00.000Z"
- timestamp: '2023-12-12T00:00:00.000Z'
duration: 1
cpu/utilization: 30
cloud/instance-type: A1
cloud/region: uk-west
requests: 100
- timestamp: "2023-12-12T00:00:01.000Z"
- timestamp: '2023-12-12T00:00:01.000Z'
duration: 5
cpu/utilization: 28
cloud/instance-type: A1
cloud/region: uk-west
requests: 100
- timestamp: "2023-12-12T00:00:06.000Z"
- timestamp: '2023-12-12T00:00:06.000Z'
duration: 7
cpu/utilization: 40
cloud/instance-type: A1
cloud/region: uk-west
requests: 100
- timestamp: "2023-12-12T00:00:13.000Z"
- timestamp: '2023-12-12T00:00:13.000Z'
duration: 30
cpu/utilization: 33
cloud/instance-type: A1
Expand Down
72 changes: 0 additions & 72 deletions manifests/outputs/bugs/sci-embodied-missing-resources-total.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: sci-embodied
description: >-
failure with `defaults.device/emissions-embodied` being string instead of
number
failure with `vCPUs` being string instead of number
tags: null
initialize:
plugins:
Expand All @@ -11,28 +10,26 @@ initialize:
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/sci-embodied/failure-invalid-default-emission-value.yml
-o
manifests/outputs/plugins/sci-embodied/failure-invalid-default-emission-value
/Users/manushak/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
/Users/manushak/Documents/Projects/Green-Software/if/src/if-run/index.ts -m
manifests/outputs/builtins/sci-embodied/failure-invalid-default-emission-value.yaml
environment:
if-version: 0.4.0
if-version: 0.6.0
os: macOS
os-version: "13.2"
node-version: 18.14.2
date-time: 2024-07-02T20:49:08.280Z (UTC)
os-version: 14.6.1
node-version: 18.20.4
date-time: 2024-10-04T08:59:52.608Z (UTC)
dependencies:
- "@babel/core@7.22.10"
- "@babel/preset-typescript@7.23.3"
- "@commitlint/cli@18.6.0"
- "@commitlint/config-conventional@18.6.0"
- "@grnsft/if-core@0.0.10"
- "@jest/globals@29.7.0"
- "@types/jest@29.5.8"
- "@types/js-yaml@4.0.9"
- "@types/luxon@3.4.2"
- "@types/node@20.9.0"
- '@babel/core@7.22.10'
- '@babel/preset-typescript@7.23.3'
- '@commitlint/cli@18.6.0'
- '@commitlint/config-conventional@18.6.0'
- '@grnsft/if-core@0.0.25'
- '@jest/globals@29.7.0'
- '@types/jest@29.5.8'
- '@types/js-yaml@4.0.9'
- '@types/luxon@3.4.2'
- '@types/node@20.9.0'
- axios-mock-adapter@1.22.0
- axios@1.7.2
- cross-env@7.0.3
Expand All @@ -52,20 +49,19 @@ execution:
- typescript-cubic-spline@1.0.1
- typescript@5.2.2
- winston@3.11.0
- zod@3.22.4
- zod@3.23.8
error: >-
InputValidationError: "device/emissions-embodied" parameter is invalid
number. please provide it as `gco2e` to input. Error code: invalid_union.
InputValidationError: "vCPUs" parameter is expected number, received string
at index 0. Error code: invalid_type.
tree:
children:
child:
pipeline:
compute:
- sci-embodied
defaults:
device/emissions-embodied: fail
vCPUs: fail
time-reserved: 3600
device/expected-lifespan: 94608000
resources-reserved: 1
resources-total: 8
inputs:
Expand Down
Loading