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

   ## Summary
   
   Callback-only parsing for an unversioned DAG bundle shares the regular 
scan's `DagFileStat` key. The callback result previously replaced that stat 
with a new one containing default parse fields, losing the scan's DAG count, 
import-error count, finish time, and DB query count.
   
   Preserve those fields when a callback-only result uses an unversioned file 
key. The callback duration is still updated, the run count remains unchanged, 
and the finish time is not refreshed. Versioned callback stats remain separate.
   
   ## Tests
   
   - Added regression coverage for preserving scan statistics when an 
unversioned callback-only result shares the scan key.
   - Added coverage confirming versioned callback statistics remain distinct.
   - Focused regression tests: 2 passed.
   - Related callback-only tests: 4 passed.
   - Full `airflow-core/tests/unit/dag_processing/test_manager.py`: 201 passed, 
5 skipped (the skipped tests require PostgreSQL).
   - Ruff lint: passed.
   - Ruff format: passed.
   - `git diff --check`: passed.
   
   Closes #75839
   


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