Skip to content

[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

Merged
merged 10 commits into from
Jul 24, 2025

Conversation

mrodm
Copy link
Contributor

@mrodm mrodm commented Jul 23, 2025

This PR applies a refactor in scripts/test-check-packages.sh script to allow understand better the for loop that test all packages.

Author's checklist

  • Validate that parallel and false positive targets run each package in a different Buildkite step
  • Validate that other targets test all the corresponding packages in the same Buildkite step.
  • Validate that use_pipeline_tests is also part of the benchmarks step.
  • Validate that Serverless pipeline works testing all the packages in the same Buildkite step. https://buildkite.com/elastic/elastic-package-test-serverless/builds/488

@mrodm mrodm self-assigned this Jul 23, 2025
@mrodm mrodm changed the title Refactor test-check-packages [CI] Refactor script to check and test packages in CI Jul 23, 2025
if [ "${package_to_test}" == "pipeline_benchmark" ]; then
rm -rf "${PWD}/build/benchmark-results"
elastic-package benchmark pipeline -C "$d" -v --report-format xUnit --report-output file --fail-on-missing
# FIXME: There are other packages in test/packages/benchmarks folder that are not tested like rally_benchmark
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rally_benchmark package is located in test/packages/benchmarks folder 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 esrally tool.

@mrodm
Copy link
Contributor Author

mrodm commented Jul 24, 2025

test serverless

@elastic-vault-github-plugin-prod

Comment on lines +145 to +147
pipeline_benchmark|use_pipeline_tests)
run_pipeline_benchmark "${package_to_test}" "$d"
;;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until now just pipeline_benchmark package was tested, other packages under test/packages/benchmarks/ folder were not tested. One of them is use_pipeline_tests package.

The difference that I see between pipeline_benchmark and use_pipeline_tests is that:

  • pipeline_benchmark has the benchmark configuration for the data stream at data_stream/test/_dev/benchmark/pipeline/*.
  • use_pipeline_tests no benchmark configuration.

Tested locally with use_pipeline_tests package and it does not fail running the pipeline benchmarks and it creates a benchmark report successfully.

I think it can be added here, WDYT ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, yes.

@mrodm
Copy link
Contributor Author

mrodm commented Jul 24, 2025

/test

@mrodm mrodm marked this pull request as ready for review July 24, 2025 11:50
@mrodm mrodm requested a review from a team July 24, 2025 11:51
@mrodm
Copy link
Contributor Author

mrodm commented Jul 24, 2025

test serverless

@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 24, 2025

💔 Build Failed

Failed CI Steps

History

cc @mrodm

@elastic-vault-github-plugin-prod

@mrodm mrodm merged commit c67f9ef into elastic:main Jul 24, 2025
2 of 3 checks passed
@mrodm mrodm deleted the refactor-check-packages-script branch July 24, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants