From 1971c0528dbc17bfb850af6d7fd5b41cbd0abb2b Mon Sep 17 00:00:00 2001 From: Jesse Hellemn Date: Wed, 27 Feb 2019 13:17:16 -0800 Subject: [PATCH] Forcing UTC on Mac circleci jobs (#17516) Summary: And adding timestamps to linux build jobs Pull Request resolved: https://github.com/pytorch/pytorch/pull/17516 Differential Revision: D14244533 Pulled By: pjh5 fbshipit-source-id: 26c38f59e0284c99f987d69ce6a2c2af9116c3c2 --- .circleci/config.yml | 34 ++++++++++++++++++---- .../linux-binary-build-defaults.yml | 20 ++++++++++++- .../nightly-binary-build-defaults.yml | 14 ++++++--- 3 files changed, 58 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7820821..17ed28b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -523,6 +523,7 @@ binary_populate_env: &binary_populate_env name: Set up env command: | set -ex + export TZ=UTC # We need to write an envfile to persist these variables to following # steps, but the location of the envfile depends on the circleci executor @@ -559,18 +560,22 @@ binary_populate_env: &binary_populate_env fi # We put this here so that OVERRIDE_PACKAGE_VERSION below can read from it - export PYTORCH_BUILD_VERSION="1.0.0.dev$(date +%Y%m%d)" + export DATE="$(date -u +%Y%m%d)" + export PYTORCH_BUILD_VERSION="1.0.0.dev$DATE" export PYTORCH_BUILD_NUMBER=1 cat >>"$envfile" <>"$envfile" <