Skip to content

Commit

Permalink
Merge pull request #200 from zeebe-io/rl-remove-redundant-worker-comp…
Browse files Browse the repository at this point in the history
…letion-delay

Remove worker's repeated completion delay, and only add this if not set.
  • Loading branch information
ChrisKujawa authored Oct 23, 2024
2 parents 2ca6e06 + 5a9e147 commit b3dabdc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ For an example see [test/golden_test.go](charts/zeebe-benchmark/test/golden_test

If the complete manifest can be enabled by a toggle, we also write a golden file test. This test is part of `<manifestFileName>_test.go` file. The `<manifestFileName>` corresponds to the template filename we have in the sub-chart `templates` dir. For example, the prometheus [servicemonitor](charts/camunda-platform/templates/service-monitor.yaml) can be enabled by a toggle. This means we write a golden file test in [servicemonitor_test.go](charts/camunda-platform/test/servicemonitor_test.go).

In order to generate the golden files run `go.test-with-updated-golden-files` on the root level of the repository. This will add a new golden file in a `golden` sub-dir and run the corresponding test. The golden files should also be named related to the manifest.
In order to generate the golden files run `go.test-golden-updated` on the root level of the repository. This will add a new golden file in a `golden` sub-dir and run the corresponding test. The golden files should also be named related to the manifest.

##### Properties Test

Expand Down
7 changes: 4 additions & 3 deletions charts/zeebe-benchmark/templates/workers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ spec:
-Dapp.worker.capacity={{ $worker.capacity }}
{{- end }}
-Dapp.worker.pollingDelay=1ms
{{- if $worker.completionDelay }}
-Dapp.worker.completionDelay={{ $worker.completionDelay }}
{{- else }}
-Dapp.worker.completionDelay=50ms
{{- end }}
-Dapp.worker.workerName={{ $workerName | quote }}
{{- if $worker.jobType }}
-Dapp.worker.jobType={{ $worker.jobType | quote }}
{{- end }}
{{- if $worker.payloadPath }}
-Dapp.worker.payloadPath={{ $worker.payloadPath | quote }}
{{- end}}
{{- if $worker.completionDelay }}
-Dapp.worker.completionDelay={{ $worker.completionDelay }}
{{- end}}
{{- if $worker.message }}
-Dapp.worker.sendMessage=true
-Dapp.worker.messageName={{ $worker.message.name | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ spec:
-Dapp.worker.workerName="benchmark"
-Dapp.worker.jobType="benchmark-task"
-Dapp.worker.payloadPath="bpmn/big_payload.json"
-Dapp.worker.completionDelay=50ms
-XX:+HeapDumpOnOutOfMemoryError
- name: LOG_LEVEL
value: "WARN"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ spec:
-Dapp.worker.workerName="benchmark"
-Dapp.worker.jobType="benchmark-task"
-Dapp.worker.payloadPath="bpmn/big_payload.json"
-Dapp.worker.completionDelay=50ms
-XX:+HeapDumpOnOutOfMemoryError
- name: LOG_LEVEL
value: "WARN"
Expand Down
1 change: 0 additions & 1 deletion charts/zeebe-benchmark/test/golden/workers.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ spec:
-Dapp.worker.workerName="benchmark"
-Dapp.worker.jobType="benchmark-task"
-Dapp.worker.payloadPath="bpmn/big_payload.json"
-Dapp.worker.completionDelay=50ms
-XX:+HeapDumpOnOutOfMemoryError
- name: LOG_LEVEL
value: "WARN"
Expand Down

0 comments on commit b3dabdc

Please sign in to comment.