You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/20 15:05:57 UTC

[GitHub] [airflow] ashb opened a new pull request #8924: Re-run all tests when Dockerfile or Github worflow files change

ashb opened a new pull request #8924:
URL: https://github.com/apache/airflow/pull/8924


   Fixes #8921
   
   ---
   Make sure to mark the boxes below before creating PR: [x]
   
   - [x] Description above provides context of the change
   - [x] Unit tests coverage for changes (not needed for documentation changes)
   - [x] Target Github ISSUE in description if exists
   - [x] Commits follow "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)"
   - [x] Relevant documentation is updated including usage instructions.
   - [x] I will engage committers as explained in [Contribution Workflow Example](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example).
   
   ---
   In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   Read the [Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines) for more information.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb commented on pull request #8924: Re-run all tests when Dockerfile or Github worflow files change

Posted by GitBox <gi...@apache.org>.
ashb commented on pull request #8924:
URL: https://github.com/apache/airflow/pull/8924#issuecomment-631626653


   I'm going to merge this, then my _next_ fix to the Dockerfile (to add  back in JAVA_HOME) will actually run the tests.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb commented on pull request #8924: Re-run all tests when Dockerfile or Github worflow files change

Posted by GitBox <gi...@apache.org>.
ashb commented on pull request #8924:
URL: https://github.com/apache/airflow/pull/8924#issuecomment-631593618


   Ah, thanks :)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb commented on a change in pull request #8924: Re-run all tests when Dockerfile or Github worflow files change

Posted by GitBox <gi...@apache.org>.
ashb commented on a change in pull request #8924:
URL: https://github.com/apache/airflow/pull/8924#discussion_r428160892



##########
File path: scripts/ci/ci_count_changed_files.sh
##########
@@ -42,7 +42,7 @@ echo
 echo
 echo "Changed files matching the ${2} pattern"
 echo
-echo "${CHANGED_FILES}" | grep "${2}" || true
+echo "${CHANGED_FILES}" | grep -E "${2}" || true
 echo
 
 echo

Review comment:
       > FYI. @ashb It's enough to set VERBOSE_COMMANDS="true" in the workflow and all commands will be printed.
   
   Oh yes, I thought this was deeper in the call stack, so I thought that would have given me a lot more logs than I want. (Plus sometimes the more direct option is easier to remember)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on a change in pull request #8924: Re-run all tests when Dockerfile or Github worflow files change

Posted by GitBox <gi...@apache.org>.
potiuk commented on a change in pull request #8924:
URL: https://github.com/apache/airflow/pull/8924#discussion_r428159397



##########
File path: scripts/ci/ci_count_changed_files.sh
##########
@@ -42,7 +42,7 @@ echo
 echo
 echo "Changed files matching the ${2} pattern"
 echo
-echo "${CHANGED_FILES}" | grep "${2}" || true
+echo "${CHANGED_FILES}" | grep -E "${2}" || true
 echo
 
 echo

Review comment:
       You also need to add -E to the grep below which actually counts the files.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb merged pull request #8924: Re-run all tests when Dockerfile or Github worflow files change

Posted by GitBox <gi...@apache.org>.
ashb merged pull request #8924:
URL: https://github.com/apache/airflow/pull/8924


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on pull request #8924: Re-run all tests when Dockerfile or Github worflow files change

Posted by GitBox <gi...@apache.org>.
potiuk commented on pull request #8924:
URL: https://github.com/apache/airflow/pull/8924#issuecomment-631589327


   FYI. @ashb It's enough to set VERBOSE_COMMANDS="true" in the workflow and all commands will be printed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on pull request #8924: Re-run all tests when Dockerfile or Github worflow files change

Posted by GitBox <gi...@apache.org>.
potiuk commented on pull request #8924:
URL: https://github.com/apache/airflow/pull/8924#issuecomment-631593311


   The problem is that there are two greps - one displays and second counts:
   
   ```
   Changed files matching the \.py$|.github/workflows/|^Dockerfile pattern
   
   .github/workflows/ci.yml
   
   
   Count changed files matching the \.py$|.github/workflows/|^Dockerfile pattern
   
   0
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org