Skip to content
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

[DO NOT REVIEW/MERGE] Check python script run on BK agent. #16524

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 26 additions & 14 deletions .buildkite/health_report_tests_pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json

agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci"
cpu: "2"
memory: "4Gi"
ephemeralStorage: "64Gi"

steps:
# todo: add a step for 8.latest when Health Report MVP is landed
- label: ":logstash: Health Report Integration tests on main branch."
command: |
source .buildkite/scripts/common/vm-agent.sh
./.buildkite/scripts/health-report-tests/main.sh
retry:
automatic:
- limit: 3
- group: ":logstash: Health API integration tests"
key: "testing-phase"
steps:
- label: "main branch"
key: "integ-tests-on-main-branch"
command: |
echo "--- Installing dependencies"
python3 -m pip install -r .buildkite/scripts/health-report-tests/requirements.txt
echo "--- running tests"
python3 .buildkite/scripts/health-report-tests/main.py
retry:
automatic:
- limit: 3

- label: "8.latest branch"
key: "integ-tests-on-eight-latest-branch"
env:
LS_BRANCH: "8.x"
command: |
echo "--- Installing dependencies"
python3 -m pip install -r .buildkite/scripts/health-report-tests/requirements.txt
echo "--- running tests"
python3 .buildkite/scripts/health-report-tests/main.py
retry:
automatic:
- limit: 3
Empty file.
15 changes: 15 additions & 0 deletions .buildkite/scripts/health-report-tests/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
Main entry point of the LS health report API integration test suites
"""
import os


def main():
print(f"Hello World!")
logstash_branch = os.environ.get("LS_BRANCH")
if logstash_branch is None:
print(f"LS_BRANCH is not specified, using main branch.")


if __name__ == "__main__":
main()
9 changes: 0 additions & 9 deletions .buildkite/scripts/health-report-tests/main.sh

This file was deleted.

2 changes: 2 additions & 0 deletions .buildkite/scripts/health-report-tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests==2.32.3
pyyaml==6.0.2
Loading