Skip to content

Commit

Permalink
[ci] Add testing phase to exhaustive tests suite (#15711) (#15718)
Browse files Browse the repository at this point in the history
This is the second part of the migration of the exhaustive/main
Jenkins Job to Buildkite. So far we've migrated the "compatibility
phase" and this commit adds the "testing phase"[^1], which is essentially
the same amount of tests that we ran on PR jobs.

Relates elastic/ingest-dev#1722
Depends #15708

[^1]: For more details, refer to the sequence diagram in elastic/ingest-dev#1722 (comment)

(cherry picked from commit 9538338)

Co-authored-by: Dimitrios Liappis <[email protected]>
  • Loading branch information
github-actions[bot] and dliappis authored Dec 21, 2023
1 parent edd6c5a commit 8cf1ce2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .buildkite/scripts/exhaustive-tests/generate-steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

VM_IMAGES_FILE = ".buildkite/scripts/common/vm-images.json"
VM_IMAGE_PREFIX = "platform-ingest-logstash-multi-jdk-"
CUR_PATH = os.path.dirname(os.path.abspath(__file__))

def slugify_bk_key(key: str) -> str:
"""
Expand All @@ -20,6 +21,10 @@ def slugify_bk_key(key: str) -> str:

return key.translate(mapping_table)

def testing_phase_steps() -> typing.Dict[str, typing.List[typing.Any]]:
with open(os.path.join(CUR_PATH, "..", "..", "pull_request_pipeline.yml")) as fp:
return YAML().load(fp)

def compat_linux_step(imagesuffix: str) -> dict[str, typing.Any]:
linux_command = LiteralScalarString("""#!/usr/bin/env bash
set -eo pipefail
Expand Down Expand Up @@ -89,15 +94,23 @@ def randomized_windows_os() -> str:

structure = {"steps": []}

structure["steps"].append({
"group": "Testing Phase",
"key": "testing-phase",
**testing_phase_steps(),
})

structure["steps"].append({
"group": "Compatibility / Linux",
"key": "compatibility-linux",
"depends_on": "testing-phase",
"steps": compat_linux_steps,
})

structure["steps"].append({
"group": "Compatibility / Windows",
"key": "compatibility-windows",
"depends_on": "testing-phase",
"steps": [compat_windows_step(imagesuffix=windows_test_os)],
})

Expand Down

0 comments on commit 8cf1ce2

Please sign in to comment.