The GitHub Actions job "Tests" on airflow.git has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
b0ec5c90e631281e8bd1aebe87b29e33a4d1ef8b / Jarek Potiuk <[email protected]>
Handle left-over termination logs from previous runs with same cache

When PythonVirtualEnv and friends use cached venv, script and
termination logs are stored in the venv. While this was fine for scripts
because the env is locked and scripts were overwritten every time
venv started - it was not the same for termination log.

The termination log remains in venv after venv completes (which is
good for diagnostics) however when subsequent task failed without
raising regular exception but just by sys.exit(), the termination
log from previous task was found and such task would return
AirflowException instead of CalledProcessError with the message
coming from the previous task.

This PR fixes it by deleting the termination log at the start of
PythonVirtualenv task, when such termination log is present in
the venv.

Report URL: https://github.com/apache/airflow/actions/runs/6682768541

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to