@grnsft/if 0.5.0-beta.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/build/check.js +14 -4
  2. package/build/config/strings.d.ts +4 -0
  3. package/build/config/strings.js +7 -3
  4. package/build/util/debug-logger.js +8 -7
  5. package/build/util/helpers.d.ts +1 -1
  6. package/build/util/helpers.js +3 -2
  7. package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +27 -0
  8. package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/failure-missing-column.yml +1 -2
  9. package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/failure-missing-output.yml +1 -2
  10. package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/success-renaming.yml +1 -2
  11. package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/success.yml +1 -2
  12. package/manifests/{plugins → examples/builtins}/exponent/success.yml +1 -2
  13. package/manifests/{plugins → examples/builtins}/groupby/success.yml +1 -1
  14. package/manifests/{plugins → examples/builtins}/interpolation/success.yml +0 -1
  15. package/manifests/{plugins → examples/builtins}/subtract/success.yml +1 -2
  16. package/manifests/examples/{generics.yml → pipelines/generics.yml} +1 -0
  17. package/manifests/examples/{instance-metadata.yml → pipelines/instance-metadata.yml} +4 -4
  18. package/manifests/examples/{pipeline-with-aggregate.yml → pipelines/pipeline-with-aggregate.yml} +1 -1
  19. package/manifests/outputs/bugs/aggregation-error-wrong-metric.yaml +243 -0
  20. package/manifests/outputs/bugs/initialize-error-no-config.yaml +78 -0
  21. package/manifests/outputs/bugs/initialize-error-no-path.yaml +91 -0
  22. package/manifests/outputs/bugs/initialize-error-no-plugins.yaml +74 -0
  23. package/manifests/outputs/bugs/input-error-missing-duration.yaml +84 -0
  24. package/manifests/outputs/bugs/mock-observations-failure-duration-is-zero.yaml +81 -0
  25. package/manifests/outputs/bugs/pipeline-error-naming-mismatch.yaml +91 -0
  26. package/manifests/outputs/bugs/pipeline-error-uninitialized-plugin.yaml +92 -0
  27. package/manifests/outputs/bugs/pipeline-ordering-error.yaml +155 -0
  28. package/manifests/outputs/bugs/sci-embodied-missing-resources-total.yaml +73 -0
  29. package/manifests/outputs/divide.yaml +93 -0
  30. package/manifests/outputs/features/aggregate-failure-invalid-metrics.yaml +101 -0
  31. package/manifests/outputs/features/aggregate-failure-missing-metric-in-inputs.yaml +100 -0
  32. package/manifests/outputs/features/aggregate-horizontal.yaml +128 -0
  33. package/manifests/outputs/features/aggregate-vertical.yaml +151 -0
  34. package/manifests/outputs/features/aggregate.yaml +155 -0
  35. package/manifests/outputs/pipelines/cloud-metadata-divide.yaml +95 -0
  36. package/manifests/outputs/pipelines/mock-obs-group-by-cloud-meta.yaml +645 -0
  37. package/manifests/outputs/pipelines/mock-obs-groupby.yaml +178 -0
  38. package/manifests/outputs/pipelines/mock-obs-time-sync.yaml +350 -0
  39. package/manifests/outputs/plugins/coefficient/failure-invalid-config-input-param.yaml +73 -0
  40. package/manifests/outputs/plugins/coefficient/failure-output-param-is-null.yaml +73 -0
  41. package/manifests/outputs/plugins/coefficient/success.yaml +75 -0
  42. package/manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +27 -0
  43. package/manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yaml +77 -0
  44. package/manifests/outputs/plugins/csv-lookup/cloud-metadata/success.yaml +82 -0
  45. package/manifests/outputs/plugins/csv-lookup/region-metadata/failure-missing-column.yaml +76 -0
  46. package/manifests/outputs/plugins/csv-lookup/region-metadata/failure-missing-output.yaml +75 -0
  47. package/manifests/outputs/plugins/csv-lookup/region-metadata/success-renaming.yaml +80 -0
  48. package/manifests/outputs/plugins/csv-lookup/region-metadata/success.yaml +92 -0
  49. package/manifests/outputs/plugins/csv-lookup/tdp-finder/failure-missing-input-param.yaml +74 -0
  50. package/manifests/outputs/plugins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yaml +75 -0
  51. package/manifests/outputs/plugins/csv-lookup/tdp-finder/success.yaml +76 -0
  52. package/manifests/outputs/plugins/divide/failure-invalid-config-denominator.yaml +73 -0
  53. package/manifests/outputs/plugins/divide/failure-missing-numerator.yaml +77 -0
  54. package/manifests/outputs/plugins/divide/success-denominator-equal-zero.yaml +95 -0
  55. package/manifests/outputs/plugins/divide/success.yaml +95 -0
  56. package/manifests/outputs/plugins/exponent/success.yaml +77 -0
  57. package/manifests/outputs/plugins/groupby/failure-invalid-config-group.yaml +96 -0
  58. package/manifests/outputs/plugins/groupby/failure-missing-cloud-instance-type.yaml +95 -0
  59. package/manifests/outputs/plugins/groupby/success.yaml +101 -0
  60. package/manifests/outputs/plugins/interpolation/interpolation.yaml +83 -0
  61. package/manifests/outputs/plugins/interpolation/success.yaml +83 -0
  62. package/manifests/outputs/plugins/mock-observations/failure-invalid-config-cpu-range.yaml +86 -0
  63. package/manifests/outputs/plugins/mock-observations/failure-invalid-memory-utilization-range.yaml +84 -0
  64. package/manifests/outputs/plugins/mock-observations/failure-missing-timestamp-from-param.yaml +83 -0
  65. package/manifests/outputs/plugins/mock-observations/success.yaml +220 -0
  66. package/manifests/outputs/plugins/multiply/failure-input-parameter-is-missing.yaml +75 -0
  67. package/manifests/outputs/plugins/multiply/success-with-multiple-inputs.yaml +96 -0
  68. package/manifests/outputs/plugins/multiply/success.yaml +78 -0
  69. package/manifests/outputs/plugins/regex/failure-missing-input-param.yaml +75 -0
  70. package/manifests/outputs/plugins/regex/failure-not-matching-with-regex.yaml +76 -0
  71. package/manifests/outputs/plugins/regex/success.yaml +81 -0
  72. package/manifests/outputs/plugins/sci/failure-invalid-config-value.yaml +72 -0
  73. package/manifests/outputs/plugins/sci/failure-missing-input-param.yaml +72 -0
  74. package/manifests/outputs/plugins/sci/success.yml.yaml +80 -0
  75. package/manifests/outputs/plugins/sci-embodied/failure-invalid-default-emission-value.yaml +75 -0
  76. package/manifests/outputs/plugins/sci-embodied/failure-missing-expected-lifespan.yaml +71 -0
  77. package/manifests/outputs/plugins/sci-embodied/success.yaml +78 -0
  78. package/manifests/outputs/plugins/shell/failure-invalid-command.yaml +70 -0
  79. package/manifests/outputs/plugins/shell/success.yaml +68 -0
  80. package/manifests/outputs/plugins/subtract/success.yaml +78 -0
  81. package/manifests/outputs/plugins/sum/failure-missing-input-param.yaml +75 -0
  82. package/manifests/outputs/plugins/sum/failure-missing-output-param.yaml +78 -0
  83. package/manifests/outputs/plugins/sum/success.yaml +78 -0
  84. package/manifests/outputs/plugins/time-sync/failure-config-start-later-end.yaml +82 -0
  85. package/manifests/outputs/plugins/time-sync/failure-missing-global-config.yaml +78 -0
  86. package/manifests/outputs/plugins/time-sync/success.yaml +119 -0
  87. package/package.json +1 -1
  88. package/manifests/bugs/aggregation-error-wrong-metric.yml +0 -178
  89. package/manifests/bugs/azure-importer-ignoring-defaults.yml +0 -64
  90. package/manifests/bugs/azure-importer-incorrect-calculation.yml +0 -59
  91. package/manifests/bugs/initialize-error-no-config.yml +0 -26
  92. package/manifests/bugs/initialize-error-no-path.yml +0 -32
  93. package/manifests/bugs/initialize-error-no-plugins.yml +0 -23
  94. package/manifests/bugs/input-error-missing-duration.yml +0 -25
  95. package/manifests/bugs/mock-observations-failure-duration-is-zero.yml +0 -34
  96. package/manifests/bugs/pipeline-error-naming-mismatch.yml +0 -32
  97. package/manifests/bugs/pipeline-error-uninitialized-plugin.yml +0 -33
  98. package/manifests/bugs/pipeline-ordering-error.yml +0 -91
  99. package/manifests/bugs/sci-embodied-missing-resources-total.yml +0 -23
  100. package/manifests/examples/copy.yaml +0 -20
  101. package/manifests/examples/mock-cpu-util-to-carbon.yml +0 -76
  102. package/manifests/examples/region-metadata.yml +0 -26
  103. package/manifests/examples/tdp-finder.yml +0 -23
  104. package/manifests/features/aggregate-failure-invalid-metrics.yml +0 -49
  105. package/manifests/features/aggregate-failure-missing-metric-in-inputs.yml +0 -49
  106. package/manifests/features/aggregate-horizontal.yml +0 -50
  107. package/manifests/features/aggregate-vertical.yml +0 -50
  108. package/manifests/features/aggregate.yml +0 -50
  109. package/manifests/integrations/cloud-metadata-divide.yml +0 -37
  110. package/manifests/integrations/instance-metadata/failure-invalid-instance-type.yaml +0 -33
  111. package/manifests/integrations/instance-metadata/failure-invalid-provider.yaml +0 -33
  112. package/manifests/integrations/instance-metadata/failure-missing-queried-input.yml +0 -33
  113. package/manifests/integrations/instance-metadata/success.yml +0 -33
  114. package/manifests/integrations/mock-obs-group-by-cloud-meta.yml +0 -57
  115. package/manifests/integrations/mock-obs-groupby.yml +0 -39
  116. package/manifests/integrations/mock-obs-time-sync.yml +0 -110
  117. /package/manifests/{plugins → examples/builtins}/coefficient/failure-invalid-config-input-param.yml +0 -0
  118. /package/manifests/{plugins → examples/builtins}/coefficient/failure-output-param-is-null.yaml +0 -0
  119. /package/manifests/{plugins → examples/builtins}/coefficient/success.yml +0 -0
  120. /package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +0 -0
  121. /package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yml +0 -0
  122. /package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/success.yml +0 -0
  123. /package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/failure-missing-input-param.yml +0 -0
  124. /package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yml +0 -0
  125. /package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/success.yml +0 -0
  126. /package/manifests/{plugins → examples/builtins}/divide/failure-denominator-equal-zero.yml +0 -0
  127. /package/manifests/{plugins → examples/builtins}/divide/failure-invalid-config-denominator.yml +0 -0
  128. /package/manifests/{plugins → examples/builtins}/divide/failure-missing-numerator.yml +0 -0
  129. /package/manifests/{plugins → examples/builtins}/divide/success.yml +0 -0
  130. /package/manifests/{plugins → examples/builtins}/groupby/failure-invalid-config-group.yml +0 -0
  131. /package/manifests/{plugins → examples/builtins}/groupby/failure-missing-cloud-instance-type.yml +0 -0
  132. /package/manifests/{plugins → examples/builtins}/interpolation/interpolation.yml +0 -0
  133. /package/manifests/{plugins → examples/builtins}/mock-observations/failure-invalid-config-cpu-range.yml +0 -0
  134. /package/manifests/{plugins → examples/builtins}/mock-observations/failure-invalid-memory-utilization-range.yml +0 -0
  135. /package/manifests/{plugins → examples/builtins}/mock-observations/failure-missing-timestamp-from-param.yml +0 -0
  136. /package/manifests/{plugins → examples/builtins}/mock-observations/success.yml +0 -0
  137. /package/manifests/{plugins → examples/builtins}/multiply/failure-input-parameter-is-missing.yml +0 -0
  138. /package/manifests/{plugins → examples/builtins}/multiply/success-with-multiple-inputs.yml +0 -0
  139. /package/manifests/{plugins → examples/builtins}/multiply/success.yml +0 -0
  140. /package/manifests/{plugins → examples/builtins}/regex/failure-missing-input-param.yml +0 -0
  141. /package/manifests/{plugins → examples/builtins}/regex/failure-not-matching-with-regex.yml +0 -0
  142. /package/manifests/{plugins → examples/builtins}/regex/success.yml +0 -0
  143. /package/manifests/{plugins → examples/builtins}/sci/failure-invalid-config-value.yml +0 -0
  144. /package/manifests/{plugins → examples/builtins}/sci/failure-missing-input-param.yml +0 -0
  145. /package/manifests/{plugins → examples/builtins}/sci/success.yml +0 -0
  146. /package/manifests/{plugins → examples/builtins}/sci-embodied/failure-invalid-default-emission-value.yml +0 -0
  147. /package/manifests/{plugins → examples/builtins}/sci-embodied/failure-missing-expected-lifespan.yml +0 -0
  148. /package/manifests/{plugins → examples/builtins}/sci-embodied/success.yml +0 -0
  149. /package/manifests/{plugins → examples/builtins}/shell/failure-invalid-command.yml +0 -0
  150. /package/manifests/{plugins → examples/builtins}/shell/success.yml +0 -0
  151. /package/manifests/{plugins → examples/builtins}/sum/failure-missing-input-param.yml +0 -0
  152. /package/manifests/{plugins → examples/builtins}/sum/failure-missing-output-param.yml +0 -0
  153. /package/manifests/{plugins → examples/builtins}/sum/success.yml +0 -0
  154. /package/manifests/{plugins → examples/builtins}/time-sync/failure-config-start-later-end.yml +0 -0
  155. /package/manifests/{plugins → examples/builtins}/time-sync/failure-missing-global-config.yml +0 -0
  156. /package/manifests/{plugins → examples/builtins}/time-sync/success.yml +0 -0
  157. /package/manifests/examples/{nesting.yml → pipelines/nesting.yml} +0 -0
  158. /package/manifests/examples/{pipeline-teads-sci.yml → pipelines/pipeline-teads-sci.yml} +0 -0
  159. /package/manifests/examples/{pipeline-with-mocks.yml → pipelines/pipeline-with-mocks.yml} +0 -0
  160. /package/manifests/examples/{sci.yml → pipelines/sci.yml} +0 -0
  161. /package/manifests/examples/{teads-curve.yml → pipelines/teads-curve.yml} +0 -0
  162. /package/manifests/examples/{zeros.yaml → pipelines/zeros.yml} +0 -0
  163. /package/manifests/{plugins → outputs/plugins}/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +0 -0
@@ -0,0 +1,91 @@
1
+ name: pipeline-error-naming-mismatch
2
+ description: >-
3
+ a negative test case that fails due to the plugin name in the pipeline not
4
+ matching the name given in initialize
5
+ tags: null
6
+ initialize:
7
+ plugins:
8
+ interpolate:
9
+ method: Interpolation
10
+ path: builtin
11
+ global-config:
12
+ method: linear
13
+ x:
14
+ - 0
15
+ - 10
16
+ - 50
17
+ - 100
18
+ 'y':
19
+ - 0.12
20
+ - 0.32
21
+ - 0.75
22
+ - 1.02
23
+ input-parameter: cpu/utilization
24
+ output-parameter: cpu-factor
25
+ outputs:
26
+ - yaml
27
+ execution:
28
+ status: fail
29
+ command: >-
30
+ /Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
31
+ /Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
32
+ manifests/outputs/bugs/pipeline-error-naming-mismatch.yml -o
33
+ manifests/outputs/bugs/pipeline-error-naming-mismatch
34
+ environment:
35
+ if-version: 0.4.0
36
+ os: macOS
37
+ os-version: '13.2'
38
+ node-version: 18.14.2
39
+ date-time: 2024-07-01T20:06:51.254Z (UTC)
40
+ dependencies:
41
+ - '@babel/core@7.22.10'
42
+ - '@babel/preset-typescript@7.23.3'
43
+ - '@commitlint/cli@18.6.0'
44
+ - '@commitlint/config-conventional@18.6.0'
45
+ - '@grnsft/if-core@0.0.10'
46
+
47
+ - '@jest/globals@29.7.0'
48
+ - '@types/jest@29.5.8'
49
+ - '@types/js-yaml@4.0.9'
50
+ - '@types/luxon@3.4.2'
51
+ - '@types/node@20.9.0'
52
+ - axios-mock-adapter@1.22.0
53
+ - axios@1.7.2
54
+ - cross-env@7.0.3
55
+ - csv-parse@5.5.6
56
+ - csv-stringify@6.4.6
57
+ - fixpack@4.0.0
58
+ - gts@5.2.0
59
+ - husky@8.0.3
60
+ - jest@29.7.0
61
+ - js-yaml@4.1.0
62
+ - lint-staged@15.2.2
63
+ - luxon@3.4.4
64
+ - release-it@16.3.0
65
+ - rimraf@5.0.5
66
+ - ts-command-line-args@2.5.1
67
+ - ts-jest@29.1.1
68
+ - typescript-cubic-spline@1.0.1
69
+ - typescript@5.2.2
70
+ - winston@3.11.0
71
+ - zod@3.22.4
72
+ error: >-
73
+ PluginInitializationError: Not initalized plugin: wrong-name. Check if
74
+ wrong-name is in 'manifest.initalize.plugins'.
75
+ tree:
76
+ children:
77
+ child-0:
78
+ defaults:
79
+ cpu/thermal-design-power: 100
80
+ pipeline:
81
+ - wrong-name
82
+ inputs:
83
+ - timestamp: 2023-07-06T00:00
84
+ duration: 1
85
+ cpu/utilization: 20
86
+ - timestamp: 2023-07-06T00:01
87
+ duration: 1
88
+ cpu/utilization: 80
89
+ - timestamp: 2023-07-06T00:02
90
+ duration: 1
91
+ cpu/utilization: 20
@@ -0,0 +1,92 @@
1
+ name: pipeline-uninitialized-plugin-error
2
+ description: >-
3
+ a negative test case that fails due to an uninitialized plugin being invoked
4
+ in a pipeline
5
+ tags: null
6
+ initialize:
7
+ outputs:
8
+ - yaml
9
+ plugins:
10
+ interpolate:
11
+ method: Interpolation
12
+ path: builtin
13
+ global-config:
14
+ method: linear
15
+ x:
16
+ - 0
17
+ - 10
18
+ - 50
19
+ - 100
20
+ 'y':
21
+ - 0.12
22
+ - 0.32
23
+ - 0.75
24
+ - 1.02
25
+ input-parameter: cpu/utilization
26
+ output-parameter: cpu-factor
27
+ execution:
28
+ status: fail
29
+ command: >-
30
+ /Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
31
+ /Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
32
+ manifests/outputs/bugs/pipeline-error-uninitialized-plugin.yml -o
33
+ manifests/outputs/bugs/pipeline-error-uninitialized-plugin
34
+ environment:
35
+ if-version: 0.4.0
36
+ os: macOS
37
+ os-version: '13.2'
38
+ node-version: 18.14.2
39
+ date-time: 2024-07-01T20:08:51.260Z (UTC)
40
+ dependencies:
41
+ - '@babel/core@7.22.10'
42
+ - '@babel/preset-typescript@7.23.3'
43
+ - '@commitlint/cli@18.6.0'
44
+ - '@commitlint/config-conventional@18.6.0'
45
+ - '@grnsft/if-core@0.0.10'
46
+
47
+ - '@jest/globals@29.7.0'
48
+ - '@types/jest@29.5.8'
49
+ - '@types/js-yaml@4.0.9'
50
+ - '@types/luxon@3.4.2'
51
+ - '@types/node@20.9.0'
52
+ - axios-mock-adapter@1.22.0
53
+ - axios@1.7.2
54
+ - cross-env@7.0.3
55
+ - csv-parse@5.5.6
56
+ - csv-stringify@6.4.6
57
+ - fixpack@4.0.0
58
+ - gts@5.2.0
59
+ - husky@8.0.3
60
+ - jest@29.7.0
61
+ - js-yaml@4.1.0
62
+ - lint-staged@15.2.2
63
+ - luxon@3.4.4
64
+ - release-it@16.3.0
65
+ - rimraf@5.0.5
66
+ - ts-command-line-args@2.5.1
67
+ - ts-jest@29.1.1
68
+ - typescript-cubic-spline@1.0.1
69
+ - typescript@5.2.2
70
+ - winston@3.11.0
71
+ - zod@3.22.4
72
+ error: >-
73
+ PluginInitializationError: Not initalized plugin: multiply. Check if
74
+ multiply is in 'manifest.initalize.plugins'.
75
+ tree:
76
+ children:
77
+ child-0:
78
+ defaults:
79
+ cpu/thermal-design-power: 100
80
+ pipeline:
81
+ - interpolate
82
+ - multiply
83
+ inputs:
84
+ - timestamp: 2023-07-06T00:00
85
+ duration: 1
86
+ cpu/utilization: 20
87
+ - timestamp: 2023-07-06T00:01
88
+ duration: 1
89
+ cpu/utilization: 80
90
+ - timestamp: 2023-07-06T00:02
91
+ duration: 1
92
+ cpu/utilization: 20
@@ -0,0 +1,155 @@
1
+ name: pipeline-ordering-error
2
+ description: >-
3
+ a negative test case that fails because sci-o is invoked too early in the
4
+ pipeline (before its inputs are generated)
5
+ tags: null
6
+ initialize:
7
+ outputs:
8
+ - yaml
9
+ plugins:
10
+ interpolate:
11
+ method: Interpolation
12
+ path: builtin
13
+ global-config:
14
+ method: linear
15
+ x:
16
+ - 0
17
+ - 10
18
+ - 50
19
+ - 100
20
+ 'y':
21
+ - 0.12
22
+ - 0.32
23
+ - 0.75
24
+ - 1.02
25
+ input-parameter: cpu/utilization
26
+ output-parameter: cpu-factor
27
+ cpu-factor-to-wattage:
28
+ method: Multiply
29
+ path: builtin
30
+ global-config:
31
+ input-parameters:
32
+ - cpu-factor
33
+ - cpu/thermal-design-power
34
+ output-parameter: cpu-wattage
35
+ wattage-times-duration:
36
+ method: Multiply
37
+ path: builtin
38
+ global-config:
39
+ input-parameters:
40
+ - cpu-wattage
41
+ - duration
42
+ output-parameter: cpu-wattage-times-duration
43
+ wattage-to-energy-kwh:
44
+ method: Divide
45
+ path: builtin
46
+ global-config:
47
+ numerator: cpu-wattage-times-duration
48
+ denominator: 3600000
49
+ output: cpu-energy-raw
50
+ calculate-vcpu-ratio:
51
+ method: Divide
52
+ path: builtin
53
+ global-config:
54
+ numerator: vcpus-total
55
+ denominator: vcpus-allocated
56
+ output: vcpu-ratio
57
+ correct-cpu-energy-for-vcpu-ratio:
58
+ method: Divide
59
+ path: builtin
60
+ global-config:
61
+ numerator: cpu-energy-raw
62
+ denominator: vcpu-ratio
63
+ output: cpu-energy-kwh
64
+ execution:
65
+ status: fail
66
+ command: >-
67
+ /Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
68
+ /Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
69
+ manifests/outputs/bugs/pipeline-ordering-error.yml -o
70
+ manifests/outputs/bugs/pipeline-ordering-error
71
+ environment:
72
+ if-version: 0.4.0
73
+ os: macOS
74
+ os-version: '13.2'
75
+ node-version: 18.14.2
76
+ date-time: 2024-07-01T20:14:29.109Z (UTC)
77
+ dependencies:
78
+ - '@babel/core@7.22.10'
79
+ - '@babel/preset-typescript@7.23.3'
80
+ - '@commitlint/cli@18.6.0'
81
+ - '@commitlint/config-conventional@18.6.0'
82
+ - '@grnsft/if-core@0.0.10'
83
+
84
+ - '@jest/globals@29.7.0'
85
+ - '@types/jest@29.5.8'
86
+ - '@types/js-yaml@4.0.9'
87
+ - '@types/luxon@3.4.2'
88
+ - '@types/node@20.9.0'
89
+ - axios-mock-adapter@1.22.0
90
+ - axios@1.7.2
91
+ - cross-env@7.0.3
92
+ - csv-parse@5.5.6
93
+ - csv-stringify@6.4.6
94
+ - fixpack@4.0.0
95
+ - gts@5.2.0
96
+ - husky@8.0.3
97
+ - jest@29.7.0
98
+ - js-yaml@4.1.0
99
+ - lint-staged@15.2.2
100
+ - luxon@3.4.4
101
+ - release-it@16.3.0
102
+ - rimraf@5.0.5
103
+ - ts-command-line-args@2.5.1
104
+ - ts-jest@29.1.1
105
+ - typescript-cubic-spline@1.0.1
106
+ - typescript@5.2.2
107
+ - winston@3.11.0
108
+ - zod@3.22.4
109
+ error: >-
110
+ InputValidationError: "cpu-energy-raw" parameter is required. Error code:
111
+ invalid_type.
112
+ tree:
113
+ children:
114
+ child-1:
115
+ pipeline:
116
+ - interpolate
117
+ - correct-cpu-energy-for-vcpu-ratio
118
+ - calculate-vcpu-ratio
119
+ - cpu-factor-to-wattage
120
+ - wattage-times-duration
121
+ - wattage-to-energy-kwh
122
+ config: null
123
+ defaults:
124
+ cpu/thermal-design-power: 100
125
+ grid/carbon-intensity: 800
126
+ device/emissions-embodied: 1533.12
127
+ time-reserved: 3600
128
+ device/expected-lifespan: 94608000
129
+ vcpus-allocated: 1
130
+ vcpus-total: 8
131
+ inputs:
132
+ - timestamp: '2023-12-12T00:00:00.000Z'
133
+ cloud/instance-type: A1
134
+ cloud/region: uk-west
135
+ duration: 1
136
+ cpu/utilization: 50
137
+ network/energy: 0.000001
138
+ - timestamp: '2023-12-12T00:00:01.000Z'
139
+ duration: 5
140
+ cpu/utilization: 20
141
+ cloud/instance-type: A1
142
+ cloud/region: uk-west
143
+ network/energy: 0.000001
144
+ - timestamp: '2023-12-12T00:00:06.000Z'
145
+ duration: 7
146
+ cpu/utilization: 15
147
+ cloud/instance-type: A1
148
+ cloud/region: uk-west
149
+ network/energy: 0.000001
150
+ - timestamp: '2023-12-12T00:00:13.000Z'
151
+ duration: 30
152
+ cloud/instance-type: A1
153
+ cloud/region: uk-west
154
+ cpu/utilization: 15
155
+ network/energy: 0.000001
@@ -0,0 +1,73 @@
1
+ name: sci-embodied
2
+ description: >-
3
+ receiving incorrect error message when running sci-embodied without
4
+ `resources-total` issue
5
+ tags: null
6
+ initialize:
7
+ outputs:
8
+ - yaml
9
+ plugins:
10
+ sci-embodied:
11
+ method: SciEmbodied
12
+ path: builtin
13
+ execution:
14
+ status: fail
15
+ command: >-
16
+ /Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
17
+ /Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
18
+ manifests/outputs/bugs/sci-embodied-missing-resources-total.yml -o
19
+ manifests/outputs/bugs/sci-embodied-missing-resources-total
20
+ environment:
21
+ if-version: 0.4.0
22
+ os: macOS
23
+ os-version: '13.2'
24
+ node-version: 18.14.2
25
+ date-time: 2024-07-01T20:17:30.390Z (UTC)
26
+ dependencies:
27
+ - '@babel/core@7.22.10'
28
+ - '@babel/preset-typescript@7.23.3'
29
+ - '@commitlint/cli@18.6.0'
30
+ - '@commitlint/config-conventional@18.6.0'
31
+ - '@grnsft/if-core@0.0.10'
32
+
33
+ - '@jest/globals@29.7.0'
34
+ - '@types/jest@29.5.8'
35
+ - '@types/js-yaml@4.0.9'
36
+ - '@types/luxon@3.4.2'
37
+ - '@types/node@20.9.0'
38
+ - axios-mock-adapter@1.22.0
39
+ - axios@1.7.2
40
+ - cross-env@7.0.3
41
+ - csv-parse@5.5.6
42
+ - csv-stringify@6.4.6
43
+ - fixpack@4.0.0
44
+ - gts@5.2.0
45
+ - husky@8.0.3
46
+ - jest@29.7.0
47
+ - js-yaml@4.1.0
48
+ - lint-staged@15.2.2
49
+ - luxon@3.4.4
50
+ - release-it@16.3.0
51
+ - rimraf@5.0.5
52
+ - ts-command-line-args@2.5.1
53
+ - ts-jest@29.1.1
54
+ - typescript-cubic-spline@1.0.1
55
+ - typescript@5.2.2
56
+ - winston@3.11.0
57
+ - zod@3.22.4
58
+ error: >-
59
+ InputValidationError: "vcpus-allocated" parameter is required. Error code:
60
+ invalid_union.
61
+ tree:
62
+ children:
63
+ child:
64
+ pipeline:
65
+ - sci-embodied
66
+ defaults:
67
+ device/emissions-embodied: 1533.12
68
+ time-reserved: 3600
69
+ device/expected-lifespan: 94608000
70
+ resources-reserved: 1
71
+ inputs:
72
+ - timestamp: 2023-07-06T00:00
73
+ duration: 3600
@@ -0,0 +1,93 @@
1
+ name: divide
2
+ description: success path
3
+ tags: null
4
+ initialize:
5
+ plugins:
6
+ cloud-metadata:
7
+ path: builtin
8
+ method: CSVLookup
9
+ global-config:
10
+ filepath: >-
11
+ https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12
+ query:
13
+ instance-class: cloud/instance-type
14
+ output:
15
+ - cpu-cores-utilized
16
+ - vcpus-allocated
17
+ divide:
18
+ path: builtin
19
+ method: Divide
20
+ global-config:
21
+ numerator: vcpus-allocated
22
+ denominator: 2
23
+ output: cpu/number-cores
24
+ outputs:
25
+ - yaml
26
+ execution:
27
+ command: >-
28
+ /home/joe/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
29
+ /home/joe/Code/if/src/index.ts -m ./manifests/plugins/divide/success.yml -o
30
+ ./manifests/outputs/divide
31
+ environment:
32
+ if-version: 0.4.0
33
+ os: linux
34
+ os-version: 5.15.0-113-generic
35
+ node-version: 21.4.0
36
+ date-time: 2024-07-03T14:02:26.789Z (UTC)
37
+ dependencies:
38
+ - '@babel/core@7.22.10'
39
+ - '@babel/preset-typescript@7.23.3'
40
+ - '@commitlint/cli@18.6.0'
41
+ - '@commitlint/config-conventional@18.6.0'
42
+ - '@grnsft/if-core@0.0.10'
43
+ - '@jest/globals@29.7.0'
44
+ - '@types/jest@29.5.8'
45
+ - '@types/js-yaml@4.0.9'
46
+ - '@types/luxon@3.4.2'
47
+ - '@types/node@20.9.0'
48
+ - axios-mock-adapter@1.22.0
49
+ - axios@1.7.2
50
+ - cross-env@7.0.3
51
+ - csv-parse@5.5.6
52
+ - csv-stringify@6.4.6
53
+ - fixpack@4.0.0
54
+ - gts@5.2.0
55
+ - husky@8.0.3
56
+ - jest@29.7.0
57
+ - js-yaml@4.1.0
58
+ - lint-staged@15.2.2
59
+ - luxon@3.4.4
60
+ - release-it@16.3.0
61
+ - rimraf@5.0.5
62
+ - ts-command-line-args@2.5.1
63
+ - ts-jest@29.1.1
64
+ - typescript-cubic-spline@1.0.1
65
+ - typescript@5.2.2
66
+ - winston@3.11.0
67
+ - zod@3.22.4
68
+ status: success
69
+ tree:
70
+ children:
71
+ child:
72
+ pipeline:
73
+ - cloud-metadata
74
+ - divide
75
+ config:
76
+ divide: null
77
+ defaults:
78
+ cloud/vendor: aws
79
+ cloud/instance-type: m5n.large
80
+ cpu/name: Intel® Core™ i7-1185G7
81
+ inputs:
82
+ - timestamp: 2023-08-06T00:00
83
+ duration: 3600
84
+ cpu/utilization: 80
85
+ outputs:
86
+ - timestamp: 2023-08-06T00:00
87
+ duration: 3600
88
+ cpu/utilization: 80
89
+ cloud/vendor: aws
90
+ cloud/instance-type: m5n.large
91
+ cpu/name: Intel® Core™ i7-1185G7
92
+ vcpus-allocated: 2
93
+ cpu/number-cores: 1
@@ -0,0 +1,101 @@
1
+ name: Aggregation
2
+ description: Fails with invalid metric.
3
+ aggregation:
4
+ metrics:
5
+ - test
6
+ type: both
7
+ initialize:
8
+ outputs:
9
+ - yaml
10
+ plugins:
11
+ cloud-metadata:
12
+ path: builtin
13
+ method: CSVLookup
14
+ global-config:
15
+ filepath: >-
16
+ https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
17
+ query:
18
+ instance-class: cloud/instance-type
19
+ output:
20
+ - cpu-cores-utilized
21
+ - vcpus-allocated
22
+ execution:
23
+ status: fail
24
+ command: >-
25
+ /Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
26
+ /Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
27
+ manifests/outputs/features/aggregate-failure-invalid-metrics.yml -o
28
+ manifests/outputs/features/aggregate-failure-invalid-metrics
29
+ environment:
30
+ if-version: 0.4.0
31
+ os: macOS
32
+ os-version: '13.2'
33
+ node-version: 18.14.2
34
+ date-time: 2024-07-01T20:25:17.348Z (UTC)
35
+ dependencies:
36
+ - '@babel/core@7.22.10'
37
+ - '@babel/preset-typescript@7.23.3'
38
+ - '@commitlint/cli@18.6.0'
39
+ - '@commitlint/config-conventional@18.6.0'
40
+ - '@grnsft/if-core@0.0.10'
41
+
42
+ - '@jest/globals@29.7.0'
43
+ - '@types/jest@29.5.8'
44
+ - '@types/js-yaml@4.0.9'
45
+ - '@types/luxon@3.4.2'
46
+ - '@types/node@20.9.0'
47
+ - axios-mock-adapter@1.22.0
48
+ - axios@1.7.2
49
+ - cross-env@7.0.3
50
+ - csv-parse@5.5.6
51
+ - csv-stringify@6.4.6
52
+ - fixpack@4.0.0
53
+ - gts@5.2.0
54
+ - husky@8.0.3
55
+ - jest@29.7.0
56
+ - js-yaml@4.1.0
57
+ - lint-staged@15.2.2
58
+ - luxon@3.4.4
59
+ - release-it@16.3.0
60
+ - rimraf@5.0.5
61
+ - ts-command-line-args@2.5.1
62
+ - ts-jest@29.1.1
63
+ - typescript-cubic-spline@1.0.1
64
+ - typescript@5.2.2
65
+ - winston@3.11.0
66
+ - zod@3.22.4
67
+ error: >-
68
+ MissingAggregationParamError: Aggregation metric test is not found in
69
+ inputs[0].
70
+ tree:
71
+ children:
72
+ application:
73
+ pipeline:
74
+ - cloud-metadata
75
+ children:
76
+ uk-west:
77
+ children:
78
+ server-1:
79
+ inputs:
80
+ - timestamp: '2024-02-26 00:00:00'
81
+ duration: 300
82
+ cloud/instance-type: m5n.large
83
+ cloud/vendor: aws
84
+ cpu/utilization: 89
85
+ - timestamp: '2024-02-26 00:05:00'
86
+ duration: 300
87
+ cloud/instance-type: m5n.large
88
+ cloud/vendor: aws
89
+ cpu/utilization: 59
90
+ server-2:
91
+ inputs:
92
+ - timestamp: '2024-02-26 00:00:00'
93
+ duration: 300
94
+ cloud/instance-type: m5n.large
95
+ cloud/vendor: aws
96
+ cpu/utilization: 24
97
+ - timestamp: '2024-02-26 00:05:00'
98
+ duration: 300
99
+ cloud/instance-type: m5n.large
100
+ cloud/vendor: aws
101
+ cpu/utilization: 27
@@ -0,0 +1,100 @@
1
+ name: Aggregation
2
+ description: Fails with missing metric in inputs.
3
+ aggregation:
4
+ metrics:
5
+ - cpu/utilization
6
+ type: both
7
+ initialize:
8
+ outputs:
9
+ - yaml
10
+ plugins:
11
+ cloud-metadata:
12
+ path: builtin
13
+ method: CSVLookup
14
+ global-config:
15
+ filepath: >-
16
+ https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
17
+ query:
18
+ instance-class: cloud/instance-type
19
+ output:
20
+ - cpu-cores-utilized
21
+ - vcpus-allocated
22
+ execution:
23
+ status: fail
24
+ command: >-
25
+ /Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
26
+ /Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
27
+ manifests/outputs/features/aggregate-failure-missing-metric-in-inputs.yml -o
28
+ manifests/outputs/features/aggregate-failure-missing-metric-in-inputs
29
+ environment:
30
+ if-version: 0.4.0
31
+ os: macOS
32
+ os-version: '13.2'
33
+ node-version: 18.14.2
34
+ date-time: 2024-07-01T20:26:58.250Z (UTC)
35
+ dependencies:
36
+ - '@babel/core@7.22.10'
37
+ - '@babel/preset-typescript@7.23.3'
38
+ - '@commitlint/cli@18.6.0'
39
+ - '@commitlint/config-conventional@18.6.0'
40
+ - '@grnsft/if-core@0.0.10'
41
+
42
+ - '@jest/globals@29.7.0'
43
+ - '@types/jest@29.5.8'
44
+ - '@types/js-yaml@4.0.9'
45
+ - '@types/luxon@3.4.2'
46
+ - '@types/node@20.9.0'
47
+ - axios-mock-adapter@1.22.0
48
+ - axios@1.7.2
49
+ - cross-env@7.0.3
50
+ - csv-parse@5.5.6
51
+ - csv-stringify@6.4.6
52
+ - fixpack@4.0.0
53
+ - gts@5.2.0
54
+ - husky@8.0.3
55
+ - jest@29.7.0
56
+ - js-yaml@4.1.0
57
+ - lint-staged@15.2.2
58
+ - luxon@3.4.4
59
+ - release-it@16.3.0
60
+ - rimraf@5.0.5
61
+ - ts-command-line-args@2.5.1
62
+ - ts-jest@29.1.1
63
+ - typescript-cubic-spline@1.0.1
64
+ - typescript@5.2.2
65
+ - winston@3.11.0
66
+ - zod@3.22.4
67
+ error: >-
68
+ MissingAggregationParamError: Aggregation metric cpu/utilization is not
69
+ found in inputs[0].
70
+ tree:
71
+ children:
72
+ application:
73
+ pipeline:
74
+ - cloud-metadata
75
+ children:
76
+ uk-west:
77
+ children:
78
+ server-1:
79
+ inputs:
80
+ - timestamp: '2024-01-26 00:00:00'
81
+ duration: 300
82
+ cloud/instance-type: m5n.large
83
+ cloud/vendor: aws
84
+ cpu/utilization: 89
85
+ - timestamp: '2024-02-26 00:05:00'
86
+ duration: 300
87
+ cloud/instance-type: m5n.large
88
+ cloud/vendor: aws
89
+ cpu/utilization: 59
90
+ server-2:
91
+ inputs:
92
+ - timestamp: '2024-02-26 00:00:00'
93
+ duration: 300
94
+ cloud/instance-type: m5n.large
95
+ cloud/vendor: aws
96
+ - timestamp: '2024-02-26 00:15:00'
97
+ duration: 300
98
+ cloud/instance-type: m5n.large
99
+ cloud/vendor: aws
100
+ cpu/utilization: 27