mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 23:19:39 -05:00
fix: don't run CI K-Bench with less than 2 worker nodes
K-Bench's network benchmarks require two distinct worker nodes. Add check prior to running the benchmark that terminates early, if not enough workers scheduled.
This commit is contained in:
parent
94429c8db8
commit
273d6162de
10
.github/actions/e2e_test/action.yml
vendored
10
.github/actions/e2e_test/action.yml
vendored
@ -56,6 +56,16 @@ runs:
|
||||
echo "Invalid input for test field: ${{ inputs.test }}"
|
||||
exit 1
|
||||
|
||||
# K-Bench's network benchmarks require at least two distinct worker nodes.
|
||||
- name: Validate k-bench inputs
|
||||
if: inputs.test == 'k-bench'
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ inputs.workerNodesCount }}" -lt 2 ]]; then
|
||||
echo "::error::Test K-Bench requires at least 2 worker nodes."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Determine build target
|
||||
id: determine-build-target
|
||||
shell: bash
|
||||
|
Loading…
Reference in New Issue
Block a user