From 9977f43d19a45a467f57b2123eab10619622bce0 Mon Sep 17 00:00:00 2001 From: Jesse Hellemn Date: Fri, 22 Feb 2019 13:53:11 -0800 Subject: Pin nightly builds to last commit before 5am UTC (#17381) Summary: This fell through the cracks from the migration from pytorch/builder to circleci. It's technically still racey, but is much less likely now Pull Request resolved: https://github.com/pytorch/pytorch/pull/17381 Differential Revision: D14190137 Pulled By: pjh5 fbshipit-source-id: 2d4cd04ee874cacce47d1d50b87a054b0503bb82 --- .circleci/config.yml | 4 ++++ .circleci/verbatim-sources/nightly-binary-build-defaults.yml | 4 ++++ 2 files changed, 8 insertions(+) (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml index 22b1eda794..0eae5a4e3a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -632,6 +632,10 @@ binary_checkout: &binary_checkout # "smoke" binary build on master on PR merges git reset --hard "$CIRCLE_SHA1" git checkout -q -B master + else + # nightly binary builds. These run at 05:05 UTC every day. + last_commit="$(git rev-list --before "$(date +%Y-%m-%d) 05:00" --max-count 1 HEAD)" + git checkout "$last_commit" fi git submodule update --init --recursive --quiet echo "Using Pytorch from " diff --git a/.circleci/verbatim-sources/nightly-binary-build-defaults.yml b/.circleci/verbatim-sources/nightly-binary-build-defaults.yml index 62178e385d..6f6b89dc38 100644 --- a/.circleci/verbatim-sources/nightly-binary-build-defaults.yml +++ b/.circleci/verbatim-sources/nightly-binary-build-defaults.yml @@ -124,6 +124,10 @@ binary_checkout: &binary_checkout # "smoke" binary build on master on PR merges git reset --hard "$CIRCLE_SHA1" git checkout -q -B master + else + # nightly binary builds. These run at 05:05 UTC every day. + last_commit="$(git rev-list --before "$(date +%Y-%m-%d) 05:00" --max-count 1 HEAD)" + git checkout "$last_commit" fi git submodule update --init --recursive --quiet echo "Using Pytorch from " -- cgit v1.2.3