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

   Adds two optional environment variables to the `clean-logs.sh` script to to 
delete logs once a `AIRFLOW__LOG_MAX_SIZE_PERCENT` threshold has been breached 
or a `AIRFLOW__LOG_MAX_SIZE_BYTES` has been breached. If either environment 
variable is present and the threshold has been breached the retention days is 
reduced until the threshold is met and then resets. This makes it easier to 
avoid out of disk space issues.
   
   `airflow-core/tests/unit/charts/log_groomer.py` was updated in parallel with 
`helm-tests/tests/chart_utils/log_groomer.py` but both files appear to be 
duplicates of one another. Removing the 
`airflow-core/tests/unit/charts/log_groomer.py` files felt out of scope for 
this PR but I'm happy to delete it if it's no longer in use.
   
   <!--
   Thank you for contributing!
   
   Please provide above a brief description of the changes made in this pull 
request.
   Write a good git commit message following this guide: 
http://chris.beams.io/posts/git-commit/
   
   Please make sure that your code changes are covered with tests.
   And in case of new features or big changes remember to adjust the 
documentation.
   
   Feel free to ping (in general) for the review if you do not see reaction for 
a few days
   (72 Hours is the minimum reaction time you can expect from volunteers) - we 
sometimes miss notifications.
   
   In case of an existing issue, reference it using one of the following:
   
   * closes: #ISSUE
   * related: #ISSUE
   -->
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: [Cursor + Claude Opus 4.5] following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   
   The code has been heavily modified after generation and has been reviewed by 
a human (me). Code has been tested in our local environment.
   
   


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

Reply via email to