You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env bash
files_changed=$(git diff --name-only bpo-1100942)echo$(git diff --name-only bpo-1100942 | grep -vE '(\.rst$)|(^Doc)|(^Misc)')
has_code=$(git diff --name-only bpo-1100942 | grep -qvE '(\.rst$)|(^Doc)|(^Misc)')if!$has_codethenecho"HasCode: Only docs updated"elseecho"HasCode: We can update"fiif!echo$files_changed| grep -qvE '(\.rst$)|(^Doc)|(^Misc)'thenecho"FilesChanged: Only docs updated"elseecho"FilesChanged: We can update"fi
and the output:
Lib/_strptime.py Lib/datetime.py Lib/test/datetimetester.py Modules/_datetimemodule.c
HasCode: We can update
FilesChanged: Only docs updated
When I execute the code of Travis, I have the result, Only docs updated but when I execute the git diff with the grep command, I have the right result.
I wonder if other open PRs should be rebased to include the change in python/cpython#5589?
A rebase won't be required, travis pulls in latest changes and applies the changes to the latest codebase (which should include the new travis.yml). A rebuild should do.
Activity
matrixise commentedon Feb 7, 2018
Here is my test:
bpo-1100942 is the branch of this PR: python/cpython#5578
and the output:
When I execute the code of Travis, I have the result,
Only docs updatedbut when I execute thegit diffwith thegrepcommand, I have the right result.matrixise commentedon Feb 7, 2018
@brettcannon I have changed the condition with a flat condition, without any variable and the worker of Travis runs the tests
Here is my PR for review https://github.com/python/cpython/pull/5580/files
my 2cents...
berkerpeksag commentedon Feb 8, 2018
python/cpython@b2ec361 (see #14 (comment) for details) might be the culprit. @ammaraskar do you have some time to investigate this?
ammaraskar commentedon Feb 8, 2018
Oh this is most likely just a quoting issue around the variable, trying changing the line to:
if ! echo "$files_changed" | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'instead of
if ! echo $files_changed | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'matrixise commentedon Feb 8, 2018
I have created this issue https://bugs.python.org/issue32802 and the associated PR python/cpython#5589 . This PR can be back ported to 3.6 & 3.7
Mariatta commentedon Feb 8, 2018
Thanks @matrixise! Good catch and thanks for fixing.
I've merged that PR and now waiting for the backports to be finished.
I wonder if other open PRs should be rebased to include the change in python/cpython#5589?
ammaraskar commentedon Feb 8, 2018
A rebase won't be required, travis pulls in latest changes and applies the changes to the latest codebase (which should include the new travis.yml). A rebuild should do.
Someone who has administrator access over the python travis should be able to trigger a rebuild. From a quick look it would be every RP after this one: python/cpython#5449. Another view on travis that should help is this: https://travis-ci.org/python/cpython/pull_requests
Of course PRs that change only documentation don't need a rebuild, it should also be easy to see if the full build went through by the time taken.
brettcannon commentedon Feb 21, 2018
can this issue be closed?
berkerpeksag commentedon Feb 21, 2018
I think we close this now. Thank you everyone!