Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Jan 7, 2026

  • Fix incorrect Log and TaskInstance join query

  • Fix log task instance join foreign keys and remove stray newsfragment

  • Remove unused task variable assignments in test_log_task_instance_join_correctness

  • Fix CI failures and address reviewer comments: revert unrelated doc changes, clean up tests, add Mapped type hints to Log relationships, and run ruff formatting

  • Restore newsfragment and fix missing import in log.py

  • Fix reviewer feedback: add license, move imports, and fix newsfragments

  • Fix ruff static check failure in log.py

  • Flatten primaryjoin definition to fix formatting

  • Fix newsfragments per review: restore 58337 and remove 59965

  • Remove unused import in log.py


(cherry picked from commit 91af86e)

Co-authored-by: Subham subhamsangwan26@gmail.com
Co-authored-by: Jason(Zhe-You) Liu 68415893+jason810496@users.noreply.github.com

* Fix incorrect Log and TaskInstance join query

* Fix log task instance join foreign keys and remove stray newsfragment

* Remove unused task variable assignments in test_log_task_instance_join_correctness

* Fix CI failures and address reviewer comments: revert unrelated doc changes, clean up tests, add Mapped type hints to Log relationships, and run ruff formatting

* Restore newsfragment and fix missing import in log.py

* Fix reviewer feedback: add license, move imports, and fix newsfragments

* Fix ruff static check failure in log.py

* Flatten primaryjoin definition to fix formatting

* Fix newsfragments per review: restore 58337 and remove 59965

* Remove unused import in log.py

---------
(cherry picked from commit 91af86e)

Co-authored-by: Subham <subhamsangwan26@gmail.com>
Co-authored-by: Jason(Zhe-You) Liu <68415893+jason810496@users.noreply.github.com>
@pierrejeambrun pierrejeambrun marked this pull request as ready for review January 7, 2026 11:10
@potiuk
Copy link
Member

potiuk commented Jan 7, 2026

@Subham-KRLX - this backport introduces errors on v3-1-test - maybe you can fix those if we are to backport the fix?

Comment on lines +53 to +60
dag_model: Mapped[DagModel | None] = relationship(
"DagModel",
viewonly=True,
foreign_keys=[dag_id],
primaryjoin="Log.dag_id == DagModel.dag_id",
)

task_instance = relationship(
task_instance: Mapped[TaskInstance | None] = relationship(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, must be these sqlalchemy2.0 annotation type that CI is not happy about.

@Subham-KRLX
Copy link
Contributor

I have created a manual backport to fix the CI issues in v3-1-test.
The errors were caused by SQLAlchemy 2.0 Mapped type hints which are not compatible with the v3-1-test environment.

I have opened a new PR with the fix (removing type hints while keeping the logic correction): #60222
Closing this one in favor of the manual backport.

@potiuk potiuk closed this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants