potiuk commented on code in PR #55458:
URL: https://github.com/apache/airflow/pull/55458#discussion_r2338312591
##########
.github/workflows/basic-tests.yml:
##########
@@ -394,3 +394,54 @@ jobs:
run: |
breeze release-management generate-issue-content-core \
--limit-pr-count 2 --previous-release 3.0.1 --current-release
3.0.2 --verbose
+
+ test-airflow-standalone:
+ timeout-minutes: 30
+ name: "Test Airflow standalone commands"
+ runs-on: ${{ fromJSON(inputs.runners) }}
+ env:
+ UV_VERSION: ${{inputs.uv-version}}
+ AIRFLOW_HOME: ~/airflow
+ steps:
+ - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ with:
+ persist-credentials: false
+ - name: "Install uv"
+ run: curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh | sh
+ - name: "Set up Airflow home directory"
+ run: |
+ echo "Setting AIRFLOW_HOME to $AIRFLOW_HOME"
+ mkdir -p $AIRFLOW_HOME
+ - name: "Install Airflow from current repo (simulating user
installation)"
+ run: |
+ uv venv
+ source .venv/bin/activate
+ uv pip install -e ./airflow-core
+ - name: "Test airflow standalone command"
+ run: |
+ source .venv/bin/activate
+ airflow standalone 2>&1 | tee airflow_startup.log &
+ AIRFLOW_PID=$!
+
+ # Wait for ready message till timeout (10 minutes)
+ for i in {1..600}; do
+ if ! kill -0 $AIRFLOW_PID 2>/dev/null; then
+ wait $AIRFLOW_PID
+ EXIT_CODE=$?
+ echo "FAILED: Airflow standalone exited with code $EXIT_CODE"
+ exit $EXIT_CODE
Review Comment:
Isn't `tee` already doing it while it's running ? That would make a
duplicate output in case it fails.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]