You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "KesharwaniArpita (via GitHub)" <gi...@apache.org> on 2023/10/26 07:21:39 UTC

[PR] Combined the `in_container_utils.sh with run_docs_build.sh [airflow]

KesharwaniArpita opened a new pull request, #35192:
URL: https://github.com/apache/airflow/pull/35192

   Combined the `in_container_utils.sh with run_docs_build.sh` to eliminate the dependency of the latter on the former in relation with the issue #26019 . The file is still in bash which will be converted to `.py` files once modified and approved. 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #35192: Combined the `in_container_utils.sh` with run_docs_build.sh
URL: https://github.com/apache/airflow/pull/35192


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "KesharwaniArpita (via GitHub)" <gi...@apache.org>.
KesharwaniArpita commented on PR #35192:
URL: https://github.com/apache/airflow/pull/35192#issuecomment-1813848718

   OKAY!
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #35192:
URL: https://github.com/apache/airflow/pull/35192#discussion_r1381970798


##########
scripts/in_container/check_environment.sh:
##########
@@ -112,10 +112,32 @@ function startairflow_if_requested() {
         echo
         export AIRFLOW__CORE__LOAD_EXAMPLES=${LOAD_EXAMPLES}
 
-        . "$( dirname "${BASH_SOURCE[0]}" )/configure_environment.sh"
+        if [ -z "${FILES_DIR+x}" ]; then

Review Comment:
   I am not sure if in this case it's worth incorporating check environment in. What I really meant to is ratheer to rewrite the configure_environment.sh and run it from here. It makes little sense to increase duplication of the check_environment.sh into other scripts



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "KesharwaniArpita (via GitHub)" <gi...@apache.org>.
KesharwaniArpita commented on PR #35192:
URL: https://github.com/apache/airflow/pull/35192#issuecomment-1784020271

   Do you think, `run_generate_constraints.sh` can be a good candidate?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #35192:
URL: https://github.com/apache/airflow/pull/35192#discussion_r1381950964


##########
scripts/in_container/run_docs_build.sh:
##########
@@ -16,12 +16,64 @@
 # specific language governing permissions and limitations
 # under the License.
 # shellcheck source=scripts/in_container/_in_container_script_init.sh
-. "$( dirname "${BASH_SOURCE[0]}" )/_in_container_script_init.sh"
+

Review Comment:
   Almost all of it can be removed as it is not used + there are some left-overs (like shellcheck above) that are not needed any more



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh with run_docs_build.sh [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #35192:
URL: https://github.com/apache/airflow/pull/35192#issuecomment-1780574428

   I do not think this is needed at alll
   
   1) even if that script includes the common file - it does not seem to use any of it so at most i'd just **REMOVE** using the common script (and test it as well) 
   
   2) This "run_docs_build.sh" simply executes python command and hardly does anything else. I do not think we should rewrite it. We should only rewrite scripts that contain some complex-ish logic in it. Having a script that is just wrapping execution of python command to simplify setting environment variables etc. seems like a legitimate use of bash script IMHO.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #35192:
URL: https://github.com/apache/airflow/pull/35192#issuecomment-1792750802

   I think you realy "included" the whole script there, which was not the intention of my proposal - just leave whatever is needed in the target script - there is really little value in copying code that is not really used - you need to just leave there what is "really used"  (which is almost nothing ig you look at the code).


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #35192:
URL: https://github.com/apache/airflow/pull/35192#discussion_r1381951298


##########
scripts/in_container/run_anything.py:
##########
@@ -0,0 +1,22 @@
+#!/usr/bin/env python

Review Comment:
   Do we need that?



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "KesharwaniArpita (via GitHub)" <gi...@apache.org>.
KesharwaniArpita commented on PR #35192:
URL: https://github.com/apache/airflow/pull/35192#issuecomment-1792482550

   @potiuk 
   @amoghrajesh 
   Your suggestions, Please?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #35192:
URL: https://github.com/apache/airflow/pull/35192#issuecomment-1874709707

   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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


Re: [PR] Combined the `in_container_utils.sh` with run_docs_build.sh [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #35192:
URL: https://github.com/apache/airflow/pull/35192#issuecomment-1784115132

   > Do you think, `run_generate_constraints.sh` can be a good candidate?
   
   Yes. I'd say there are three good candidates. In order of complexity from simplest to most comples:
   
   * check_environment.sh
   * run_generate_constraints.sh
   * run_prepare_provider_packages.sh
   
   
   
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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