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

Release v0.6.0-beta.0 #947

Merged
merged 331 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
2cac2e3
feat(package): add if-csv script
manushak Jul 8, 2024
f332aa5
Merge pull request #736 from green-coding-solutions/eco-ci
narekhovhannisyan Jul 8, 2024
03f3c9f
Merge branch 'main' into stdout-default
manushak Jul 8, 2024
253bdab
Merge branch 'stdout-default' of https://github.com/Green-Software-Fo…
manushak Jul 8, 2024
ef7d542
Merge branch 'main' into fix-if-check-log
manushak Jul 8, 2024
52e14b3
fix(src): fix merge issue
manushak Jul 8, 2024
3c33bde
fix(builtins): validate duration to be gt 0 in mock observations
narekhovhannisyan Jul 9, 2024
c4ecbb2
Merge pull request #897 from Green-Software-Foundation/fix-mockobs-du…
jmcook1186 Jul 9, 2024
01ace66
fix(config): add failure string for if-csv
manushak Jul 10, 2024
ebf1770
fix(util): add getManifestData function
manushak Jul 10, 2024
083340d
fix(src): update logix to accpet executed manifest
manushak Jul 10, 2024
bcc872f
test(util): add tests for getManifestData function
manushak Jul 10, 2024
752c014
fix(package): add `if-csv` into package-loc.json
manushak Jul 10, 2024
96f086c
fix(util): improve getManifestData function
manushak Jul 10, 2024
9d8d1fd
fix(util): improve getManifestData function
manushak Jul 10, 2024
4fbb224
Merge pull request #875 from Green-Software-Foundation/stdout-default
narekhovhannisyan Jul 10, 2024
789cbf0
Merge pull request #889 from Green-Software-Foundation/fix-if-check-log
narekhovhannisyan Jul 10, 2024
3474745
chore(src): fetch changes from main
narekhovhannisyan Jul 10, 2024
179238c
test(util): fix tests conflict after merging with the main
manushak Jul 10, 2024
e66b168
fix(util): remove `params` and update `aggregation` in the manifest s…
manushak Jul 11, 2024
2cc4398
fix(src): remove all files realted to params
manushak Jul 11, 2024
c17a8f2
fix(src): remove `override-params` from config and from `IfRunArgs` i…
manushak Jul 11, 2024
793ee6d
fix(src): remove redundant types and strings
manushak Jul 11, 2024
99e4336
fix(util): remove `override-params` from the args.ts
manushak Jul 11, 2024
25be491
feat(types): update aggregation types
manushak Jul 11, 2024
9e484b2
feat(util): update metrics type
manushak Jul 11, 2024
1aca293
feat(src): add temp workaround to solve issue related to timeSync
manushak Jul 11, 2024
061df46
feat(src): update load function to not deal with params
manushak Jul 11, 2024
c0556cc
fix(util): remove `SYNCING_PARAMETERS` from debugger log
manushak Jul 11, 2024
a4a9fc5
feat(src): update `getAggregationMethod` function call
manushak Jul 11, 2024
84cfc8f
test(src): update tests according to changes
manushak Jul 11, 2024
a83cc42
fix(config): remove message
manushak Jul 11, 2024
608bd8e
fix(lib): fix aggregation method check
manushak Jul 11, 2024
ff60513
docs(src): update documentations
manushak Jul 11, 2024
4a5e15d
test(mocks): update mocks
manushak Jul 11, 2024
6dd3984
fix(manifests): update aggregation section in the manifests
manushak Jul 11, 2024
03275e3
feat(builtins): handle multiple matches in extractMatching function
mouhamadalmounayar Jul 10, 2024
ad1c825
Merge pull request #901 from mouhamadalmounayar/regex-multiple-matches
jmcook1186 Jul 12, 2024
548c029
feat(util): add `parameter-metadata` into manifest validation schema
manushak Jul 12, 2024
6a25849
feat(lib): add `parameter-metadata` as a second parameter of the plugins
manushak Jul 12, 2024
16517ad
feat(src): update `Coefficient`, `Copy`, `Divide` and `Exponent` plug…
manushak Jul 12, 2024
9b3890e
feat(src): update `Interpolation`, `Multiply`, `Regex` and `Sum` plug…
manushak Jul 12, 2024
61b089d
feat(src): update `Sci`, `SciEmbodied` and `Subtract` plugins and the…
manushak Jul 12, 2024
2574f4f
test(builtins): add `parametersMetadata` into the tests
manushak Jul 12, 2024
029978d
feat(util): add explain and explainer properties in the manifest vali…
manushak Jul 16, 2024
9c7a7f0
feat(types): add `ExplainParams` type
manushak Jul 16, 2024
4ecc3d7
feat(lib): add `explain` logic
manushak Jul 16, 2024
2e35df3
test(lib): add tests for
manushak Jul 16, 2024
3a9023a
feat(lib): add logic in the compute.ts to add explain data in the sto…
manushak Jul 16, 2024
41f9816
feat(src): add logic to compose explain data when it's true
manushak Jul 16, 2024
e609d0c
fix(src): improve manifestData check
manushak Jul 16, 2024
669a422
fix(src): rename the `executeCsv` function into `generateCsv`
manushak Jul 16, 2024
3ea46b3
Merge pull request #891 from Green-Software-Foundation/if-csv
narekhovhannisyan Jul 16, 2024
55276c9
Merge pull request #908 from Green-Software-Foundation/remove-overrid…
narekhovhannisyan Jul 16, 2024
64e686d
feat(util): add observe, regroup and compute flags
narekhovhannisyan Jul 17, 2024
43bbe2c
feat(types): add observe, regroup and compute flags to process args
narekhovhannisyan Jul 17, 2024
609d212
feat(types): add observe, regroup and compute flags to compute
narekhovhannisyan Jul 17, 2024
48746cb
feat(lib): init regroup
narekhovhannisyan Jul 17, 2024
f3af54f
feat(lib): tune compute to suport phased execution
narekhovhannisyan Jul 17, 2024
bfd58ea
feat(config): add regroup error
narekhovhannisyan Jul 17, 2024
5cbc710
feat(config): add phased flags to if-run
narekhovhannisyan Jul 17, 2024
f0df9f2
revert(builtins): remove groupby
narekhovhannisyan Jul 17, 2024
7137fc6
revert(builtins): drop groop-by plugin
narekhovhannisyan Jul 17, 2024
7a08226
feat(src): in if-run introduce phased execution flags
narekhovhannisyan Jul 17, 2024
0fcd991
fix(util): in if-env args use args and help directly
narekhovhannisyan Jul 17, 2024
27cc830
refactor(config): remove if-env from config to make access to args ea…
narekhovhannisyan Jul 17, 2024
5a91cde
test(lib): init regroup instead of group-by
narekhovhannisyan Jul 17, 2024
d00e842
test(lib): fix test after introducing phased execution
narekhovhannisyan Jul 17, 2024
3a00c90
feat(manifests): remove newline in cloud metadata devide
narekhovhannisyan Jul 17, 2024
7bb370b
feat(manifests): init scenarios for phased execution
narekhovhannisyan Jul 17, 2024
a8fcb3e
chore(src): fetch changes from main branch
narekhovhannisyan Jul 17, 2024
8ef9edd
fix(manifests): newline at the end of scenario 1
narekhovhannisyan Jul 17, 2024
d2d2c21
chore(manifests): updated some manifests for phased execution
MariamKhalatova Jul 17, 2024
86322b4
Merge branch 'main' into params-metadata
manushak Jul 18, 2024
b20c3bd
fix(package): update if-core version
manushak Jul 18, 2024
5a78476
test(builtins): update rege test
manushak Jul 18, 2024
f17895c
Merge branch 'params-metadata' into explain-feature
manushak Jul 18, 2024
ae7ad73
fix(src): rename `MissingPluginDependenciesError` custom error
manushak Jul 18, 2024
26fc92d
revert(manifests): drop not builtin divide
MariamKhalatova Jul 19, 2024
145814b
feat(manifests): add outputs to pipelines
MariamKhalatova Jul 19, 2024
ed6bb38
fix(manifests): rename plugins to builtins
MariamKhalatova Jul 19, 2024
85ae2f5
feat(lib): update compute documentation
narekhovhannisyan Jul 19, 2024
d379036
fix(lib): tune regroup docs, types
narekhovhannisyan Jul 19, 2024
55bbc58
fix(manifests): tune mock observation settings to match time sync
MariamKhalatova Jul 20, 2024
9644583
Merge pull request #915 from Green-Software-Foundation/update-manifes…
narekhovhannisyan Jul 20, 2024
2b5a591
Update src/if-run/builtins/multiply/README.md
manushak Jul 22, 2024
9ed8e1a
Update src/if-run/builtins/multiply/README.md
manushak Jul 22, 2024
4fdd48f
Merge pull request #911 from Green-Software-Foundation/params-metadata
jmcook1186 Jul 22, 2024
2bf8e47
feat(package): update if-core version
manushak Jul 23, 2024
fdced82
feat(util): add `aggregationMethod` into manifest schema
manushak Jul 23, 2024
dfcd5ea
feat(builtins): add `aggregationMethod` into plugins
manushak Jul 23, 2024
90f861f
test(builtins): update test according to changes
manushak Jul 23, 2024
192f261
feat(src): add `AggregationParamsWithoutType` type and update `storeA…
manushak Jul 23, 2024
d16ba4e
feat(util): add `storeAggregationMethods` functionality
manushak Jul 23, 2024
3836eb9
test(util): add tests for `storeAggregationMethods` function
manushak Jul 23, 2024
4b20ff0
feat(src): call `storeAggregationMethods` function from impactEngine
manushak Jul 23, 2024
24d6474
fix(manifests): update manifests with time-sync and mock-observations
manushak Jul 23, 2024
6e612f0
feat(package): update if-core version
manushak Jul 24, 2024
72db420
test(builtins): fix time-sync tests error messages
manushak Jul 24, 2024
44c74ec
fix(manifests): rename 'aggregationMethod' to 'aggregation-method'
manushak Jul 24, 2024
cf7f3ba
fix(util): rename 'aggregationMethod' to 'aggregation-method'
manushak Jul 24, 2024
8dbd79d
fix(builtins): rename 'aggregationMethod' to 'aggregation-method'
manushak Jul 24, 2024
8537a3e
test(util): rename 'aggregationMethod' to 'aggregation-method'
manushak Jul 24, 2024
78474c5
Merge pull request #913 from Green-Software-Foundation/explain-feature
manushak Jul 24, 2024
3024381
feat(types): add time sync to compute
narekhovhannisyan Jul 26, 2024
77cc1f2
feat(lib): add time sync
narekhovhannisyan Jul 26, 2024
5c7ef1d
feat(lib): add time sync logic yo initialize
narekhovhannisyan Jul 26, 2024
0cbb144
feat(lib): add time sync logic to compute
narekhovhannisyan Jul 26, 2024
20f7441
feat(util): add time sync message
narekhovhannisyan Jul 26, 2024
d44a184
revert(builtins): drop time sync
narekhovhannisyan Jul 26, 2024
fcdaae0
feat(src): pass time sync config to compute
narekhovhannisyan Jul 26, 2024
efa9983
feat(util): add time sync yo validations
narekhovhannisyan Jul 26, 2024
1a221fa
test(lib): move time sync to lib
narekhovhannisyan Jul 26, 2024
f1f090a
test(lib): update and add cases to initialize
narekhovhannisyan Jul 26, 2024
1ac5038
test(lib): update and add cases to compute
narekhovhannisyan Jul 26, 2024
679e8b2
chore(src): fetch changes from main
narekhovhannisyan Jul 26, 2024
49a42d5
feat(.github): init dispatch workflow
narekhovhannisyan Jul 26, 2024
91d4115
Merge branch 'main' into aggregation-method
manushak Jul 26, 2024
725fcfd
feat(package): update if-core version
manushak Jul 26, 2024
14a2d1e
test(lib): fix git and ts waning on these tests
manushak Jul 26, 2024
bbb219d
docs(builtins): add `aggregation-method` to the docs
manushak Jul 26, 2024
9c2b9c2
Merge pull request #919 from Green-Software-Foundation/aggregation-me…
narekhovhannisyan Jul 29, 2024
e08c326
chore(src): fetch updates from main
narekhovhannisyan Jul 29, 2024
d7a8853
chore(src): fetch updates from origin
narekhovhannisyan Jul 29, 2024
25c5f12
chore(src): fetch changes fro main
MariamKhalatova Jul 30, 2024
e53e9fe
chore(src): fetch changes from distinct execution
narekhovhannisyan Jul 30, 2024
de4866d
feat(src): drop time sync from plugins after exec
narekhovhannisyan Jul 31, 2024
88d3d99
fix(manifests): update pipeline with mocks
MariamKhalatova Jul 31, 2024
6eac818
fix(manifests): update pipeline with aggregate
MariamKhalatova Jul 31, 2024
cfa1470
fix(manifests): remove unused param from pipeline with aggregate
MariamKhalatova Jul 31, 2024
faeaf6f
fix(manifests): update nesting pipeline
MariamKhalatova Jul 31, 2024
b615bc6
fix(manifests): update mock obs time sync
MariamKhalatova Jul 31, 2024
fbeff34
revert(types): drop isGroupBy interface
narekhovhannisyan Jul 31, 2024
b44e95f
fix(types): use plugin options in explain
narekhovhannisyan Jul 31, 2024
45ce81f
fix(lib): tune types in initialize
narekhovhannisyan Jul 31, 2024
2ab3e15
fix(util): make plugins optional
narekhovhannisyan Jul 31, 2024
7fc1882
fix(lib): tune types in explain
narekhovhannisyan Jul 31, 2024
8450286
fix(lib): fallback pipeline to empty object if missing, fix regroup p…
narekhovhannisyan Jul 31, 2024
593c7af
feat(builtins): update time sync success manifest
narekhovhannisyan Jul 31, 2024
7784397
Merge pull request #926 from Green-Software-Foundation/update-output-…
MariamKhalatova Aug 1, 2024
b4eb9e6
Merge pull request #928 from Green-Software-Foundation/update-output-…
MariamKhalatova Aug 1, 2024
485ca1a
Merge pull request #921 from Green-Software-Foundation/time-sync
narekhovhannisyan Aug 1, 2024
62e20ba
feat(manifests): convert to coefficient samples to phased exec
MariamKhalatova Aug 1, 2024
cf920fa
feat(manifests): convert to cloud metadata samples to phased exec
MariamKhalatova Aug 1, 2024
0b39b2e
feat(manifests): convert to region metadata samples to phased exec
MariamKhalatova Aug 1, 2024
623a09b
feat(manifests): convert tdp finder samples to phased exec
MariamKhalatova Aug 1, 2024
bbfb0a9
feat(manifests): convert divide samples to phased exec
MariamKhalatova Aug 1, 2024
f76459c
feat(manifests): drop node config from divide sample
MariamKhalatova Aug 1, 2024
2a4cab3
feat(manifests): convert exponent samples to phased exec
MariamKhalatova Aug 1, 2024
c7d2b8b
feat(manifests): convert groupby samples to phased exec
MariamKhalatova Aug 1, 2024
3af0dcf
feat(manifests): move regroup to features
MariamKhalatova Aug 1, 2024
91b11d2
feat(manifests): convert interpolation samples to phased exec
MariamKhalatova Aug 1, 2024
dbe94cb
feat(manifests): convert mock observation samples to phased exec
MariamKhalatova Aug 1, 2024
d72228c
feat(manifests): convert multiply samples to phased exec
MariamKhalatova Aug 1, 2024
8585f55
feat(manifests): convert regex samples to phased exec
MariamKhalatova Aug 1, 2024
5581dd1
feat(manifests): convert sci samples to phased exec
MariamKhalatova Aug 1, 2024
fc7fe2f
feat(manifests): convert sci embodied samples to phased exec
MariamKhalatova Aug 1, 2024
1ee49b7
feat(manifests): convert shell embodied samples to phased exec
MariamKhalatova Aug 1, 2024
779c0dd
feat(manifests): convert sum samples to phased exec
MariamKhalatova Aug 1, 2024
4d73983
feat(manifests): convert subtract samples to phased exec
MariamKhalatova Aug 1, 2024
a2efb70
fix(util): make time sync non nullable
narekhovhannisyan Aug 1, 2024
e9bb9ab
feat(manifests): convert time sync samples to phased exec
MariamKhalatova Aug 1, 2024
30b6241
chore(src): fetch latest changes from main
MariamKhalatova Aug 1, 2024
81355e7
feat(manifests): convert pipeline samples to phased exec
MariamKhalatova Aug 1, 2024
962ef45
chore(src): fetch changes from distinct execution
MariamKhalatova Aug 1, 2024
6e6bb63
feat(util): add parameter metadata to time sync
narekhovhannisyan Aug 1, 2024
08ed518
feat(lib): add parameter metadata initialize/time sync
narekhovhannisyan Aug 1, 2024
fa07847
chore(src): fetch changes from distinc execution
MariamKhalatova Aug 1, 2024
f6f1e2f
feat(src): move store aggregation before initializing plugin
manushak Aug 2, 2024
c2dc2e1
feat(lib): store aggregation from plugins
manushak Aug 2, 2024
cf115ed
fix(builtins): add missing `aggregation-method` into sci-embodied
manushak Aug 2, 2024
067c267
feat(types): removed `GroupByPlugin` type
manushak Aug 2, 2024
8717017
revert(builtins): bring time sync back
narekhovhannisyan Aug 2, 2024
201237e
revert(lib): changes on initialize for time sync
narekhovhannisyan Aug 2, 2024
990ea8c
revert(lib): changes on compute for time sync
narekhovhannisyan Aug 2, 2024
43f3a16
revert(config): drop time sync init string
narekhovhannisyan Aug 2, 2024
66206de
revert(builtins): re-export time sync
narekhovhannisyan Aug 2, 2024
414b701
test(lib): revert time sync changes
narekhovhannisyan Aug 2, 2024
c20c6dc
chore(src): fetch changes from 'move-time-sync-back'
MariamKhalatova Aug 2, 2024
0647800
feat(manifests): convert pipelines to phased exec
MariamKhalatova Aug 2, 2024
5fcfe93
feat(manifests): convert features to phased exec
MariamKhalatova Aug 2, 2024
0b4574a
feat(manifests): move time sync back to builtins
MariamKhalatova Aug 2, 2024
faf2ecf
feat(manifests): init if diff outputs as a sample
MariamKhalatova Aug 2, 2024
753a361
feat(manifests): convert bugs to phased exec
MariamKhalatova Aug 2, 2024
d9c4c94
feat(manifests): convert builtins to phased exec
MariamKhalatova Aug 2, 2024
7cbcf86
feat(manifests): convert mockobs success to phased exec
MariamKhalatova Aug 2, 2024
bec7f95
Update manifests/examples/builtins/time-sync/success.yml
narekhovhannisyan Aug 2, 2024
78b6bab
revert(types): drop type sync types from compute
narekhovhannisyan Aug 2, 2024
ed0eb9c
revert(util): drop type sync from manifest validation
narekhovhannisyan Aug 2, 2024
ca7ccc6
revert(src): drop time sync check from if-run index
narekhovhannisyan Aug 2, 2024
99b5dc4
chore(src): fetch changes from main
narekhovhannisyan Aug 2, 2024
c1214b2
chore(src): fetch changes from move time sync back
narekhovhannisyan Aug 2, 2024
a48a395
chore(src): fetch latest changes from remote
narekhovhannisyan Aug 2, 2024
0fa4aa7
Merge pull request #929 from Green-Software-Foundation/distinct-manif…
narekhovhannisyan Aug 2, 2024
93d5ab2
Merge pull request #930 from Green-Software-Foundation/move-time-sync…
narekhovhannisyan Aug 2, 2024
7f1f1bc
fix(util): fix package name
manushak Aug 2, 2024
c0c6b29
Merge pull request #931 from Green-Software-Foundation/fix-package-name
narekhovhannisyan Aug 2, 2024
bf2e26c
fix(util): add missed new line at the end of package.json
manushak Aug 5, 2024
5dc924c
test(mocks): add mock function for fs.appendFunction
manushak Aug 5, 2024
7d10693
test(mocks): remove unneseccary comment
manushak Aug 5, 2024
96d5aeb
docs(builtins): update plugins readme file to be relevant to phased e…
manushak Aug 5, 2024
4e27cde
fix(manifests): update some manifests names
manushak Aug 5, 2024
83a0778
test(mocks): update mock manifest example
manushak Aug 5, 2024
b7f433a
test(mocks): update mock-manifest.yaml
manushak Aug 5, 2024
949a34a
fix(manifests): remove group-by from plugins
manushak Aug 5, 2024
557de44
fix(config): update if-env template manifest
manushak Aug 5, 2024
5c59248
docs(doc): update migration guide readme file
manushak Aug 5, 2024
7e6f61b
feat(.github): brake down worflow to multiple jobs
narekhovhannisyan Aug 6, 2024
c7cab7f
Merge pull request #933 from Green-Software-Foundation/if-check-new-line
narekhovhannisyan Aug 6, 2024
53c4ffa
Merge pull request #935 from Green-Software-Foundation/update-readme-…
narekhovhannisyan Aug 6, 2024
c5814ef
fix(manifests): convert if diff outputs to phased exec
MariamKhalatova Aug 6, 2024
90e7fe3
fix(manifests): convert nesting output to phased exec
MariamKhalatova Aug 6, 2024
0e753d0
fix(manifests): move mock observations to observe
MariamKhalatova Aug 6, 2024
f4330c3
Merge pull request #936 from Green-Software-Foundation/fix-manifests
jmcook1186 Aug 6, 2024
237f44b
fix(config): update `REGROUP_ERROR` message
manushak Aug 6, 2024
a6abeed
fix(lib): fix regroup validation
manushak Aug 6, 2024
98bdee7
test(lib): update error messages
manushak Aug 6, 2024
d673151
feat(config): add EMPTY_PIPELINE to strings
narekhovhannisyan Aug 7, 2024
4f6dc3d
feat(lib): add empty pipeline message
narekhovhannisyan Aug 7, 2024
c4cf1f1
Merge pull request #940 from Green-Software-Foundation/regroup-fix
jmcook1186 Aug 7, 2024
8c41f70
fix(manifests): remove `method` from aggregation section
manushak Aug 7, 2024
45821ad
fix(util): update manifest schema
manushak Aug 7, 2024
719a239
fix(lib): update aggregation logic without `method`
manushak Aug 7, 2024
6eeba65
fix(util): update aggregation logic
manushak Aug 7, 2024
914b8eb
fix(types): update aggregation types
manushak Aug 7, 2024
c699497
fix(types): update aggregation types
manushak Aug 7, 2024
be28ccd
fix(src): fix adding aggregation metric into storage
manushak Aug 7, 2024
1612a62
test(src): update tests accroding to changes
manushak Aug 7, 2024
27fce36
fix(doc): update aggregation part in the doc
manushak Aug 7, 2024
20df97f
fix(doc): add missing `aggregation-method`
manushak Aug 7, 2024
86f79f1
fix(builtins): merge `parameter-metdata` if there is harcoded data
manushak Aug 7, 2024
eef1183
Merge pull request #943 from Green-Software-Foundation/fix-aggregatio…
narekhovhannisyan Aug 8, 2024
1b8d5f1
Update src/if-run/config/strings.ts
narekhovhannisyan Aug 8, 2024
f2fe489
fix(builtins): remove wrong hard coded parameter metadata
manushak Aug 8, 2024
29f2916
fix(lib): do more advanced checking on pipeline
narekhovhannisyan Aug 8, 2024
7f7f717
Merge branch 'emit-warning' of github.com:Green-Software-Foundation/i…
narekhovhannisyan Aug 8, 2024
340c07e
feat(builtins): move time-sync to appropriate folder
narekhovhannisyan Aug 8, 2024
42d6a77
feat(util): omit aggregation param if method is not found
narekhovhannisyan Aug 8, 2024
2c2feff
feat(lib): return undefined if no aggregation method is present
narekhovhannisyan Aug 8, 2024
fdfc3f5
feat(config): update omitting message
narekhovhannisyan Aug 8, 2024
125c0f0
test(builtins): fix time sync
narekhovhannisyan Aug 8, 2024
fa404ad
feat(manifests): update pipeline with aggregate
narekhovhannisyan Aug 8, 2024
50dfb9e
fix(manifests): remove groupBy from pipeline
manushak Aug 8, 2024
f6b58b7
Merge pull request #945 from Green-Software-Foundation/time-sync-aggr…
narekhovhannisyan Aug 8, 2024
ce87cca
Merge pull request #942 from Green-Software-Foundation/emit-warning
narekhovhannisyan Aug 8, 2024
bb83d4d
Merge branch 'main' into fix-parameter-metadata
manushak Aug 8, 2024
2e6981a
Merge pull request #944 from Green-Software-Foundation/fix-parameter-…
manushak Aug 8, 2024
3f439ea
fix(manifests): update outputs
narekhovhannisyan Aug 8, 2024
cd19917
Merge pull request #946 from Green-Software-Foundation/update-manifests
narekhovhannisyan Aug 8, 2024
0799b96
chore(release): v0.6.0-beta.0 ✨
narekhovhannisyan Aug 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 23 additions & 0 deletions .github/workflows/dispatch-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run if-check on requested branch

on:
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run integration tests
run: npm run if-check -- -d manifests/outputs
62 changes: 62 additions & 0 deletions .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,83 @@ on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write # this allows to show carbon and energy data table in PRs
steps:
- name: Eco CI Energy Estimation - Initialize
uses: green-coding-solutions/[email protected]

with:
task: start-measurement
continue-on-error: true

- name: Checkout code
uses: actions/checkout@v4

- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-solutions/[email protected]

with:
task: get-measurement
label: "checkout"
continue-on-error: true

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'

- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-solutions/[email protected]

with:
task: get-measurement
label: "setup node"
continue-on-error: true


- name: Install dependencies
run: npm install

- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-solutions/[email protected]

with:
task: get-measurement
label: "npm install"
continue-on-error: true


- name: Run lint
run: npm run lint

- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-solutions/[email protected]

with:
task: get-measurement
label: "npm run lint"
continue-on-error: true


- name: Run unit tests
run: npm run test --silent

- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-solutions/[email protected]

with:
task: get-measurement
label: "npm run test"
continue-on-error: true

- name: Eco CI Energy Estimation - End Measurement
uses: green-coding-solutions/[email protected]

with:
task: display-results
send-data: true
pr-comment: true
continue-on-error: true

38 changes: 37 additions & 1 deletion .github/workflows/release-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
PRE_RELEASE: ${{ github.event.release.prerelease}}

jobs:
release-commit-pr:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -28,9 +28,45 @@ jobs:
- name: Run unit tests
run: npm test

integration-tests:
runs-on: ubuntu-latest
needs: unit-tests
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install dependencies
run: npm ci

- name: Run integration tests
run: npm run if-check -- -d manifests/outputs

publish:
runs-on: ubuntu-latest
needs: integration-tests
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install dependencies
run: npm ci

- name: Initialize git user email
run: git config --global user.email "${{ vars.RELEASE_USER_EMAIL }}"

Expand Down
22 changes: 5 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Read the [specification and design docs](https://if.greensoftware.foundation) to

## Get started

IF is a framework for running pipelines of plugins that operate on a set of observations. This is all configured using a manifest file. We provide a standard library of plugins that come bundled with IF - we refer to these as `builtins`. We also have an [Explorer](https://explorer.if.greensoftware.foundation) where anyone can list third party plugins you can install.
IF is a framework for running pipelines of plugins that operate on a set of observations. This is all configured using a manifest file. We provide a standard library of plugins that come bundled with IF - we refer to these as `builtins`. We also have an [Explorer](https://explorer.if.greensoftware.foundation) where anyone can list third party plugins you can install.

Start by installing the latest version of IF:

Expand All @@ -32,26 +32,18 @@ Then create a `manifest` file that describes your application (see our docs for
Then, run `if` using the following command:

```sh
if-run --manifest <path-to-your-manifest-file> --stdout
## or you can use aliases
if-run -m <path-to-your-manifest-file> -s
if-run --manifest <path-to-your-manifest-file>
## or you can use alias
if-run -m <path-to-your-manifest-file>

```

Note that above command will print your outputs to the console. You can also provide the `--output` command to save your outputs to a yaml file:
Note that above command will print your outputs to the console. If you do not want to print the outputs to the console, you need to provide `--no-output` command. You can also provide the `--output` command to save your outputs to a yaml file:

```sh
if-run -m <path-to-your-manifest> -o <savepath>
```

Note that you also have to add configuration to your manifest to enable this, as follows:

```yaml
initialize:
output:
- yaml
```

The `if-run` CLI tool will configure and run the plugins defined in your input `yaml` (`manifest`) and return the results as an output `yaml` (`output`).

Use the `debug` command if you want to diagnose and fix errors in your plugin:
Expand All @@ -72,19 +64,16 @@ if-run -h

Please read our documentation at [if.greensoftware.foundation](https://if.greensoftware.foundation/)


## Video walk-through

Watch this video to learn how to create and run a `manifest`.

[![Watch the walk-through video](https://i3.ytimg.com/vi/R-6eDM8AsvY/maxresdefault.jpg)](https://youtu.be/GW37Qd4AQbU)


## Join our mailing list

We have a public mailing list at [[email protected]](https://groups.google.com/u/1/a/greensoftware.foundation/g/if-community). We send out weekly updates that explain what we've shipped, what we're working on and how you can get involved each week!


## Contributing

To contribute to IF, please fork this repository and raise a pull request from your fork.
Expand All @@ -93,7 +82,6 @@ You can check our issue board for issues. We mark some issues `core-only` if the

Please read the full contribution guidelines at [if.greensoftware.foundation](https://if.greensoftware.foundation/Contributing)


## Bug reports

To report bugs please use our bug report template. You can do this by opening a new issue and selecting `Bug Report` when you are prompted to pick a template. The more information you provide,.the quicker we will be able to reproduce, diagnose and triage your issue.
Expand Down
Loading