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 2022/06/06 09:40:34 UTC

[GitHub] [airflow] Taragolis opened a new pull request, #24248: Change `log_filename_template` in unittest default template

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

   At that moment if user use unit test mode (`AIRFLOW__CORE__UNIT_TEST_MODE=True`) then got warning:
   
   ```
   ================================================================================= warnings summary ==================================================================================
   .nox/tests-airflow_version-2-3-2/lib/python3.9/site-packages/airflow/configuration.py:433
     .nox/tests-airflow_version-2-3-2/lib/python3.9/site-packages/airflow/configuration.py:433: FutureWarning: The 'log_filename_template' setting in [logging] has the old default value of '{{ ti.dag_id }}/{{ ti.task_id }}/{{ ts }}/{{ try_number }}.log'. This value has been changed to 'dag_id={{ ti.dag_id }}/run_id={{ ti.run_id }}/task_id={{ ti.task_id }}/{% if ti.map_index >= 0 %}map_index={{ ti.map_index }}/{% endif %}attempt={{ try_number }}.log' in the running config, but please update your config before Apache Airflow 3.0.
       warnings.warn(
   
   -- Docs: https://docs.pytest.org/en/stable/warnings.html
   ```
   
   This change won't affect to already created `unittests.cfg`.


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


[GitHub] [airflow] Taragolis commented on pull request #24248: Change `log_filename_template` in unittest default template

Posted by GitBox <gi...@apache.org>.
Taragolis commented on PR #24248:
URL: https://github.com/apache/airflow/pull/24248#issuecomment-1147704092

   Oh... yeah https://github.com/apache/airflow/pull/24153 should fix 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


[GitHub] [airflow] potiuk commented on pull request #24248: Change `log_filename_template` in unittest default template

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

   I tihnk that needs to go through @uranusjr :) as he is working now on fixing some other logging template issues :)


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


[GitHub] [airflow] potiuk commented on pull request #24248: Change `log_filename_template` in unittest default template

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

   See https://github.com/apache/airflow/pull/24153


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


[GitHub] [airflow] Taragolis closed pull request #24248: Change `log_filename_template` in unittest default template

Posted by GitBox <gi...@apache.org>.
Taragolis closed pull request #24248: Change `log_filename_template` in unittest default template
URL: https://github.com/apache/airflow/pull/24248


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