[Buildkite] Wheels and Docker fixup (#16241)

This commit is contained in:
Simon Mo 2021-06-04 00:48:12 -07:00 committed by Dmitri Gekhtman
parent a9333fa2bd
commit 4697f8af3c
3 changed files with 9 additions and 7 deletions

View file

@ -79,9 +79,9 @@ def upload_paths(paths, resp, destination):
for path in paths:
fn = os.path.split(path)[-1]
of["key"] = {
"wheels": f"latest/{sha}/{fn}",
"wheels": f"latest/{fn}",
"branch_wheels": f"{branch}/{sha}/{fn}",
"jars": f"jars/latest/{sha}/{fn}",
"jars": f"jars/latest/{fn}",
"branch_jars": f"jars/{branch}/{sha}/{fn}",
"logs": f"bazel_events/{branch}/{sha}/{bk_job_id}/{fn}"
}[destination]

View file

@ -13,10 +13,12 @@
# We don't want to push on PRs, in fact, the copy_files will fail because unauthenticated.
- if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
- pip install -q docker aws_requests_auth boto3
- python .buildkite/copy_files.py --destination wheels --path ./.whl
# Upload to branch directory.
- python .buildkite/copy_files.py --destination branch_wheels --path ./.whl
- python .buildkite/copy_files.py --destination jars --path ./.jar/linux
- python .buildkite/copy_files.py --destination branch_jars --path ./.jar/linux
# Upload to latest directory.
- if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination wheels --path ./.whl; fi
- if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination jars --path ./.jar/linux; fi
- label: ":ferris_wheel: Post-wheel tests"
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]

View file

@ -408,10 +408,10 @@ if __name__ == "__main__":
build_type = args.build_type
is_buildkite = build_type == BUILDKITE
if build_type == BUILDKITE:
if os.environ.get("BUILDKITE_PULL_REQUEST"):
build_type = PR
else:
if os.environ.get("BUILDKITE_PULL_REQUEST", "") == "false":
build_type = MERGE
else:
build_type = PR
if build_type == HUMAN:
_configure_human_version()
if (build_type in {HUMAN, MERGE} or is_buildkite