@grnsft/if 0.5.0-beta.0 → 0.6.0-beta.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.
- package/README.md +5 -17
- package/Refactor-migration-guide.md +110 -164
- package/build/common/config/index.d.ts +1 -0
- package/build/common/config/index.js +6 -0
- package/build/common/config/strings.d.ts +8 -0
- package/build/common/config/strings.js +16 -0
- package/build/common/lib/load.d.ts +6 -0
- package/build/common/lib/load.js +18 -0
- package/build/{types → common/types}/manifest.d.ts +4 -1
- package/build/common/types/manifest.js +3 -0
- package/build/common/util/debug-logger.js +115 -0
- package/build/common/util/fs.js +94 -0
- package/build/common/util/helpers.d.ts +15 -0
- package/build/common/util/helpers.js +80 -0
- package/build/{util → common/util}/logger.js +1 -1
- package/build/{util → common/util}/validations.d.ts +149 -47
- package/build/common/util/validations.js +141 -0
- package/build/common/util/yaml.js +59 -0
- package/build/if-check/config/config.d.ts +6 -0
- package/build/if-check/config/config.js +31 -0
- package/build/{config → if-check/config}/index.d.ts +0 -1
- package/build/if-check/config/index.js +8 -0
- package/build/if-check/config/strings.d.ts +12 -0
- package/build/if-check/config/strings.js +16 -0
- package/build/if-check/index.js +98 -0
- package/build/if-check/types/process-args.d.ts +4 -0
- package/build/if-check/types/process-args.js +3 -0
- package/build/if-check/util/args.d.ts +10 -0
- package/build/if-check/util/args.js +56 -0
- package/build/if-check/util/helpers.d.ts +4 -0
- package/build/if-check/util/helpers.js +18 -0
- package/build/if-check/util/npm.d.ts +4 -0
- package/build/if-check/util/npm.js +59 -0
- package/build/if-csv/config/config.d.ts +6 -0
- package/build/if-csv/config/config.js +37 -0
- package/build/if-csv/config/index.d.ts +2 -0
- package/build/if-csv/config/index.js +8 -0
- package/build/if-csv/config/strings.d.ts +4 -0
- package/build/if-csv/config/strings.js +8 -0
- package/build/if-csv/index.js +63 -0
- package/build/if-csv/types/csv.d.ts +7 -0
- package/build/if-csv/types/csv.js +3 -0
- package/build/if-csv/types/process-args.d.ts +5 -0
- package/build/if-csv/types/process-args.js +3 -0
- package/build/if-csv/util/args.d.ts +12 -0
- package/build/if-csv/util/args.js +51 -0
- package/build/if-csv/util/helpers.d.ts +9 -0
- package/build/if-csv/util/helpers.js +95 -0
- package/build/if-diff/config/config.d.ts +6 -0
- package/build/if-diff/config/config.js +31 -0
- package/build/if-diff/config/index.d.ts +2 -0
- package/build/if-diff/config/index.js +8 -0
- package/build/if-diff/config/strings.d.ts +6 -0
- package/build/if-diff/config/strings.js +10 -0
- package/build/if-diff/index.js +46 -0
- package/build/{lib → if-diff/lib}/compare.d.ts +1 -1
- package/build/if-diff/lib/compare.js +56 -0
- package/build/{lib → if-diff/lib}/load.d.ts +16 -18
- package/build/if-diff/lib/load.js +51 -0
- package/build/if-diff/types/args.js +3 -0
- package/build/if-diff/types/compare.js +3 -0
- package/build/if-diff/types/process-args.d.ts +4 -0
- package/build/if-diff/types/process-args.js +3 -0
- package/build/if-diff/util/args.d.ts +5 -0
- package/build/if-diff/util/args.js +51 -0
- package/build/if-diff/util/helpers.d.ts +13 -0
- package/build/if-diff/util/helpers.js +75 -0
- package/build/if-env/config/config.d.ts +6 -0
- package/build/if-env/config/config.js +37 -0
- package/build/if-env/config/index.d.ts +2 -0
- package/build/if-env/config/index.js +8 -0
- package/build/if-env/config/strings.d.ts +7 -0
- package/build/if-env/config/strings.js +11 -0
- package/build/if-env/index.js +40 -0
- package/build/if-env/types/if-env.js +3 -0
- package/build/if-env/types/npm.js +3 -0
- package/build/if-env/types/process-args.d.ts +5 -0
- package/build/if-env/types/process-args.js +3 -0
- package/build/if-env/util/args.d.ts +12 -0
- package/build/if-env/util/args.js +47 -0
- package/build/if-env/util/helpers.d.ts +20 -0
- package/build/if-env/util/helpers.js +94 -0
- package/build/{util → if-env/util}/npm.d.ts +0 -4
- package/build/if-env/util/npm.js +126 -0
- package/build/if-run/builtins/coefficient/index.d.ts +2 -0
- package/build/if-run/builtins/coefficient/index.js +67 -0
- package/build/if-run/builtins/copy-param/index.d.ts +2 -0
- package/build/if-run/builtins/copy-param/index.js +70 -0
- package/build/if-run/builtins/csv-lookup/index.d.ts +2 -0
- package/build/if-run/builtins/csv-lookup/index.js +190 -0
- package/build/if-run/builtins/divide/index.d.ts +2 -0
- package/build/if-run/builtins/divide/index.js +80 -0
- package/build/if-run/builtins/exponent/index.d.ts +2 -0
- package/build/if-run/builtins/exponent/index.js +60 -0
- package/build/{builtins → if-run/builtins}/export-log.d.ts +1 -1
- package/build/{builtins → if-run/builtins}/export-log.js +1 -1
- package/build/{builtins → if-run/builtins}/export-yaml.d.ts +1 -1
- package/build/if-run/builtins/export-yaml.js +30 -0
- package/build/{builtins → if-run/builtins}/index.d.ts +1 -2
- package/build/{builtins → if-run/builtins}/index.js +4 -6
- package/build/if-run/builtins/interpolation/index.d.ts +2 -0
- package/build/if-run/builtins/interpolation/index.js +151 -0
- package/build/if-run/builtins/mock-observations/helpers/common-generator.js +29 -0
- package/build/if-run/builtins/mock-observations/helpers/rand-int-generator.js +48 -0
- package/build/if-run/builtins/mock-observations/index.d.ts +2 -0
- package/build/if-run/builtins/mock-observations/index.js +116 -0
- package/build/if-run/builtins/mock-observations/interfaces/index.js +3 -0
- package/build/if-run/builtins/multiply/index.d.ts +2 -0
- package/build/if-run/builtins/multiply/index.js +59 -0
- package/build/if-run/builtins/regex/index.d.ts +2 -0
- package/build/if-run/builtins/regex/index.js +76 -0
- package/build/if-run/builtins/sci/config.js +44 -0
- package/build/if-run/builtins/sci/index.d.ts +2 -0
- package/build/if-run/builtins/sci/index.js +92 -0
- package/build/if-run/builtins/sci-embodied/index.d.ts +2 -0
- package/build/if-run/builtins/sci-embodied/index.js +156 -0
- package/build/if-run/builtins/shell/index.d.ts +2 -0
- package/build/if-run/builtins/shell/index.js +60 -0
- package/build/if-run/builtins/subtract/index.d.ts +2 -0
- package/build/if-run/builtins/subtract/index.js +61 -0
- package/build/if-run/builtins/sum/index.d.ts +2 -0
- package/build/if-run/builtins/sum/index.js +66 -0
- package/build/if-run/builtins/time-sync/index.d.ts +17 -0
- package/build/if-run/builtins/time-sync/index.js +339 -0
- package/build/if-run/config/config.d.ts +9 -0
- package/build/if-run/config/config.js +73 -0
- package/build/if-run/config/index.d.ts +2 -0
- package/build/if-run/config/index.js +8 -0
- package/build/{config → if-run/config}/strings.d.ts +28 -50
- package/build/if-run/config/strings.js +76 -0
- package/build/if-run/index.d.ts +2 -0
- package/build/if-run/index.js +63 -0
- package/build/if-run/lib/aggregate.d.ts +15 -0
- package/build/if-run/lib/aggregate.js +123 -0
- package/build/if-run/lib/compute.js +136 -0
- package/build/{lib → if-run/lib}/environment.d.ts +1 -1
- package/build/if-run/lib/environment.js +75 -0
- package/build/{lib → if-run/lib}/exhaust.d.ts +1 -1
- package/build/if-run/lib/exhaust.js +27 -0
- package/build/if-run/lib/explain.d.ts +9 -0
- package/build/if-run/lib/explain.js +43 -0
- package/build/if-run/lib/initialize.d.ts +6 -0
- package/build/if-run/lib/initialize.js +109 -0
- package/build/if-run/lib/regroup.d.ts +5 -0
- package/build/if-run/lib/regroup.js +64 -0
- package/build/if-run/types/aggregation.d.ts +5 -0
- package/build/if-run/types/aggregation.js +6 -0
- package/build/{types → if-run/types}/compute.d.ts +12 -8
- package/build/if-run/types/compute.js +3 -0
- package/build/if-run/types/environment.js +3 -0
- package/build/{types → if-run/types}/exhaust-plugin-interface.d.ts +1 -1
- package/build/if-run/types/exhaust-plugin-interface.js +3 -0
- package/build/if-run/types/explain.d.ts +10 -0
- package/build/if-run/types/explain.js +3 -0
- package/build/if-run/types/interface.d.ts +3 -0
- package/build/if-run/types/interface.js +6 -0
- package/build/if-run/types/plugin-storage.js +3 -0
- package/build/if-run/types/process-args.d.ts +25 -0
- package/build/if-run/types/process-args.js +3 -0
- package/build/if-run/types/time-sync.js +3 -0
- package/build/{util → if-run/util}/aggregation-helper.d.ts +2 -1
- package/build/if-run/util/aggregation-helper.js +47 -0
- package/build/if-run/util/args.d.ts +9 -0
- package/build/if-run/util/args.js +60 -0
- package/build/if-run/util/helpers.d.ts +14 -0
- package/build/if-run/util/helpers.js +57 -0
- package/build/if-run/util/log-memoize.js +19 -0
- package/build/if-run/util/os-checker.js +97 -0
- package/build/{util → if-run/util}/plugin-storage.d.ts +1 -1
- package/build/if-run/util/plugin-storage.js +34 -0
- package/jest.config.js +2 -6
- package/manifests/{plugins → examples/builtins}/coefficient/failure-invalid-config-input-param.yml +2 -2
- package/manifests/{plugins → examples/builtins}/coefficient/failure-output-param-is-null.yaml +3 -3
- package/manifests/{plugins → examples/builtins}/coefficient/success.yml +2 -2
- package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +3 -3
- package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +3 -3
- package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yml +3 -3
- package/manifests/{plugins → examples/builtins}/csv-lookup/cloud-metadata/success.yml +3 -3
- package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/failure-missing-column.yml +3 -4
- package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/failure-missing-output.yml +3 -4
- package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/success-renaming.yml +4 -5
- package/manifests/{plugins → examples/builtins}/csv-lookup/region-metadata/success.yml +3 -4
- package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/failure-missing-input-param.yml +2 -2
- package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yml +2 -2
- package/manifests/{plugins → examples/builtins}/csv-lookup/tdp-finder/success.yml +2 -2
- package/manifests/{plugins → examples/builtins}/divide/failure-denominator-equal-zero.yml +4 -4
- package/manifests/{plugins → examples/builtins}/divide/failure-invalid-config-denominator.yml +5 -5
- package/manifests/{plugins → examples/builtins}/divide/failure-missing-numerator.yml +4 -4
- package/manifests/{plugins → examples/builtins}/divide/success.yml +4 -6
- package/manifests/{plugins → examples/builtins}/exponent/success.yml +5 -8
- package/manifests/{plugins → examples/builtins}/interpolation/interpolation.yml +2 -2
- package/manifests/{plugins → examples/builtins}/interpolation/success.yml +2 -2
- package/manifests/{plugins → examples/builtins}/mock-observations/failure-invalid-config-cpu-range.yml +2 -2
- package/manifests/{plugins → examples/builtins}/mock-observations/failure-invalid-memory-utilization-range.yml +2 -2
- package/manifests/{plugins → examples/builtins}/mock-observations/failure-missing-timestamp-from-param.yml +2 -2
- package/manifests/{plugins → examples/builtins}/mock-observations/success.yml +2 -2
- package/manifests/{plugins → examples/builtins}/multiply/failure-input-parameter-is-missing.yml +2 -4
- package/manifests/{plugins → examples/builtins}/multiply/success-with-multiple-inputs.yml +2 -4
- package/manifests/{plugins → examples/builtins}/multiply/success.yml +3 -4
- package/manifests/{plugins → examples/builtins}/regex/failure-missing-input-param.yml +2 -4
- package/manifests/{plugins → examples/builtins}/regex/failure-not-matching-with-regex.yml +2 -4
- package/manifests/{plugins → examples/builtins}/regex/success.yml +2 -4
- package/manifests/{plugins → examples/builtins}/sci/failure-invalid-config-value.yml +2 -2
- package/manifests/{plugins → examples/builtins}/sci/failure-missing-input-param.yml +3 -2
- package/manifests/{plugins → examples/builtins}/sci/success.yml +2 -3
- package/manifests/{plugins → examples/builtins}/sci-embodied/failure-invalid-default-emission-value.yml +3 -3
- package/manifests/{plugins → examples/builtins}/sci-embodied/failure-missing-expected-lifespan.yml +2 -2
- package/manifests/{plugins → examples/builtins}/sci-embodied/success.yml +2 -2
- package/manifests/{plugins → examples/builtins}/shell/failure-invalid-command.yml +2 -2
- package/manifests/{plugins → examples/builtins}/shell/success.yml +2 -1
- package/manifests/{plugins → examples/builtins}/subtract/success.yml +6 -9
- package/manifests/{plugins → examples/builtins}/sum/failure-missing-input-param.yml +2 -4
- package/manifests/{plugins → examples/builtins}/sum/failure-missing-output-param.yml +3 -5
- package/manifests/{plugins → examples/builtins}/sum/success.yml +2 -4
- package/manifests/{plugins → examples/builtins}/time-sync/failure-config-start-later-end.yml +3 -3
- package/manifests/{plugins → examples/builtins}/time-sync/failure-missing-global-config.yml +3 -3
- package/manifests/{plugins → examples/builtins}/time-sync/success.yml +2 -2
- package/manifests/{plugins/groupby/failure-invalid-config-group.yml → examples/features/regroup/failure-invalid-regroup.yml} +4 -11
- package/manifests/{plugins/groupby → examples/features/regroup}/failure-missing-cloud-instance-type.yml +5 -12
- package/manifests/{plugins/groupby → examples/features/regroup}/success.yml +4 -11
- package/manifests/examples/{generics.yml → pipelines/generics.yml} +12 -12
- package/manifests/examples/{instance-metadata.yml → pipelines/instance-metadata.yml} +6 -7
- package/manifests/examples/{nesting.yml → pipelines/nesting.yml} +157 -50
- package/manifests/examples/pipelines/outputs-if-diff/pipeline-with-aggregate.yaml +997 -0
- package/manifests/examples/pipelines/outputs-if-diff/pipeline-with-mocks.yaml +1059 -0
- package/manifests/examples/{pipeline-teads-sci.yml → pipelines/pipeline-teads-sci.yml} +11 -11
- package/manifests/examples/{pipeline-with-aggregate.yml → pipelines/pipeline-with-aggregate.yml} +113 -36
- package/manifests/examples/pipelines/pipeline-with-mocks.yml +297 -0
- package/manifests/{bugs/mock-observations-failure-duration-is-zero.yml → examples/pipelines/scenario-1.yml} +7 -7
- package/manifests/examples/pipelines/scenario-2.yml +52 -0
- package/manifests/examples/pipelines/scenario-3.yml +86 -0
- package/manifests/examples/pipelines/scenario-4.yml +46 -0
- package/manifests/examples/pipelines/scenario-5.yml +46 -0
- package/manifests/examples/{sci.yml → pipelines/sci.yml} +15 -17
- package/manifests/examples/{teads-curve.yml → pipelines/teads-curve.yml} +7 -6
- package/manifests/examples/{zeros.yaml → pipelines/zeros.yml} +15 -16
- package/manifests/outputs/bugs/aggregation-error-wrong-metric.yaml +235 -0
- package/manifests/outputs/bugs/input-error-missing-duration.yaml +82 -0
- package/manifests/outputs/bugs/mock-observations-failure-duration-is-zero.yaml +79 -0
- package/manifests/outputs/bugs/pipeline-error-naming-mismatch.yaml +89 -0
- package/manifests/outputs/bugs/pipeline-error-uninitialized-plugin.yaml +90 -0
- package/manifests/outputs/bugs/pipeline-ordering-error.yaml +152 -0
- package/manifests/outputs/bugs/sci-embodied-missing-resources-total.yaml +72 -0
- package/manifests/outputs/builtins/coefficient/failure-invalid-config-input-param.yaml +69 -0
- package/manifests/outputs/builtins/coefficient/failure-output-param-is-null.yaml +69 -0
- package/manifests/outputs/builtins/coefficient/success.yaml +70 -0
- package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +76 -0
- package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yaml +74 -0
- package/manifests/outputs/builtins/csv-lookup/cloud-metadata/success.yaml +79 -0
- package/manifests/outputs/builtins/csv-lookup/region-metadata/failure-missing-column.yaml +75 -0
- package/manifests/outputs/builtins/csv-lookup/region-metadata/failure-missing-output.yaml +73 -0
- package/manifests/outputs/builtins/csv-lookup/region-metadata/success-renaming.yaml +78 -0
- package/manifests/outputs/builtins/csv-lookup/region-metadata/success.yaml +90 -0
- package/manifests/outputs/builtins/csv-lookup/tdp-finder/failure-missing-input-param.yaml +71 -0
- package/manifests/outputs/builtins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yaml +73 -0
- package/manifests/outputs/builtins/csv-lookup/tdp-finder/success.yaml +74 -0
- package/manifests/outputs/builtins/divide/failure-invalid-config-denominator.yaml +69 -0
- package/manifests/outputs/builtins/divide/failure-missing-numerator.yaml +75 -0
- package/manifests/outputs/builtins/divide/success-denominator-equal-zero.yaml +91 -0
- package/manifests/outputs/builtins/divide/success.yaml +91 -0
- package/manifests/outputs/builtins/exponent/success.yaml +73 -0
- package/manifests/outputs/builtins/interpolation/interpolation.yaml +81 -0
- package/manifests/outputs/builtins/interpolation/success.yaml +81 -0
- package/manifests/outputs/builtins/mock-observations/failure-invalid-config-cpu-range.yaml +84 -0
- package/manifests/outputs/builtins/mock-observations/failure-invalid-memory-utilization-range.yaml +82 -0
- package/manifests/outputs/builtins/mock-observations/failure-missing-timestamp-from-param.yaml +81 -0
- package/manifests/outputs/builtins/mock-observations/success.yaml +358 -0
- package/manifests/outputs/builtins/multiply/failure-input-parameter-is-missing.yaml +71 -0
- package/manifests/outputs/builtins/multiply/success-with-multiple-inputs.yaml +92 -0
- package/manifests/outputs/builtins/multiply/success.yaml +74 -0
- package/manifests/outputs/builtins/regex/failure-missing-input-param.yaml +71 -0
- package/manifests/outputs/builtins/regex/success.yaml +76 -0
- package/manifests/outputs/builtins/sci/failure-invalid-config-value.yaml +70 -0
- package/manifests/outputs/builtins/sci/failure-missing-input-param.yaml +70 -0
- package/manifests/outputs/builtins/sci/success.yaml +77 -0
- package/manifests/outputs/builtins/sci-embodied/failure-invalid-default-emission-value.yaml +73 -0
- package/manifests/outputs/builtins/sci-embodied/failure-missing-expected-lifespan.yaml +69 -0
- package/manifests/outputs/builtins/sci-embodied/success.yaml +76 -0
- package/manifests/outputs/builtins/shell/failure-invalid-command.yaml +68 -0
- package/manifests/outputs/builtins/shell/success.yaml +66 -0
- package/manifests/outputs/builtins/subtract/success.yaml +74 -0
- package/manifests/outputs/builtins/sum/failure-missing-input-param.yaml +71 -0
- package/manifests/outputs/builtins/sum/failure-missing-output-param.yaml +74 -0
- package/manifests/outputs/builtins/sum/success.yaml +74 -0
- package/manifests/outputs/builtins/time-sync/failure-config-start-later-end.yaml +79 -0
- package/manifests/outputs/builtins/time-sync/success.yaml +122 -0
- package/manifests/outputs/features/aggregate-failure-invalid-metrics.yaml +100 -0
- package/manifests/outputs/features/aggregate-failure-missing-metric-in-inputs.yaml +99 -0
- package/manifests/outputs/features/aggregate-horizontal.yaml +132 -0
- package/manifests/outputs/features/aggregate-vertical.yaml +155 -0
- package/manifests/outputs/features/aggregate.yaml +159 -0
- package/manifests/outputs/features/failure-invalid-regroup.yaml +87 -0
- package/manifests/outputs/features/failure-missing-cloud-instance-type.yaml +86 -0
- package/manifests/outputs/pipelines/cloud-metadata-divide.yaml +91 -0
- package/manifests/outputs/pipelines/generics.yaml +239 -0
- package/manifests/outputs/pipelines/instance-metadata.yaml +98 -0
- package/manifests/outputs/pipelines/mock-obs-time-sync.yaml +449 -0
- package/manifests/outputs/pipelines/nesting.yaml +1799 -0
- package/manifests/outputs/pipelines/pipeline-teads-sci.yaml +276 -0
- package/manifests/outputs/pipelines/sci.yaml +297 -0
- package/manifests/outputs/pipelines/teads-curve.yaml +188 -0
- package/manifests/outputs/pipelines/zeros.yaml +198 -0
- package/package.json +15 -16
- package/src/__mocks__/mock-manifest.yaml +2 -3
- package/src/{config → if-env/config}/env-template.yml +2 -3
- package/src/{builtins → if-run/builtins}/coefficient/README.md +31 -9
- package/src/{builtins → if-run/builtins}/copy-param/README.md +30 -11
- package/src/{builtins → if-run/builtins}/csv-lookup/README.md +32 -20
- package/src/{builtins → if-run/builtins}/divide/README.md +21 -8
- package/src/{builtins → if-run/builtins}/exponent/README.md +19 -8
- package/src/{builtins → if-run/builtins}/interpolation/README.md +21 -6
- package/src/{builtins → if-run/builtins}/mock-observations/README.md +18 -4
- package/src/{builtins → if-run/builtins}/multiply/README.md +20 -8
- package/src/{builtins → if-run/builtins}/regex/README.md +19 -9
- package/src/{builtins → if-run/builtins}/sci/README.md +19 -9
- package/src/{builtins → if-run/builtins}/sci-embodied/README.md +17 -5
- package/src/{builtins → if-run/builtins}/shell/README.md +19 -7
- package/src/{builtins → if-run/builtins}/subtract/README.md +17 -6
- package/src/{builtins → if-run/builtins}/sum/README.md +34 -8
- package/src/if-run/builtins/time-sync/README.md +267 -0
- package/build/builtins/coefficient/index.d.ts +0 -2
- package/build/builtins/coefficient/index.js +0 -65
- package/build/builtins/copy-param/index.d.ts +0 -2
- package/build/builtins/copy-param/index.js +0 -68
- package/build/builtins/csv-lookup/index.d.ts +0 -2
- package/build/builtins/csv-lookup/index.js +0 -188
- package/build/builtins/divide/index.d.ts +0 -2
- package/build/builtins/divide/index.js +0 -78
- package/build/builtins/exponent/index.d.ts +0 -2
- package/build/builtins/exponent/index.js +0 -58
- package/build/builtins/export-csv-raw.d.ts +0 -4
- package/build/builtins/export-csv-raw.js +0 -132
- package/build/builtins/export-csv.d.ts +0 -10
- package/build/builtins/export-csv.js +0 -96
- package/build/builtins/export-yaml.js +0 -30
- package/build/builtins/group-by.d.ts +0 -5
- package/build/builtins/group-by.js +0 -71
- package/build/builtins/interpolation/index.d.ts +0 -2
- package/build/builtins/interpolation/index.js +0 -148
- package/build/builtins/mock-observations/helpers/common-generator.js +0 -29
- package/build/builtins/mock-observations/helpers/rand-int-generator.js +0 -48
- package/build/builtins/mock-observations/index.d.ts +0 -2
- package/build/builtins/mock-observations/index.js +0 -114
- package/build/builtins/mock-observations/interfaces/index.js +0 -3
- package/build/builtins/multiply/index.d.ts +0 -2
- package/build/builtins/multiply/index.js +0 -57
- package/build/builtins/regex/index.d.ts +0 -2
- package/build/builtins/regex/index.js +0 -74
- package/build/builtins/sci/config.js +0 -44
- package/build/builtins/sci/index.d.ts +0 -2
- package/build/builtins/sci/index.js +0 -70
- package/build/builtins/sci-embodied/index.d.ts +0 -2
- package/build/builtins/sci-embodied/index.js +0 -114
- package/build/builtins/shell/index.d.ts +0 -2
- package/build/builtins/shell/index.js +0 -58
- package/build/builtins/subtract/index.d.ts +0 -2
- package/build/builtins/subtract/index.js +0 -59
- package/build/builtins/sum/index.d.ts +0 -2
- package/build/builtins/sum/index.js +0 -64
- package/build/builtins/time-sync.d.ts +0 -2
- package/build/builtins/time-sync.js +0 -300
- package/build/check.js +0 -85
- package/build/config/config.d.ts +0 -29
- package/build/config/config.js +0 -147
- package/build/config/index.js +0 -10
- package/build/config/params.d.ts +0 -2
- package/build/config/params.js +0 -196
- package/build/config/strings.js +0 -101
- package/build/diff.js +0 -46
- package/build/env.js +0 -38
- package/build/index.js +0 -48
- package/build/lib/aggregate.d.ts +0 -6
- package/build/lib/aggregate.js +0 -77
- package/build/lib/compare.js +0 -56
- package/build/lib/compute.js +0 -91
- package/build/lib/environment.js +0 -75
- package/build/lib/exhaust.js +0 -53
- package/build/lib/initialize.d.ts +0 -6
- package/build/lib/initialize.js +0 -101
- package/build/lib/load.js +0 -70
- package/build/lib/parameterize.d.ts +0 -6
- package/build/lib/parameterize.js +0 -55
- package/build/types/aggregation.d.ts +0 -2
- package/build/types/aggregation.js +0 -5
- package/build/types/compute.js +0 -3
- package/build/types/environment.js +0 -3
- package/build/types/exhaust-plugin-interface.js +0 -3
- package/build/types/if-env.js +0 -3
- package/build/types/interface.d.ts +0 -4
- package/build/types/interface.js +0 -8
- package/build/types/lib/compare.js +0 -3
- package/build/types/manifest.js +0 -3
- package/build/types/npm.js +0 -3
- package/build/types/parameters.d.ts +0 -5
- package/build/types/parameters.js +0 -5
- package/build/types/plugin-storage.js +0 -3
- package/build/types/process-args.d.ts +0 -33
- package/build/types/process-args.js +0 -3
- package/build/types/time-sync.js +0 -3
- package/build/types/util/args.js +0 -3
- package/build/util/aggregation-helper.js +0 -55
- package/build/util/args.d.ts +0 -37
- package/build/util/args.js +0 -205
- package/build/util/debug-logger.js +0 -117
- package/build/util/fs.js +0 -94
- package/build/util/helpers.d.ts +0 -57
- package/build/util/helpers.js +0 -250
- package/build/util/json.d.ts +0 -4
- package/build/util/json.js +0 -36
- package/build/util/log-memoize.js +0 -19
- package/build/util/npm.js +0 -152
- package/build/util/os-checker.js +0 -97
- package/build/util/plugin-storage.js +0 -34
- package/build/util/validations.js +0 -124
- package/build/util/yaml.js +0 -59
- package/manifests/bugs/aggregation-error-wrong-metric.yml +0 -178
- package/manifests/bugs/azure-importer-ignoring-defaults.yml +0 -64
- package/manifests/bugs/azure-importer-incorrect-calculation.yml +0 -59
- package/manifests/bugs/initialize-error-no-config.yml +0 -26
- package/manifests/bugs/initialize-error-no-path.yml +0 -32
- package/manifests/bugs/initialize-error-no-plugins.yml +0 -23
- package/manifests/bugs/input-error-missing-duration.yml +0 -25
- package/manifests/bugs/pipeline-error-naming-mismatch.yml +0 -32
- package/manifests/bugs/pipeline-error-uninitialized-plugin.yml +0 -33
- package/manifests/bugs/pipeline-ordering-error.yml +0 -91
- package/manifests/bugs/sci-embodied-missing-resources-total.yml +0 -23
- package/manifests/examples/copy.yaml +0 -20
- package/manifests/examples/mock-cpu-util-to-carbon.yml +0 -76
- package/manifests/examples/pipeline-with-mocks.yml +0 -207
- package/manifests/examples/region-metadata.yml +0 -26
- package/manifests/examples/tdp-finder.yml +0 -23
- package/manifests/features/aggregate-failure-invalid-metrics.yml +0 -49
- package/manifests/features/aggregate-failure-missing-metric-in-inputs.yml +0 -49
- package/manifests/features/aggregate-horizontal.yml +0 -50
- package/manifests/features/aggregate-vertical.yml +0 -50
- package/manifests/features/aggregate.yml +0 -50
- package/manifests/integrations/cloud-metadata-divide.yml +0 -37
- package/manifests/integrations/instance-metadata/failure-invalid-instance-type.yaml +0 -33
- package/manifests/integrations/instance-metadata/failure-invalid-provider.yaml +0 -33
- package/manifests/integrations/instance-metadata/failure-missing-queried-input.yml +0 -33
- package/manifests/integrations/instance-metadata/success.yml +0 -33
- package/manifests/integrations/mock-obs-group-by-cloud-meta.yml +0 -57
- package/manifests/integrations/mock-obs-groupby.yml +0 -39
- package/manifests/integrations/mock-obs-time-sync.yml +0 -110
- package/src/__tests__/integration/templates/integration.yaml +0 -16
- package/src/builtins/README.md +0 -848
- /package/build/{util → common/util}/debug-logger.d.ts +0 -0
- /package/build/{util → common/util}/fs.d.ts +0 -0
- /package/build/{util → common/util}/logger.d.ts +0 -0
- /package/build/{util → common/util}/yaml.d.ts +0 -0
- /package/build/{index.d.ts → if-check/index.d.ts} +0 -0
- /package/build/{check.d.ts → if-csv/index.d.ts} +0 -0
- /package/build/{diff.d.ts → if-diff/index.d.ts} +0 -0
- /package/build/{types/util → if-diff/types}/args.d.ts +0 -0
- /package/build/{types/lib → if-diff/types}/compare.d.ts +0 -0
- /package/build/{env.d.ts → if-env/index.d.ts} +0 -0
- /package/build/{types → if-env/types}/if-env.d.ts +0 -0
- /package/build/{types → if-env/types}/npm.d.ts +0 -0
- /package/build/{builtins → if-run/builtins}/mock-observations/helpers/common-generator.d.ts +0 -0
- /package/build/{builtins → if-run/builtins}/mock-observations/helpers/rand-int-generator.d.ts +0 -0
- /package/build/{builtins → if-run/builtins}/mock-observations/interfaces/index.d.ts +0 -0
- /package/build/{builtins → if-run/builtins}/sci/config.d.ts +0 -0
- /package/build/{lib → if-run/lib}/compute.d.ts +0 -0
- /package/build/{types → if-run/types}/environment.d.ts +0 -0
- /package/build/{types → if-run/types}/plugin-storage.d.ts +0 -0
- /package/build/{types → if-run/types}/time-sync.d.ts +0 -0
- /package/build/{util → if-run/util}/log-memoize.d.ts +0 -0
- /package/build/{util → if-run/util}/os-checker.d.ts +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
name: multiply
|
|
2
|
+
description: a manifest demonstrating how to use the multiply feature
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
multiply:
|
|
7
|
+
path: builtin
|
|
8
|
+
method: Multiply
|
|
9
|
+
global-config:
|
|
10
|
+
input-parameters:
|
|
11
|
+
- cpu/energy
|
|
12
|
+
- network/energy
|
|
13
|
+
output-parameter: energy-product
|
|
14
|
+
execution:
|
|
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/plugins/multiply/success.yml -o
|
|
19
|
+
manifests/outputs/plugins/multiply/success
|
|
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-02T19:20:34.016Z (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
|
+
- "@jest/globals@29.7.0"
|
|
33
|
+
- "@types/jest@29.5.8"
|
|
34
|
+
- "@types/js-yaml@4.0.9"
|
|
35
|
+
- "@types/luxon@3.4.2"
|
|
36
|
+
- "@types/node@20.9.0"
|
|
37
|
+
- axios-mock-adapter@1.22.0
|
|
38
|
+
- axios@1.7.2
|
|
39
|
+
- cross-env@7.0.3
|
|
40
|
+
- csv-parse@5.5.6
|
|
41
|
+
- csv-stringify@6.4.6
|
|
42
|
+
- fixpack@4.0.0
|
|
43
|
+
- gts@5.2.0
|
|
44
|
+
- husky@8.0.3
|
|
45
|
+
- jest@29.7.0
|
|
46
|
+
- js-yaml@4.1.0
|
|
47
|
+
- lint-staged@15.2.2
|
|
48
|
+
- luxon@3.4.4
|
|
49
|
+
- release-it@16.3.0
|
|
50
|
+
- rimraf@5.0.5
|
|
51
|
+
- ts-command-line-args@2.5.1
|
|
52
|
+
- ts-jest@29.1.1
|
|
53
|
+
- typescript-cubic-spline@1.0.1
|
|
54
|
+
- typescript@5.2.2
|
|
55
|
+
- winston@3.11.0
|
|
56
|
+
- zod@3.22.4
|
|
57
|
+
status: success
|
|
58
|
+
tree:
|
|
59
|
+
children:
|
|
60
|
+
child:
|
|
61
|
+
pipeline:
|
|
62
|
+
compute:
|
|
63
|
+
- multiply
|
|
64
|
+
inputs:
|
|
65
|
+
- timestamp: 2023-08-06T00:00
|
|
66
|
+
duration: 3600
|
|
67
|
+
cpu/energy: 0.001
|
|
68
|
+
network/energy: 0.002
|
|
69
|
+
outputs:
|
|
70
|
+
- timestamp: 2023-08-06T00:00
|
|
71
|
+
duration: 3600
|
|
72
|
+
cpu/energy: 0.001
|
|
73
|
+
network/energy: 0.002
|
|
74
|
+
energy-product: 0.000002
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: regex
|
|
2
|
+
description: failure with missing `physical-processor` field from `inputs`
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
regex:
|
|
7
|
+
method: Regex
|
|
8
|
+
path: builtin
|
|
9
|
+
global-config:
|
|
10
|
+
parameter: physical-processor
|
|
11
|
+
match: ^(.*),
|
|
12
|
+
output: cpu/name
|
|
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/plugins/regex/failure-missing-input-param.yml -o
|
|
19
|
+
manifests/outputs/plugins/regex/failure-missing-input-param
|
|
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-02T20:26:07.477Z (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
|
+
- "@jest/globals@29.7.0"
|
|
33
|
+
- "@types/jest@29.5.8"
|
|
34
|
+
- "@types/js-yaml@4.0.9"
|
|
35
|
+
- "@types/luxon@3.4.2"
|
|
36
|
+
- "@types/node@20.9.0"
|
|
37
|
+
- axios-mock-adapter@1.22.0
|
|
38
|
+
- axios@1.7.2
|
|
39
|
+
- cross-env@7.0.3
|
|
40
|
+
- csv-parse@5.5.6
|
|
41
|
+
- csv-stringify@6.4.6
|
|
42
|
+
- fixpack@4.0.0
|
|
43
|
+
- gts@5.2.0
|
|
44
|
+
- husky@8.0.3
|
|
45
|
+
- jest@29.7.0
|
|
46
|
+
- js-yaml@4.1.0
|
|
47
|
+
- lint-staged@15.2.2
|
|
48
|
+
- luxon@3.4.4
|
|
49
|
+
- release-it@16.3.0
|
|
50
|
+
- rimraf@5.0.5
|
|
51
|
+
- ts-command-line-args@2.5.1
|
|
52
|
+
- ts-jest@29.1.1
|
|
53
|
+
- typescript-cubic-spline@1.0.1
|
|
54
|
+
- typescript@5.2.2
|
|
55
|
+
- winston@3.11.0
|
|
56
|
+
- zod@3.22.4
|
|
57
|
+
error: >-
|
|
58
|
+
MissingInputDataError: physical-processor is missing from the input array,
|
|
59
|
+
or has nullish value.
|
|
60
|
+
tree:
|
|
61
|
+
children:
|
|
62
|
+
child:
|
|
63
|
+
pipeline:
|
|
64
|
+
compute:
|
|
65
|
+
- regex
|
|
66
|
+
inputs:
|
|
67
|
+
- timestamp: 2023-08-06T00:00
|
|
68
|
+
duration: 3600
|
|
69
|
+
physical: >-
|
|
70
|
+
Intel® Xeon® Platinum 8272CL,Intel® Xeon® 8171M 2.1 GHz,Intel® Xeon®
|
|
71
|
+
E5-2673 v4 2.3 GHz,Intel® Xeon® E5-2673 v3 2.4 GHz
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
name: regex
|
|
2
|
+
description: successful path
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
regex:
|
|
7
|
+
path: builtin
|
|
8
|
+
method: Regex
|
|
9
|
+
global-config:
|
|
10
|
+
parameter: physical-processor
|
|
11
|
+
match: ^(.*),
|
|
12
|
+
output: cpu/name
|
|
13
|
+
execution:
|
|
14
|
+
command: >-
|
|
15
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
16
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
17
|
+
manifests/outputs/plugins/regex/success.yml -o
|
|
18
|
+
manifests/outputs/plugins/regex/success
|
|
19
|
+
environment:
|
|
20
|
+
if-version: 0.4.0
|
|
21
|
+
os: macOS
|
|
22
|
+
os-version: "13.2"
|
|
23
|
+
node-version: 18.14.2
|
|
24
|
+
date-time: 2024-07-02T20:23:25.744Z (UTC)
|
|
25
|
+
dependencies:
|
|
26
|
+
- "@babel/core@7.22.10"
|
|
27
|
+
- "@babel/preset-typescript@7.23.3"
|
|
28
|
+
- "@commitlint/cli@18.6.0"
|
|
29
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
30
|
+
- "@grnsft/if-core@0.0.10"
|
|
31
|
+
- "@jest/globals@29.7.0"
|
|
32
|
+
- "@types/jest@29.5.8"
|
|
33
|
+
- "@types/js-yaml@4.0.9"
|
|
34
|
+
- "@types/luxon@3.4.2"
|
|
35
|
+
- "@types/node@20.9.0"
|
|
36
|
+
- axios-mock-adapter@1.22.0
|
|
37
|
+
- axios@1.7.2
|
|
38
|
+
- cross-env@7.0.3
|
|
39
|
+
- csv-parse@5.5.6
|
|
40
|
+
- csv-stringify@6.4.6
|
|
41
|
+
- fixpack@4.0.0
|
|
42
|
+
- gts@5.2.0
|
|
43
|
+
- husky@8.0.3
|
|
44
|
+
- jest@29.7.0
|
|
45
|
+
- js-yaml@4.1.0
|
|
46
|
+
- lint-staged@15.2.2
|
|
47
|
+
- luxon@3.4.4
|
|
48
|
+
- release-it@16.3.0
|
|
49
|
+
- rimraf@5.0.5
|
|
50
|
+
- ts-command-line-args@2.5.1
|
|
51
|
+
- ts-jest@29.1.1
|
|
52
|
+
- typescript-cubic-spline@1.0.1
|
|
53
|
+
- typescript@5.2.2
|
|
54
|
+
- winston@3.11.0
|
|
55
|
+
- zod@3.22.4
|
|
56
|
+
status: success
|
|
57
|
+
tree:
|
|
58
|
+
children:
|
|
59
|
+
child:
|
|
60
|
+
pipeline:
|
|
61
|
+
compute:
|
|
62
|
+
- regex
|
|
63
|
+
inputs:
|
|
64
|
+
- timestamp: 2023-08-06T00:00
|
|
65
|
+
duration: 3600
|
|
66
|
+
physical-processor: >-
|
|
67
|
+
Intel® Xeon® Platinum 8272CL,Intel® Xeon® 8171M 2.1 GHz,Intel® Xeon®
|
|
68
|
+
E5-2673 v4 2.3 GHz,Intel® Xeon® E5-2673 v3 2.4 GHz
|
|
69
|
+
outputs:
|
|
70
|
+
- timestamp: 2023-08-06T00:00
|
|
71
|
+
duration: 3600
|
|
72
|
+
physical-processor: >-
|
|
73
|
+
Intel® Xeon® Platinum 8272CL,Intel® Xeon® 8171M 2.1 GHz,Intel® Xeon®
|
|
74
|
+
E5-2673 v4 2.3 GHz,Intel® Xeon® E5-2673 v3 2.4 GHz
|
|
75
|
+
cpu/name: >-
|
|
76
|
+
Intel® Xeon® Platinum 8272CL,Intel® Xeon® 8171M 2.1 GHz,Intel® Xeon® E5-2673 v4 2.3 GHz, Intel® Xeon® Platinum 8272CL,Intel® Xeon® 8171M 2.1 GHz,Intel® Xeon® E5-2673 v4 2.3 GHz
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
name: sci
|
|
2
|
+
description: failure with `config.sci.functional-unit` value being number
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
sci:
|
|
7
|
+
kind: plugin
|
|
8
|
+
method: Sci
|
|
9
|
+
path: builtin
|
|
10
|
+
execution:
|
|
11
|
+
status: fail
|
|
12
|
+
command: >-
|
|
13
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
14
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
15
|
+
manifests/outputs/plugins/sci/failure-invalid-config-value.yml -o
|
|
16
|
+
manifests/outputs/plugins/sci/failure-invalid-config-value
|
|
17
|
+
environment:
|
|
18
|
+
if-version: 0.4.0
|
|
19
|
+
os: macOS
|
|
20
|
+
os-version: "13.2"
|
|
21
|
+
node-version: 18.14.2
|
|
22
|
+
date-time: 2024-07-02T20:38:15.858Z (UTC)
|
|
23
|
+
dependencies:
|
|
24
|
+
- "@babel/core@7.22.10"
|
|
25
|
+
- "@babel/preset-typescript@7.23.3"
|
|
26
|
+
- "@commitlint/cli@18.6.0"
|
|
27
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
28
|
+
- "@grnsft/if-core@0.0.10"
|
|
29
|
+
- "@jest/globals@29.7.0"
|
|
30
|
+
- "@types/jest@29.5.8"
|
|
31
|
+
- "@types/js-yaml@4.0.9"
|
|
32
|
+
- "@types/luxon@3.4.2"
|
|
33
|
+
- "@types/node@20.9.0"
|
|
34
|
+
- axios-mock-adapter@1.22.0
|
|
35
|
+
- axios@1.7.2
|
|
36
|
+
- cross-env@7.0.3
|
|
37
|
+
- csv-parse@5.5.6
|
|
38
|
+
- csv-stringify@6.4.6
|
|
39
|
+
- fixpack@4.0.0
|
|
40
|
+
- gts@5.2.0
|
|
41
|
+
- husky@8.0.3
|
|
42
|
+
- jest@29.7.0
|
|
43
|
+
- js-yaml@4.1.0
|
|
44
|
+
- lint-staged@15.2.2
|
|
45
|
+
- luxon@3.4.4
|
|
46
|
+
- release-it@16.3.0
|
|
47
|
+
- rimraf@5.0.5
|
|
48
|
+
- ts-command-line-args@2.5.1
|
|
49
|
+
- ts-jest@29.1.1
|
|
50
|
+
- typescript-cubic-spline@1.0.1
|
|
51
|
+
- typescript@5.2.2
|
|
52
|
+
- winston@3.11.0
|
|
53
|
+
- zod@3.22.4
|
|
54
|
+
error: "InputValidationError: Required"
|
|
55
|
+
tree:
|
|
56
|
+
children:
|
|
57
|
+
child:
|
|
58
|
+
pipeline:
|
|
59
|
+
compute:
|
|
60
|
+
- sci
|
|
61
|
+
config:
|
|
62
|
+
sci:
|
|
63
|
+
functional-unit: 999
|
|
64
|
+
inputs:
|
|
65
|
+
- timestamp: 2023-07-06T00:00
|
|
66
|
+
duration: 3600
|
|
67
|
+
energy: 5
|
|
68
|
+
carbon-operational: 5
|
|
69
|
+
carbon-embodied: 0.02
|
|
70
|
+
requests: 100
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
name: sci
|
|
2
|
+
description: missing input value (carbon-embodied)
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
sci:
|
|
7
|
+
kind: plugin
|
|
8
|
+
method: Sci
|
|
9
|
+
path: builtin
|
|
10
|
+
global-config:
|
|
11
|
+
functional-unit: requests
|
|
12
|
+
execution:
|
|
13
|
+
status: fail
|
|
14
|
+
command: >-
|
|
15
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
16
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
17
|
+
manifests/outputs/plugins/sci/failure-missing-input-param.yml -o
|
|
18
|
+
manifests/outputs/plugins/sci/failure-missing-input-param
|
|
19
|
+
environment:
|
|
20
|
+
if-version: 0.4.0
|
|
21
|
+
os: macOS
|
|
22
|
+
os-version: "13.2"
|
|
23
|
+
node-version: 18.14.2
|
|
24
|
+
date-time: 2024-07-02T20:36:10.588Z (UTC)
|
|
25
|
+
dependencies:
|
|
26
|
+
- "@babel/core@7.22.10"
|
|
27
|
+
- "@babel/preset-typescript@7.23.3"
|
|
28
|
+
- "@commitlint/cli@18.6.0"
|
|
29
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
30
|
+
- "@grnsft/if-core@0.0.10"
|
|
31
|
+
- "@jest/globals@29.7.0"
|
|
32
|
+
- "@types/jest@29.5.8"
|
|
33
|
+
- "@types/js-yaml@4.0.9"
|
|
34
|
+
- "@types/luxon@3.4.2"
|
|
35
|
+
- "@types/node@20.9.0"
|
|
36
|
+
- axios-mock-adapter@1.22.0
|
|
37
|
+
- axios@1.7.2
|
|
38
|
+
- cross-env@7.0.3
|
|
39
|
+
- csv-parse@5.5.6
|
|
40
|
+
- csv-stringify@6.4.6
|
|
41
|
+
- fixpack@4.0.0
|
|
42
|
+
- gts@5.2.0
|
|
43
|
+
- husky@8.0.3
|
|
44
|
+
- jest@29.7.0
|
|
45
|
+
- js-yaml@4.1.0
|
|
46
|
+
- lint-staged@15.2.2
|
|
47
|
+
- luxon@3.4.4
|
|
48
|
+
- release-it@16.3.0
|
|
49
|
+
- rimraf@5.0.5
|
|
50
|
+
- ts-command-line-args@2.5.1
|
|
51
|
+
- ts-jest@29.1.1
|
|
52
|
+
- typescript-cubic-spline@1.0.1
|
|
53
|
+
- typescript@5.2.2
|
|
54
|
+
- winston@3.11.0
|
|
55
|
+
- zod@3.22.4
|
|
56
|
+
error: >-
|
|
57
|
+
InputValidationError: "carbon" parameter is required. Error code:
|
|
58
|
+
invalid_type.
|
|
59
|
+
tree:
|
|
60
|
+
children:
|
|
61
|
+
child:
|
|
62
|
+
pipeline:
|
|
63
|
+
compute:
|
|
64
|
+
- sci
|
|
65
|
+
inputs:
|
|
66
|
+
- timestamp: 2023-07-06T00:00
|
|
67
|
+
duration: 3600
|
|
68
|
+
energy: 5
|
|
69
|
+
carbon-operational: 5
|
|
70
|
+
requests: 100
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
name: sci
|
|
2
|
+
description: successful path
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
sci:
|
|
7
|
+
path: builtin
|
|
8
|
+
method: Sci
|
|
9
|
+
global-config:
|
|
10
|
+
functional-unit: requests
|
|
11
|
+
execution:
|
|
12
|
+
command: >-
|
|
13
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
14
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
15
|
+
manifests/outputs/plugins/sci/success.yml -o
|
|
16
|
+
manifests/outputs/plugins/sci/success.yml
|
|
17
|
+
environment:
|
|
18
|
+
if-version: 0.4.0
|
|
19
|
+
os: macOS
|
|
20
|
+
os-version: "13.2"
|
|
21
|
+
node-version: 18.14.2
|
|
22
|
+
date-time: 2024-07-02T20:35:12.024Z (UTC)
|
|
23
|
+
dependencies:
|
|
24
|
+
- "@babel/core@7.22.10"
|
|
25
|
+
- "@babel/preset-typescript@7.23.3"
|
|
26
|
+
- "@commitlint/cli@18.6.0"
|
|
27
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
28
|
+
- "@grnsft/if-core@0.0.10"
|
|
29
|
+
- "@jest/globals@29.7.0"
|
|
30
|
+
- "@types/jest@29.5.8"
|
|
31
|
+
- "@types/js-yaml@4.0.9"
|
|
32
|
+
- "@types/luxon@3.4.2"
|
|
33
|
+
- "@types/node@20.9.0"
|
|
34
|
+
- axios-mock-adapter@1.22.0
|
|
35
|
+
- axios@1.7.2
|
|
36
|
+
- cross-env@7.0.3
|
|
37
|
+
- csv-parse@5.5.6
|
|
38
|
+
- csv-stringify@6.4.6
|
|
39
|
+
- fixpack@4.0.0
|
|
40
|
+
- gts@5.2.0
|
|
41
|
+
- husky@8.0.3
|
|
42
|
+
- jest@29.7.0
|
|
43
|
+
- js-yaml@4.1.0
|
|
44
|
+
- lint-staged@15.2.2
|
|
45
|
+
- luxon@3.4.4
|
|
46
|
+
- release-it@16.3.0
|
|
47
|
+
- rimraf@5.0.5
|
|
48
|
+
- ts-command-line-args@2.5.1
|
|
49
|
+
- ts-jest@29.1.1
|
|
50
|
+
- typescript-cubic-spline@1.0.1
|
|
51
|
+
- typescript@5.2.2
|
|
52
|
+
- winston@3.11.0
|
|
53
|
+
- zod@3.22.4
|
|
54
|
+
status: success
|
|
55
|
+
tree:
|
|
56
|
+
children:
|
|
57
|
+
child:
|
|
58
|
+
pipeline:
|
|
59
|
+
compute:
|
|
60
|
+
- sci
|
|
61
|
+
inputs:
|
|
62
|
+
- timestamp: 2023-07-06T00:00
|
|
63
|
+
duration: 3600
|
|
64
|
+
energy: 5
|
|
65
|
+
carbon-operational: 5
|
|
66
|
+
carbon-embodied: 0.02
|
|
67
|
+
carbon: 5.02
|
|
68
|
+
requests: 100
|
|
69
|
+
outputs:
|
|
70
|
+
- timestamp: 2023-07-06T00:00
|
|
71
|
+
duration: 3600
|
|
72
|
+
energy: 5
|
|
73
|
+
carbon-operational: 5
|
|
74
|
+
carbon-embodied: 0.02
|
|
75
|
+
carbon: 5.02
|
|
76
|
+
requests: 100
|
|
77
|
+
sci: 0.050199999999999995
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: sci-embodied
|
|
2
|
+
description: >-
|
|
3
|
+
failure with `defaults.device/emissions-embodied` being string instead of
|
|
4
|
+
number
|
|
5
|
+
tags: null
|
|
6
|
+
initialize:
|
|
7
|
+
plugins:
|
|
8
|
+
sci-embodied:
|
|
9
|
+
method: SciEmbodied
|
|
10
|
+
path: builtin
|
|
11
|
+
execution:
|
|
12
|
+
status: fail
|
|
13
|
+
command: >-
|
|
14
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
15
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
16
|
+
manifests/outputs/plugins/sci-embodied/failure-invalid-default-emission-value.yml
|
|
17
|
+
-o
|
|
18
|
+
manifests/outputs/plugins/sci-embodied/failure-invalid-default-emission-value
|
|
19
|
+
environment:
|
|
20
|
+
if-version: 0.4.0
|
|
21
|
+
os: macOS
|
|
22
|
+
os-version: "13.2"
|
|
23
|
+
node-version: 18.14.2
|
|
24
|
+
date-time: 2024-07-02T20:49:08.280Z (UTC)
|
|
25
|
+
dependencies:
|
|
26
|
+
- "@babel/core@7.22.10"
|
|
27
|
+
- "@babel/preset-typescript@7.23.3"
|
|
28
|
+
- "@commitlint/cli@18.6.0"
|
|
29
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
30
|
+
- "@grnsft/if-core@0.0.10"
|
|
31
|
+
- "@jest/globals@29.7.0"
|
|
32
|
+
- "@types/jest@29.5.8"
|
|
33
|
+
- "@types/js-yaml@4.0.9"
|
|
34
|
+
- "@types/luxon@3.4.2"
|
|
35
|
+
- "@types/node@20.9.0"
|
|
36
|
+
- axios-mock-adapter@1.22.0
|
|
37
|
+
- axios@1.7.2
|
|
38
|
+
- cross-env@7.0.3
|
|
39
|
+
- csv-parse@5.5.6
|
|
40
|
+
- csv-stringify@6.4.6
|
|
41
|
+
- fixpack@4.0.0
|
|
42
|
+
- gts@5.2.0
|
|
43
|
+
- husky@8.0.3
|
|
44
|
+
- jest@29.7.0
|
|
45
|
+
- js-yaml@4.1.0
|
|
46
|
+
- lint-staged@15.2.2
|
|
47
|
+
- luxon@3.4.4
|
|
48
|
+
- release-it@16.3.0
|
|
49
|
+
- rimraf@5.0.5
|
|
50
|
+
- ts-command-line-args@2.5.1
|
|
51
|
+
- ts-jest@29.1.1
|
|
52
|
+
- typescript-cubic-spline@1.0.1
|
|
53
|
+
- typescript@5.2.2
|
|
54
|
+
- winston@3.11.0
|
|
55
|
+
- zod@3.22.4
|
|
56
|
+
error: >-
|
|
57
|
+
InputValidationError: "device/emissions-embodied" parameter is invalid
|
|
58
|
+
number. please provide it as `gco2e` to input. Error code: invalid_union.
|
|
59
|
+
tree:
|
|
60
|
+
children:
|
|
61
|
+
child:
|
|
62
|
+
pipeline:
|
|
63
|
+
compute:
|
|
64
|
+
- sci-embodied
|
|
65
|
+
defaults:
|
|
66
|
+
device/emissions-embodied: fail
|
|
67
|
+
time-reserved: 3600
|
|
68
|
+
device/expected-lifespan: 94608000
|
|
69
|
+
resources-reserved: 1
|
|
70
|
+
resources-total: 8
|
|
71
|
+
inputs:
|
|
72
|
+
- timestamp: 2023-07-06T00:00
|
|
73
|
+
duration: 3600
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
name: sci-embodied
|
|
2
|
+
description: missing device/expected-lifespan
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
sci-embodied:
|
|
7
|
+
method: SciEmbodied
|
|
8
|
+
path: builtin
|
|
9
|
+
execution:
|
|
10
|
+
status: fail
|
|
11
|
+
command: >-
|
|
12
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
13
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
14
|
+
manifests/outputs/plugins/sci-embodied/failure-missing-expected-lifespan.yml
|
|
15
|
+
-o manifests/outputs/plugins/sci-embodied/failure-missing-expected-lifespan
|
|
16
|
+
environment:
|
|
17
|
+
if-version: 0.4.0
|
|
18
|
+
os: macOS
|
|
19
|
+
os-version: "13.2"
|
|
20
|
+
node-version: 18.14.2
|
|
21
|
+
date-time: 2024-07-02T20:42:51.951Z (UTC)
|
|
22
|
+
dependencies:
|
|
23
|
+
- "@babel/core@7.22.10"
|
|
24
|
+
- "@babel/preset-typescript@7.23.3"
|
|
25
|
+
- "@commitlint/cli@18.6.0"
|
|
26
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
27
|
+
- "@grnsft/if-core@0.0.10"
|
|
28
|
+
- "@jest/globals@29.7.0"
|
|
29
|
+
- "@types/jest@29.5.8"
|
|
30
|
+
- "@types/js-yaml@4.0.9"
|
|
31
|
+
- "@types/luxon@3.4.2"
|
|
32
|
+
- "@types/node@20.9.0"
|
|
33
|
+
- axios-mock-adapter@1.22.0
|
|
34
|
+
- axios@1.7.2
|
|
35
|
+
- cross-env@7.0.3
|
|
36
|
+
- csv-parse@5.5.6
|
|
37
|
+
- csv-stringify@6.4.6
|
|
38
|
+
- fixpack@4.0.0
|
|
39
|
+
- gts@5.2.0
|
|
40
|
+
- husky@8.0.3
|
|
41
|
+
- jest@29.7.0
|
|
42
|
+
- js-yaml@4.1.0
|
|
43
|
+
- lint-staged@15.2.2
|
|
44
|
+
- luxon@3.4.4
|
|
45
|
+
- release-it@16.3.0
|
|
46
|
+
- rimraf@5.0.5
|
|
47
|
+
- ts-command-line-args@2.5.1
|
|
48
|
+
- ts-jest@29.1.1
|
|
49
|
+
- typescript-cubic-spline@1.0.1
|
|
50
|
+
- typescript@5.2.2
|
|
51
|
+
- winston@3.11.0
|
|
52
|
+
- zod@3.22.4
|
|
53
|
+
error: >-
|
|
54
|
+
InputValidationError: "device/expected-lifespan" parameter is required.
|
|
55
|
+
Error code: invalid_union.
|
|
56
|
+
tree:
|
|
57
|
+
children:
|
|
58
|
+
child:
|
|
59
|
+
pipeline:
|
|
60
|
+
compute:
|
|
61
|
+
- sci-embodied
|
|
62
|
+
defaults:
|
|
63
|
+
device/emissions-embodied: 1533.12
|
|
64
|
+
time-reserved: 3600
|
|
65
|
+
resources-reserved: 1
|
|
66
|
+
resources-total: 8
|
|
67
|
+
inputs:
|
|
68
|
+
- timestamp: 2023-07-06T00:00
|
|
69
|
+
duration: 3600
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
name: sci-embodied
|
|
2
|
+
description: successful path
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
sci-embodied:
|
|
7
|
+
path: builtin
|
|
8
|
+
method: SciEmbodied
|
|
9
|
+
execution:
|
|
10
|
+
command: >-
|
|
11
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
12
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
13
|
+
manifests/outputs/plugins/sci-embodied/success.yml -o
|
|
14
|
+
manifests/outputs/plugins/sci-embodied/success
|
|
15
|
+
environment:
|
|
16
|
+
if-version: 0.4.0
|
|
17
|
+
os: macOS
|
|
18
|
+
os-version: "13.2"
|
|
19
|
+
node-version: 18.14.2
|
|
20
|
+
date-time: 2024-07-02T20:42:03.186Z (UTC)
|
|
21
|
+
dependencies:
|
|
22
|
+
- "@babel/core@7.22.10"
|
|
23
|
+
- "@babel/preset-typescript@7.23.3"
|
|
24
|
+
- "@commitlint/cli@18.6.0"
|
|
25
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
26
|
+
- "@grnsft/if-core@0.0.10"
|
|
27
|
+
- "@jest/globals@29.7.0"
|
|
28
|
+
- "@types/jest@29.5.8"
|
|
29
|
+
- "@types/js-yaml@4.0.9"
|
|
30
|
+
- "@types/luxon@3.4.2"
|
|
31
|
+
- "@types/node@20.9.0"
|
|
32
|
+
- axios-mock-adapter@1.22.0
|
|
33
|
+
- axios@1.7.2
|
|
34
|
+
- cross-env@7.0.3
|
|
35
|
+
- csv-parse@5.5.6
|
|
36
|
+
- csv-stringify@6.4.6
|
|
37
|
+
- fixpack@4.0.0
|
|
38
|
+
- gts@5.2.0
|
|
39
|
+
- husky@8.0.3
|
|
40
|
+
- jest@29.7.0
|
|
41
|
+
- js-yaml@4.1.0
|
|
42
|
+
- lint-staged@15.2.2
|
|
43
|
+
- luxon@3.4.4
|
|
44
|
+
- release-it@16.3.0
|
|
45
|
+
- rimraf@5.0.5
|
|
46
|
+
- ts-command-line-args@2.5.1
|
|
47
|
+
- ts-jest@29.1.1
|
|
48
|
+
- typescript-cubic-spline@1.0.1
|
|
49
|
+
- typescript@5.2.2
|
|
50
|
+
- winston@3.11.0
|
|
51
|
+
- zod@3.22.4
|
|
52
|
+
status: success
|
|
53
|
+
tree:
|
|
54
|
+
children:
|
|
55
|
+
child:
|
|
56
|
+
pipeline:
|
|
57
|
+
compute:
|
|
58
|
+
- sci-embodied
|
|
59
|
+
defaults:
|
|
60
|
+
device/emissions-embodied: 1533.12
|
|
61
|
+
time-reserved: 3600
|
|
62
|
+
device/expected-lifespan: 94608000
|
|
63
|
+
resources-reserved: 1
|
|
64
|
+
resources-total: 8
|
|
65
|
+
inputs:
|
|
66
|
+
- timestamp: 2023-07-06T00:00
|
|
67
|
+
duration: 3600
|
|
68
|
+
outputs:
|
|
69
|
+
- timestamp: 2023-07-06T00:00
|
|
70
|
+
duration: 3600
|
|
71
|
+
device/emissions-embodied: 1533.12
|
|
72
|
+
time-reserved: 3600
|
|
73
|
+
device/expected-lifespan: 94608000
|
|
74
|
+
resources-reserved: 1
|
|
75
|
+
resources-total: 8
|
|
76
|
+
carbon-embodied: 0.007292237442922374
|