Skip to content

Commit

Permalink
Merge pull request #930 from Green-Software-Foundation/move-time-sync…
Browse files Browse the repository at this point in the history
…-back

Phased execution without builtin time-sync
  • Loading branch information
narekhovhannisyan authored Aug 2, 2024
2 parents b4eb9e6 + 0fa4aa7 commit 93d5ab2
Show file tree
Hide file tree
Showing 156 changed files with 1,819 additions and 1,430 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ tree:
children:
child:
pipeline:
- coefficient
compute:
- coefficient
config:
sum:
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ tree:
children:
child:
pipeline:
- coefficient
compute:
- coefficient
config:
sum:
inputs:
Expand Down
3 changes: 2 additions & 1 deletion manifests/examples/builtins/coefficient/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ tree:
children:
child:
pipeline:
- coefficient
compute:
- coefficient
config:
sum:
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- cloud-metadata
compute:
- cloud-metadata
config:
inputs:
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- cloud-metadata
compute:
- cloud-metadata
config:
inputs:
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- cloud-metadata
compute:
- cloud-metadata
config:
inputs:
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- cloud-metadata
compute:
- cloud-metadata
config:
inputs:
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- cloud-metadata
compute:
- cloud-metadata
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- cloud-metadata
compute:
- cloud-metadata
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- cloud-metadata
compute:
- cloud-metadata
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- cloud-metadata
compute:
- cloud-metadata
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ tree:
children:
child:
pipeline:
- tdp-finder
compute:
- tdp-finder
config:
inputs:
- timestamp: 2023-07-06T00:00
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ tree:
children:
child:
pipeline:
- tdp-finder
compute:
- tdp-finder
config:
inputs:
- timestamp: 2023-07-06T00:00
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ tree:
children:
child:
pipeline:
- tdp-finder
compute:
- tdp-finder
config:
inputs:
- timestamp: 2023-07-06T00:00
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ tree:
children:
child:
pipeline:
- cloud-metadata
- divide
compute:
- cloud-metadata
- divide
config:
divide:
defaults:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ tree:
children:
child:
pipeline:
- cloud-metadata
- divide
compute:
- cloud-metadata
- divide
config:
divide:
defaults:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ tree:
children:
child:
pipeline:
- cloud-metadata
- divide
compute:
- cloud-metadata
- divide
config:
divide:
defaults:
Expand Down
7 changes: 3 additions & 4 deletions manifests/examples/builtins/divide/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ tree:
children:
child:
pipeline:
- cloud-metadata
- divide
config:
divide:
compute:
- cloud-metadata
- divide
defaults:
cloud/vendor: aws
cloud/instance-type: m5n.large
Expand Down
5 changes: 2 additions & 3 deletions manifests/examples/builtins/exponent/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ tree:
children:
child:
pipeline:
- exponent
config:
exponent:
compute:
- exponent
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
4 changes: 2 additions & 2 deletions manifests/examples/builtins/interpolation/interpolation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ initialize:
y: [0.12, 0.32, 0.75, 1.02]
input-parameter: "cpu/utilization"
output-parameter: "result"

tree:
children:
child:
pipeline:
- interpolation
compute:
- interpolation
inputs:
- timestamp: 2023-07-06T00:00
duration: 3600
Expand Down
3 changes: 2 additions & 1 deletion manifests/examples/builtins/interpolation/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ tree:
children:
child:
pipeline:
- interpolation
compute:
- interpolation
inputs:
- timestamp: 2023-07-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ tree:
children:
child:
pipeline:
- mock-observations
observe:
- mock-observations
inputs:
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ tree:
children:
child:
pipeline:
- mock-observations
observe:
- mock-observations
inputs:
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ tree:
children:
child:
pipeline:
- mock-observations
observe:
- mock-observations
inputs:
3 changes: 2 additions & 1 deletion manifests/examples/builtins/mock-observations/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ tree:
children:
child:
pipeline:
- mock-observations
observe:
- mock-observations
inputs:
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ tree:
children:
child:
pipeline:
- multiply
config:
sum:
compute:
- multiply
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ tree:
children:
child:
pipeline:
- multiply
config:
sum:
compute:
- multiply
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
5 changes: 2 additions & 3 deletions manifests/examples/builtins/multiply/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ tree:
children:
child:
pipeline:
- multiply
config:
sum:
compute:
- multiply
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ tree:
children:
child:
pipeline:
- regex
config:
regex:
compute:
- regex
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ tree:
children:
child:
pipeline:
- regex
config:
regex:
compute:
- regex
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
5 changes: 2 additions & 3 deletions manifests/examples/builtins/regex/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ tree:
children:
child:
pipeline:
- regex
config:
regex:
compute:
- regex
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ tree:
children:
child:
pipeline:
- sci-embodied # duration & config -> embodied
compute:
- sci-embodied # duration & config -> embodied
defaults:
device/emissions-embodied: "fail" # gCO2eq
time-reserved: 3600 # 1hr in seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ tree:
children:
child:
pipeline:
- sci-embodied # duration & config -> embodied
compute:
- sci-embodied # duration & config -> embodied
defaults:
device/emissions-embodied: 1533.120 # gCO2eq
time-reserved: 3600 # 1hr in seconds
Expand Down
3 changes: 2 additions & 1 deletion manifests/examples/builtins/sci-embodied/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ tree:
children:
child:
pipeline:
- sci-embodied # duration & config -> embodied
compute:
- sci-embodied # duration & config -> embodied
defaults:
device/emissions-embodied: 1533.120 # gCO2eq
time-reserved: 3600 # 1hr in seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ tree:
children:
child:
pipeline:
- sci
compute:
- sci
config:
sci:
functional-unit: 999 # factor to convert per time to per f.unit
Expand Down
Loading

0 comments on commit 93d5ab2

Please sign in to comment.