This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new d0dd79430d0 [v3-1-test] Add prompt to breeze container (#58879) 
(#58884)
d0dd79430d0 is described below

commit d0dd79430d008325106f14dbea50031daa6c53e8
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Dec 1 21:05:01 2025 +0100

    [v3-1-test] Add prompt to breeze container (#58879) (#58884)
    
    (cherry picked from commit dc88d1e82a9dbc31816bdab487818d71b8799071)
    
    Co-authored-by: Jarek Potiuk <[email protected]>
---
 Dockerfile.ci                                     |  4 +++-
 airflow-core/docs/best-practices.rst              |  2 +-
 airflow-core/docs/core-concepts/debug.rst         |  2 +-
 airflow-core/docs/howto/set-up-database.rst       |  2 +-
 contributing-docs/03_contributors_quick_start.rst | 12 ++++++------
 contributing-docs/testing/unit_tests.rst          |  4 ++--
 providers/MANAGING_PROVIDERS_LIFECYCLE.rst        |  2 +-
 7 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/Dockerfile.ci b/Dockerfile.ci
index 54f6b358d1d..ec84303493a 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -1758,10 +1758,12 @@ RUN chmod a+x /entrypoint /entrypoint-exec
 
 
 # Install autocomplete for airflow and kubectl
+# hadolint ignore=SC2028
 RUN if command -v airflow; then \
     register-python-argcomplete airflow >> ~/.bashrc ; \
     fi; \
-    echo "source /etc/bash_completion" >> ~/.bashrc
+    echo "source /etc/bash_completion" >> ~/.bashrc ; \
+    echo 'export PS1="\[\033[1;36m\][Breeze:\$(python --version 2>&1 | cut 
-d\" \" -f2)]\[\033[0m\] 
\[\033[1;32m\]\u@\h\[\033[0m\]:\[\033[1;34m\]\w\[\033[0m\]\$ "' >> ~/.bashrc
 
 WORKDIR ${AIRFLOW_SOURCES}
 
diff --git a/airflow-core/docs/best-practices.rst 
b/airflow-core/docs/best-practices.rst
index a318935890d..1985c2731c6 100644
--- a/airflow-core/docs/best-practices.rst
+++ b/airflow-core/docs/best-practices.rst
@@ -291,7 +291,7 @@ When you execute that code you will see:
 
 .. code-block:: bash
 
-    root@cf85ab34571e:/opt/airflow# python /files/test_python.py
+    [Breeze:3.10.19] root@cf85ab34571e:/opt/airflow# python 
/files/test_python.py
     Executing 1
 
 This means that the ``get_array`` is not executed as top-level code, but 
``get_task_id`` is.
diff --git a/airflow-core/docs/core-concepts/debug.rst 
b/airflow-core/docs/core-concepts/debug.rst
index dd627bb3558..0bed4ec3f2e 100644
--- a/airflow-core/docs/core-concepts/debug.rst
+++ b/airflow-core/docs/core-concepts/debug.rst
@@ -78,7 +78,7 @@ Run ``python -m pdb <path to Dag file>.py`` for an 
interactive debugging experie
 
 .. code-block:: bash
 
-  root@ef2c84ad4856:/opt/airflow# python -m pdb 
providers/standard/src/airflow/providers/standard/example_dags/example_bash_operator.py
+  [Breeze:3.10.19] root@ef2c84ad4856:/opt/airflow# python -m pdb 
providers/standard/src/airflow/providers/standard/example_dags/example_bash_operator.py
   > 
/opt/airflow/providers/standard/src/airflow/providers/standard/example_dags/example_bash_operator.py(18)<module>()
   -> """Example Dag demonstrating the usage of the BashOperator."""
   (Pdb) b 45
diff --git a/airflow-core/docs/howto/set-up-database.rst 
b/airflow-core/docs/howto/set-up-database.rst
index 6846efc303a..4d38699c615 100644
--- a/airflow-core/docs/howto/set-up-database.rst
+++ b/airflow-core/docs/howto/set-up-database.rst
@@ -93,7 +93,7 @@ You can make sure which version is used by the interpreter by 
running this check
 
 .. code-block:: bash
 
-    root@b8a8e73caa2c:/opt/airflow# python
+    [Breeze:3.10.19] root@b8a8e73caa2c:/opt/airflow# python
     Python 3.8.10 (default, Mar 15 2022, 12:22:08)
     [GCC 8.3.0] on linux
     Type "help", "copyright", "credits" or "license" for more information.
diff --git a/contributing-docs/03_contributors_quick_start.rst 
b/contributing-docs/03_contributors_quick_start.rst
index 57a96d11313..5a1fb73131e 100644
--- a/contributing-docs/03_contributors_quick_start.rst
+++ b/contributing-docs/03_contributors_quick_start.rst
@@ -475,11 +475,11 @@ see in CI in your local environment.
 
 .. code-block:: bash
 
-  root@b76fcb399bb6:/opt/airflow# airflow db reset
+  [Breeze:3.10.19] root@b76fcb399bb6:/opt/airflow# airflow db reset
 
 .. code-block:: bash
 
-        root@b76fcb399bb6:/opt/airflow# airflow users create \
+   [Breeze:3.10.19] root@b76fcb399bb6:/opt/airflow# airflow users create \
                 --username admin \
                 --firstname FIRST_NAME \
                 --lastname LAST_NAME \
@@ -495,7 +495,7 @@ see in CI in your local environment.
 
 .. code-block:: bash
 
-  root@b76fcb399bb6:/opt/airflow# exit
+  [Breeze:3.10.19] root@b76fcb399bb6:/opt/airflow# exit
 
 8. You can stop the environment (which means deleting the databases and 
database servers running in the
    background) via ``breeze down`` command
@@ -630,14 +630,14 @@ If ``breeze`` was started with ``breeze start-airflow``, 
this command will stop
 
 .. code-block:: bash
 
-  root@f3619b74c59a:/opt/airflow# stop_airflow
+  [Breeze:3.10.19] root@f3619b74c59a:/opt/airflow# stop_airflow
   breeze down
 
 If ``breeze`` was started with ``breeze --python 3.10 --backend postgres`` (or 
similar):
 
 .. code-block:: bash
 
-  root@f3619b74c59a:/opt/airflow# exit
+  [Breeze:3.10.19] root@f3619b74c59a:/opt/airflow# exit
   breeze down
 
 .. note::
@@ -711,7 +711,7 @@ All Tests are inside ./tests directory.
 
 .. code-block:: bash
 
-   root@63528318c8b1:/opt/airflow# pytest tests/utils/test_dates.py
+   [Breeze:3.10.19] root@63528318c8b1:/opt/airflow# pytest 
tests/utils/test_dates.py
    ============================================================= test session 
starts ==============================================================
    platform linux -- Python 3.10.20, pytest-8.3.3, pluggy-1.5.0 -- 
/usr/python/bin/python
    cachedir: .pytest_cache
diff --git a/contributing-docs/testing/unit_tests.rst 
b/contributing-docs/testing/unit_tests.rst
index 8122e6fe9be..1f65d1204bc 100644
--- a/contributing-docs/testing/unit_tests.rst
+++ b/contributing-docs/testing/unit_tests.rst
@@ -47,7 +47,7 @@ That mean if one of this warning appear during test run and 
do not captured the
 
 .. code-block:: console
 
-    root@91e633d08aa8:/opt/airflow# pytest 
tests/models/test_dag.py::TestDag::test_clear_dag
+    [Breeze:3.10.19] root@91e633d08aa8:/opt/airflow# pytest 
tests/models/test_dag.py::TestDag::test_clear_dag
     ...
     FAILED tests/models/test_dag.py::TestDag::test_clear_dag[None-None] - 
airflow.exceptions.RemovedInAirflow3Warning: Calling `DAG.create_dagrun()` 
without an explicit data interval is deprecated
 
@@ -1504,7 +1504,7 @@ or by setting the environment variable 
``CAPTURE_WARNINGS_OUTPUT``.
 
 .. code-block:: console
 
-    root@3f98e75b1ebe:/opt/airflow# pytest airflow-core/tests/unit/core/ 
--warning-output-path=/foo/bar/spam.egg
+    [Breeze:3.10.19] root@3f98e75b1ebe:/opt/airflow# pytest 
airflow-core/tests/unit/core/ --warning-output-path=/foo/bar/spam.egg
     ...
     ========================= Warning summary. Total: 28, Unique: 12 
==========================
     airflow: total 11, unique 1
diff --git a/providers/MANAGING_PROVIDERS_LIFECYCLE.rst 
b/providers/MANAGING_PROVIDERS_LIFECYCLE.rst
index ef16f709ae5..b43074b3462 100644
--- a/providers/MANAGING_PROVIDERS_LIFECYCLE.rst
+++ b/providers/MANAGING_PROVIDERS_LIFECYCLE.rst
@@ -122,7 +122,7 @@ breeze and I'll run unit tests for my Hook.
 
   .. code-block:: bash
 
-      root@fafd8d630e46:/opt/airflow# python -m pytest 
providers/<PROVIDER>/tests/<PROVIDER>/hook/test_*.py
+      [Breeze:3.10.19] root@fafd8d630e46:/opt/airflow# python -m pytest 
providers/<PROVIDER>/tests/<PROVIDER>/hook/test_*.py
 
 Integration tests
 -----------------

Reply via email to