-
Notifications
You must be signed in to change notification settings - Fork 129
[CI] Refactor script to check and test packages in CI #2766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a0800dd
a4e9a08
7b8ee6a
44365f4
ccd8154
0d415ce
dd33aee
340ae5a
386bc4b
fb7b6b8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,14 +53,14 @@ export ELASTIC_PACKAGE_LINKS_FILE_PATH | |
| export SERVERLESS=${SERVERLESS:-"false"} | ||
|
|
||
| run_system_benchmark() { | ||
| local package_name=$1 | ||
| local package_path=$2 | ||
| local package_name="$1" | ||
| local package_path="$2" | ||
| echo "--- Run system benchmarks for package ${package_name}" | ||
| elastic-package benchmark system -C "$package_path" --benchmark logs-benchmark -v --defer-cleanup 1s | ||
| } | ||
|
|
||
| run_serverless_tests() { | ||
| local package_path=$1 | ||
| local package_path="$1" | ||
| echo "--- Run tests for package ${package_path} in Serverless mode" | ||
| local test_options="-v --report-format xUnit --report-output file --defer-cleanup 1s" | ||
| local coverage_options="--test-coverage --coverage-format=generic" | ||
|
|
@@ -73,8 +73,8 @@ run_serverless_tests() { | |
| } | ||
|
|
||
| run_pipeline_benchmark() { | ||
| local package_name=$1 | ||
| local package_path=$2 | ||
| local package_name="$1" | ||
| local package_path="$2" | ||
| echo "--- Run pipeline benchmarks and report for package ${package_name}" | ||
| local test_options="-v --report-format xUnit --report-output file --fail-on-missing" | ||
|
|
||
|
|
@@ -141,12 +141,14 @@ for d in test/packages/${PACKAGE_TEST_TYPE:-other}/${PACKAGE_UNDER_TEST:-*}/; do | |
|
|
||
| if [ "${PACKAGE_TEST_TYPE:-other}" == "benchmarks" ]; then | ||
| # FIXME: There are other packages in test/packages/benchmarks folder that are not tested like rally_benchmark | ||
|
|
||
| if [[ "${package_to_test}" == "pipeline_benchmark" || "${package_to_test}" == "use_pipeline_tests" ]]; then | ||
| run_pipeline_benchmark "${package_to_test}" "$d" | ||
| elif [ "${package_to_test}" == "system_benchmark" ]; then | ||
| run_system_benchmark "${package_to_test}" "$d" | ||
| fi | ||
| case "${package_to_test}" in | ||
| pipeline_benchmark|use_pipeline_tests) | ||
| run_pipeline_benchmark "${package_to_test}" "$d" | ||
| ;; | ||
|
Comment on lines
+167
to
+169
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Until now just The difference that I see between
Tested locally with I think it can be added here, WDYT ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good, yes. |
||
| system_benchmark) | ||
| run_system_benchmark "${package_to_test}" "$d" | ||
| ;; | ||
| esac | ||
| continue | ||
| fi | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rally_benchmarkpackage is located intest/packages/benchmarksfolder but it is not tested at all.I don't know if this could be tested as it is here. IIUC according to the docs it is required also
esrallytool.