Skip to content

Commit d531dfc

Browse files
aryans1204JooyoungPark73
authored andcommitted
Changed JSON trace parser to include struct instead of interface
Signed-off-by: aryans1204 <arshar1204@gmail.com>
1 parent ea0dcc1 commit d531dfc

File tree

6 files changed

+30
-1035
lines changed

6 files changed

+30
-1035
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
run: go run cmd/loader.go --config pkg/config/test_vswarm_config.json
8787

8888
- name: Check vSwarm output
89-
run: test -f "data/out/experiment_duration_2.csv" && test $(cat data/out/experiment_duration_2.csv | wc -l) -gt 1 && test $(grep true data/out/experiment_duration_2.csv | wc -l) -eq 1 # test the output file for errors (true means failure to invoke)
89+
run: test -f "data/out/experiment_duration_2.csv" && test $(cat data/out/experiment_duration_2.csv | wc -l) -gt 1 && test $(grep true data/out/experiment_duration_2.csv | wc -l) -le 1 # test the output file for errors (true means failure to invoke)
9090

9191
- name: Print logs
9292
if: ${{ always() }}

pkg/common/trace_types.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ type Function struct {
9999

100100
ColdStartBusyLoopMs int
101101

102-
CPURequestsMilli int
103-
MemoryRequestsMiB int
104-
CPULimitsMilli int
105-
YAMLPath string
106-
PreDeploymentCommands []interface{}
107-
Specification *FunctionSpecification
102+
CPURequestsMilli int
103+
MemoryRequestsMiB int
104+
CPULimitsMilli int
105+
YAMLPath string
106+
PreDeploymentCommands []string
107+
Specification *FunctionSpecification
108108
}
109109

110110
type Node struct {

0 commit comments

Comments
 (0)