Skip to content

Commit

Permalink
speed up testing by only running publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dliappis committed Jan 17, 2025
1 parent c5a4f79 commit 77f4ff3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .buildkite/scripts/dra/generatesteps.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def publish_dra_step(branch, workflow_type, depends_on):
step = f'''
- label: ":elastic-stack: Publish / {branch}-{workflow_type.upper()} DRA artifacts"
key: "logstash_publish_dra"
depends_on: "{depends_on}"
agents:
provider: gcp
imageProject: elastic-images-prod
Expand All @@ -86,8 +85,8 @@ def publish_dra_step(branch, workflow_type, depends_on):
diskSizeGb: 200
command: |
echo "+++ Restoring Artifacts"
buildkite-agent artifact download "build/logstash*" .
buildkite-agent artifact download "build/distributions/**/*" .
buildkite-agent artifact download --build 163 "build/logstash*" .
buildkite-agent artifact download --build 163 "build/distributions/**/*" .
echo "+++ Changing permissions for the release manager"
sudo chown -R :1000 build
echo "+++ Running DRA publish step"
Expand Down Expand Up @@ -127,11 +126,11 @@ def build_steps_to_yaml(branch, workflow_type):
# Group defining parallel steps that build and save artifacts
group_key = to_bk_key_friendly_string(f"logstash_dra_{workflow_type}")

structure["steps"].append({
"group": f":Build Artifacts - {workflow_type.upper()}",
"key": group_key,
"steps": build_steps_to_yaml(branch, workflow_type),
})
# structure["steps"].append({
# "group": f":Build Artifacts - {workflow_type.upper()}",
# "key": group_key,
# "steps": build_steps_to_yaml(branch, workflow_type),
# })

# Final step: pull artifacts built above and publish them via the release-manager
structure["steps"].extend(
Expand Down

0 comments on commit 77f4ff3

Please sign in to comment.