Skip to content

Conversation

@bugraoz93
Copy link
Contributor


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Ah, you were faster than me!

One small sanity question before merge...

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

Nice!

@bugraoz93
Copy link
Contributor Author

Seems providers are impacted as well will update before merge it in a moment

@bugraoz93 bugraoz93 force-pushed the task-instance-time-machine-update branch from b38e26e to fc677be Compare November 18, 2025 23:00
@bugraoz93 bugraoz93 requested a review from o-nikolas as a code owner November 18, 2025 23:00
@bugraoz93 bugraoz93 requested a review from kaxil as a code owner November 18, 2025 23:03
@bugraoz93
Copy link
Contributor Author

Okay, and some in task-sdk tests :) Added those as well

@bugraoz93
Copy link
Contributor Author

devel-common pays off well while managing these updates for breaking changes

@bugraoz93 bugraoz93 changed the title Amend time-machine update in ti test Amend time-machine update in unit tests Nov 18, 2025
@bugraoz93
Copy link
Contributor Author

There are other issues with DBT Cloud and task-sdk. One is below, which seems hanging. task-sdk failures seem unrelated, but I will double-check

2025-11-18T23:25:47.7701781Z 1970-01-01T00:16:47.042294Z [info     ] Getting the status of job run 5555. [airflow.task.hooks.airflow.providers.dbt.cloud.hooks.dbt.DbtCloudHook]
2025-11-18T23:25:47.7702297Z 1970-01-01T00:16:47.042294Z [info     ] Current status of job run 5555: RUNNING [airflow.task.hooks.airflow.providers.dbt.cloud.hooks.dbt.DbtCloudHook]
2025-11-18T23:25:47.7702663Z 1970-01-01T00:16:48.042336Z [info     ] Getting the status of job run 5555. [airflow.task.hooks.airflow.providers.dbt.cloud.hooks.dbt.DbtCloudHook]
2025-11-18T23:25:47.7703044Z 1970-01-01T00:16:48.042336Z [info     ] Current status of job run 5555: RUNNING [airflow.task.hooks.airflow.providers.dbt.cloud.hooks.dbt.DbtCloudHook]

@bugraoz93
Copy link
Contributor Author

It doesn't seem like it is related because test_heartbeat_failures_handling already conforms to the changes in time-machine

@bugraoz93
Copy link
Contributor Author

Okay, all using time-machine but in the correct manner. This looks suspicious if the update is really working in all cases 🤔

@bugraoz93
Copy link
Contributor Author

They are not importing time-machine or seeing it from it, maybe that's the reason

@bugraoz93
Copy link
Contributor Author

They introduced time-machine[dateutil] but that fails even worse. Trying some other things

@bugraoz93
Copy link
Contributor Author

Maybe it is easier to version cap to a higher version if we cannot find it, because I see there are lots of tests following the new notation and they are not failing

@potiuk
Copy link
Member

potiuk commented Nov 19, 2025

Maybe it is easier to version cap to a higher version if we cannot find it, because I see there are lots of tests following the new notation and they are not failing

Yes. And create an issue to upgrade it.

@bugraoz93 bugraoz93 mentioned this pull request Nov 19, 2025
1 task
@bugraoz93 bugraoz93 force-pushed the task-instance-time-machine-update branch from bac3f9f to c428e28 Compare November 19, 2025 00:25
@bugraoz93
Copy link
Contributor Author

Reverted the changes and added a version cap to time-machine. Created the issue as well. I need to go to bed :)

@potiuk potiuk merged commit fd3c5ce into apache:main Nov 19, 2025
91 checks passed
amoghrajesh pushed a commit that referenced this pull request Nov 19, 2025
* add version cap to time-machine

* Apply suggestion from @potiuk

---------
(cherry picked from commit fd3c5ce)

Co-authored-by: Bugra Ozturk <[email protected]>
Co-authored-by: Jarek Potiuk <[email protected]>
@amoghrajesh
Copy link
Contributor

We will need this restriction in v3 branch as well

@amoghrajesh
Copy link
Contributor

Manual cherry pick here: #58486

potiuk added a commit that referenced this pull request Nov 19, 2025
* add version cap to time-machine

* Apply suggestion from @potiuk

---------
(cherry picked from commit fd3c5ce)

Co-authored-by: Bugra Ozturk <[email protected]>
Co-authored-by: Jarek Potiuk <[email protected]>
ephraimbuddy pushed a commit that referenced this pull request Nov 19, 2025
* add version cap to time-machine

* Apply suggestion from @potiuk

---------
(cherry picked from commit fd3c5ce)

Co-authored-by: Bugra Ozturk <[email protected]>
Co-authored-by: Jarek Potiuk <[email protected]>
aaron-wolmutt pushed a commit to aaron-wolmutt/airflow that referenced this pull request Nov 20, 2025
* add version cap to time-machine

* Apply suggestion from @potiuk

---------

Co-authored-by: Jarek Potiuk <[email protected]>
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.

4 participants