diff options
author | Jesse Hellemn <hellemn@fb.com> | 2019-02-22 13:53:11 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-02-22 14:08:06 -0800 |
commit | 9977f43d19a45a467f57b2123eab10619622bce0 (patch) | |
tree | 0a7b68bbc100e41186b278b9703a2156841fad27 | |
parent | 356a94b64e69aa2e87b33e7bbd0b302feca327a4 (diff) | |
download | pytorch-9977f43d19a45a467f57b2123eab10619622bce0.tar.gz pytorch-9977f43d19a45a467f57b2123eab10619622bce0.tar.bz2 pytorch-9977f43d19a45a467f57b2123eab10619622bce0.zip |
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
-rw-r--r-- | .circleci/config.yml | 4 | ||||
-rw-r--r-- | .circleci/verbatim-sources/nightly-binary-build-defaults.yml | 4 |
2 files changed, 8 insertions, 0 deletions
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 " |