Skip to content

Commit

Permalink
[Health API E2E] Align on agent python version and avoid pip install. (
Browse files Browse the repository at this point in the history
…#16704)

* Pip install is unnecessary and sometimes hangs with prompt dialog. This commit aligns on agent python version which has a default pip installed.

* Update .buildkite/scripts/health-report-tests/main.sh

Improve readability.

Co-authored-by: Cas Donoghue <[email protected]>

---------

Co-authored-by: Cas Donoghue <[email protected]>
  • Loading branch information
mashhurs and donoghuc authored Nov 20, 2024
1 parent 7b3d23b commit 15b2034
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .buildkite/scripts/health-report-tests/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ set -euo pipefail

export PATH="/opt/buildkite-agent/.rbenv/bin:/opt/buildkite-agent/.pyenv/bin:/opt/buildkite-agent/.java/bin:$PATH"
export JAVA_HOME="/opt/buildkite-agent/.java"
export PYENV_VERSION="3.11.5"

eval "$(rbenv init -)"
eval "$(pyenv init -)"

echo "--- Installing pip"
sudo apt-get install python3-pip -y

echo "--- Installing dependencies"
python3 -mpip install -r .buildkite/scripts/health-report-tests/requirements.txt
python3 -m pip install -r .buildkite/scripts/health-report-tests/requirements.txt

echo "--- Running tests"
python3 .buildkite/scripts/health-report-tests/main.py
2 changes: 1 addition & 1 deletion catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ spec:
spec:
repository: elastic/logstash
pipeline_file: ".buildkite/health_report_tests_pipeline.yml"
maximum_timeout_in_minutes: 60
maximum_timeout_in_minutes: 30 # usually tests last max ~17mins
provider_settings:
trigger_mode: none # don't trigger jobs from github activity
env:
Expand Down

0 comments on commit 15b2034

Please sign in to comment.