-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hog scenario porting from arcaflow to native (#748)
* added new native hog scenario * removed arcaflow dependency + legacy hog scenarios * config update * changed hog configuration structure + added average samples * fix on cpu count * removes tripledes warning * changed selector format * changed selector syntax * number of nodes option * documentation * functional tests * exception handling on hog deployment thread Signed-off-by: Paige Patton <[email protected]>
- Loading branch information
1 parent
64cfd2c
commit 82b4cea
Showing
52 changed files
with
588 additions
and
1,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
set -xeEo pipefail | ||
|
||
source CI/tests/common.sh | ||
|
||
trap error ERR | ||
trap finish EXIT | ||
|
||
|
||
function functional_test_cpu_hog { | ||
yq -i '.node_selector="kubernetes.io/hostname=kind-worker2"' scenarios/kube/cpu-hog.yml | ||
|
||
export scenario_type="hog_scenarios" | ||
export scenario_file="scenarios/kube/cpu-hog.yml" | ||
export post_config="" | ||
envsubst < CI/config/common_test_config.yaml > CI/config/cpu_hog.yaml | ||
python3 -m coverage run -a run_kraken.py -c CI/config/cpu_hog.yaml | ||
echo "CPU Hog: Success" | ||
} | ||
|
||
functional_test_cpu_hog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set -xeEo pipefail | ||
|
||
source CI/tests/common.sh | ||
|
||
trap error ERR | ||
trap finish EXIT | ||
|
||
|
||
function functional_test_io_hog { | ||
yq -i '.node_selector="kubernetes.io/hostname=kind-worker2"' scenarios/kube/io-hog.yml | ||
export scenario_type="hog_scenarios" | ||
export scenario_file="scenarios/kube/io-hog.yml" | ||
export post_config="" | ||
envsubst < CI/config/common_test_config.yaml > CI/config/io_hog.yaml | ||
python3 -m coverage run -a run_kraken.py -c CI/config/io_hog.yaml | ||
echo "IO Hog: Success" | ||
} | ||
|
||
functional_test_io_hog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set -xeEo pipefail | ||
|
||
source CI/tests/common.sh | ||
|
||
trap error ERR | ||
trap finish EXIT | ||
|
||
|
||
function functional_test_memory_hog { | ||
yq -i '.node_selector="kubernetes.io/hostname=kind-worker2"' scenarios/kube/memory-hog.yml | ||
export scenario_type="hog_scenarios" | ||
export scenario_file="scenarios/kube/memory-hog.yml" | ||
export post_config="" | ||
envsubst < CI/config/common_test_config.yaml > CI/config/memory_hog.yaml | ||
python3 -m coverage run -a run_kraken.py -c CI/config/memory_hog.yaml | ||
echo "Memory Hog: Success" | ||
} | ||
|
||
functional_test_memory_hog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.