potiuk commented on a change in pull request #4938: [AIRFLOW-4117] 
Multi-staging Image - Travis CI tests [Step 3/3]
URL: https://github.com/apache/airflow/pull/4938#discussion_r299434841
 
 

 ##########
 File path: docs/build.sh
 ##########
 @@ -18,38 +18,74 @@
 # specific language governing permissions and limitations
 # under the License.
 
-set -e
+set -euo pipefail
 
-FWDIR="$(cd "`dirname "$0"`"; pwd)"
-cd "$FWDIR"
+MY_DIR="$(cd "`dirname "$0"`"; pwd)"
+pushd "${MY_DIR}" || exit 1
 
-NUM_INCORRECT_USE_LITERALINCLUDE_DIRECTIVE=$(grep -inR --include \*.rst 
'literalinclude::.\+example_dags' .\
-    tee /dev/tty |\
+if [[ ${APT_DEPS_IMAGE:=""} != "" ]]; then
+    # We are inside the container which means that we should fix permissions 
of the _build folder files
+    # Those files are mounted from the host!
+    echo "Changing ownership of docs/_build folder to 
${AIRFLOW_USER}:${AIRFLOW_USER}"
+    sudo chown ${AIRFLOW_USER}:${AIRFLOW_USER} _build
+    echo "Changed ownership of docs/_build folder to 
${AIRFLOW_USER}:${AIRFLOW_USER}"
 
 Review comment:
   I hope you are ok with that @gerardo  - it's a diagnostic stuff only. And 
it's a nit. We can always optimise it cleanup after some teething problems are 
solved (hopefully not many). I prefer to have a bit more verbose diagnostics 
first to be able to solve early problems of other people and then to make it 
smaller after it stabilizes.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to