Skip to content

Commit ce078c3

Browse files
committed
Display container logs, increase VM spec.
1 parent ac25d17 commit ce078c3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.buildkite/scripts/e2e-pipeline/generate-steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def generate_steps_for_main_branch(versions) -> list:
5959
structure = {
6060
"agents": {
6161
"provider": "gcp",
62-
"machineType": "n2-standard-4",
62+
"machineType": "n2-standard-16",
6363
"imageProject": "elastic-images-prod",
6464
"image": "family/platform-ingest-logstash-multi-jdk-ubuntu-2204",
6565
"diskSizeGb": 120

.buildkite/scripts/e2e-pipeline/main.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,9 @@ def main(skip_setup=False, integrations=[]):
5050
print(f"Test failed for {package} with {e}.")
5151
failed_packages.append(package)
5252

53-
container = util.get_logstash_container()
54-
55-
# pretty printing
56-
print(f"Logstash docker container logs..")
57-
ls_container_logs = container.logs().decode('utf-8')
58-
for log_line in ls_container_logs.splitlines():
59-
print(log_line)
53+
util.show_container_logs("elastic-package-stack-e2e-logstash-1")
54+
util.show_container_logs("elastic-package-stack-e2e-elasticsearch-1")
55+
util.show_container_logs("elastic-package-stack-e2e-elastic-agent-1")
6056

6157
if len(failed_packages) > 0:
6258
raise Exception(f"Following packages failed: {failed_packages}")

.buildkite/scripts/e2e-pipeline/util.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ def call_url_with_retry(url: str, max_retries: int = 5, delay: int = 1) -> reque
1818
session.mount(schema, HTTPAdapter(max_retries=retries))
1919
return session.get(url)
2020

21-
22-
def get_logstash_container() -> Container:
21+
def show_container_logs(container_name: str):
2322
client = docker.from_env()
24-
return client.containers.get("elastic-package-stack-e2e-logstash-1")
23+
container = client.containers.get(container_name)
2524

25+
# pretty printing
26+
print(f"{container_name} docker container logs..")
27+
container_logs = container.logs().decode('utf-8')
28+
for log_line in container_logs.splitlines():
29+
print(log_line)
2630

2731
def run_or_raise_error(commands: list, error_message):
2832
result = subprocess.run(commands, universal_newlines=True, stdout=subprocess.PIPE)

0 commit comments

Comments
 (0)