Copilot commented on code in PR #77598:
URL: https://github.com/apache/airflow/pull/77598#discussion_r4698783608
##########
airflow-core/tests/unit/models/test_renderedtifields.py:
##########
@@ -246,9 +247,9 @@ def test_delete_old_records(
@pytest.mark.parametrize(
("num_runs", "num_to_keep", "remaining_rtifs", "expected_query_count"),
[
- (3, 1, 1, 2),
+ (3, 1, 2, 2),
(4, 2, 2, 2),
- (5, 2, 2, 2),
+ (5, 2, 3, 2),
Review Comment:
These counts can pass when cleanup deletes the wrong window, and no case
exercises the new `DagRun.id` tie-breaker. Add a regression test with more than
`2 * num_to_keep` runs and assert exact surviving run IDs for both distinct and
equal `run_after` timestamps. Cover unmapped and mapped tasks, checking every
surviving map index; the unmapped cases at lines 211–213 have the same gap.
--
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]