This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new f7d3c64  ARROW-2134: [CI] Make Travis-CI commit inspection more robust
f7d3c64 is described below

commit f7d3c64426272ff42271c8aef71f4cce4418e710
Author: Antoine Pitrou <anto...@python.org>
AuthorDate: Mon Feb 12 09:52:48 2018 -0500

    ARROW-2134: [CI] Make Travis-CI commit inspection more robust
    
    Author: Antoine Pitrou <anto...@python.org>
    
    Closes #1590 from pitrou/ci_more_robust_commit_inspection and squashes the 
following commits:
    
    9ab0d7e7 [Antoine Pitrou] ARROW-2134: [CI] [skip appveyor] Make Travis-CI 
commit inspection more robust
---
 ci/travis_detect_changes.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ci/travis_detect_changes.py b/ci/travis_detect_changes.py
index 2842619..2aeb34f 100644
--- a/ci/travis_detect_changes.py
+++ b/ci/travis_detect_changes.py
@@ -70,6 +70,13 @@ def get_travis_commit_range():
     return cr.replace('...', '..')
 
 
+def get_travis_commit_description():
+    # Prefer this to get_commit_description(get_travis_head_commit()),
+    # as rebasing or other repository events may make TRAVIS_COMMIT invalid
+    # at the time we inspect it
+    return os.environ['TRAVIS_COMMIT_MESSAGE']
+
+
 def list_travis_affected_files():
     """
     Return a list of files affected in the current Travis build.
@@ -140,7 +147,7 @@ def get_unix_shell_eval(env):
 
 
 def run_from_travis():
-    desc = get_commit_description(get_travis_head_commit())
+    desc = get_travis_commit_description()
     if '[skip travis]' in desc:
         # Skip everything
         affected = dict.fromkeys(ALL_TOPICS, False)

-- 
To stop receiving notification emails like this one, please contact
w...@apache.org.

Reply via email to