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 2021/02/23 15:10:17 UTC

[GitHub] [airflow] ecerulm opened a new issue #14393: breeze: it relies on GNU date which is not the default on macOS

ecerulm opened a new issue #14393:
URL: https://github.com/apache/airflow/issues/14393


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**:
   2.0.1
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **OS** macOS Catalina
   
   **What happened**:
   
   `breeze build-image`  gives 
   
   ```
   Pulling the image apache/airflow:master-python3.6-ci
   master-python3.6-ci: Pulling from apache/airflow
   Digest: sha256:92351723f04bec6e6ef27c0be2b5fbbe7bddc832911988b2d18b88914bcc1256
   Status: Downloaded newer image for apache/airflow:master-python3.6-ci
   docker.io/apache/airflow:master-python3.6-ci
   date: illegal option -- -
   usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
               [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
   ```
   
   As I explained in [Slack](https://apache-airflow.slack.com/archives/CQ9QHSFQX/p1614092075007500) this is caused by 
   https://github.com/apache/airflow/blob/b9951279a0007db99a6f4c52197907ebfa1bf325/scripts/ci/libraries/_build_images.sh#L770
   
   ```
           --build-arg AIRFLOW_IMAGE_DATE_CREATED="$(date --rfc-3339=seconds | sed 's/ /T/')" \
   ```       
   
   `--rfc-3339` is an option supported by GNU date but not by the regular `date` command present macOS. 
   
   **What you expected to happen**:
   
   
   `--rfc-3339` is an option supported by GNU date but not by the regular `date` command present macOS. 
   
   
   
   **How to reproduce it**:
   
   on macOS: `breeze build-image`
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   It happens every time
   
   I think this can be solve either by checking for the presence of `gdate` and use that if present or by adhering to POSIX date options (I'm not 100% but I do believe the regular POSIX options are available in macOS's `date`)
   
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


----------------------------------------------------------------
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] kaxil closed issue #14393: breeze: it relies on GNU date which is not the default on macOS

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #14393:
URL: https://github.com/apache/airflow/issues/14393


   


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