update python release build steps
# note that the setup is already done, so you should not manually adjust anything through the BuildKite interface.
#
common: &common
- agents:
- - "capable_of_building=graphos-eng"
- - "environment=production"
- - "permission_set=builder"
- - "platform=linux"
- - "queue=${CI_BUILDER_QUEUE:-v2-1550668667-a9410887d4b815dd-------z}"
- timeout_in_minutes: 60 # TODO(ENG-548): reduce timeout once agent-cold-start is optimised.
+ timeout_in_minutes: 60
retry:
automatic:
# This is designed to trap and retry failures because agent lost connection. Agent exits with -1 in this case.
- exit_status: -1
limit: 3
+common_builder: &common_builder
+ <<: *common
+ agents:
+ - "agent_count=8"
+ - "capable_of_building=platform"
+ - "environment=production"
+ - "machine_type=octa"
+ - "permission_set=builder"
+ - "platform=linux"
+ - "queue=${CI_BUILDER_QUEUE:-v4-2019-12-12-bk5225-daecba805768d787}"
+ - "scaler_version=2"
+
# NOTE: step labels turn into commit-status names like {org}/{repo}/{pipeline}/{step-label}, lower-case and hyphenated.
# These are then relied on to have stable names by other things, so once named, please beware renaming has consequences.
steps:
- label: "Build Python distribution"
- command: "bash ./ci/build_python.sh"
+ command: "ci/docker/ubuntu_16.04/run_in_docker.sh ./ci/build_python.sh"
artifact_paths:
- "keanu-python/dist/*"
- <<: *common
+ <<: *common_builder
- wait
- block: "PyPi test release :rocket:"
- label: "Release to PyPi test"
- command: "bash ./ci/release_python.sh test ci"
- <<: *common
+ command: "ci/docker/ubuntu_16.04/run_in_docker.sh ./ci/release_python.sh test ci"
+ <<: *common_builder
- block: "PyPi real release :rocket:"
- label: "Release to PyPi real"
- command: "bash ./ci/release_python.sh real ci"
- <<: *common
+ command: "ci/docker/ubuntu_16.04/run_in_docker.sh ./ci/release_python.sh real ci"
+ <<: *common_builder
