-
Notifications
You must be signed in to change notification settings - Fork 16.4k
remove test_serde_serialize_recursion_limit to fix ci
#51737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove test_serde_serialize_recursion_limit to fix ci
#51737
Conversation
jscheffl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be also related to failures in https://github.com/apache/airflow/actions/runs/15655403802/job/44105937266
|
I am not sure if removing failed tests because it fails is a good idea. |
I as well... usually... but I am wonderuing how this test passed initially in https://github.com/apache/airflow/actions/runs/15639878625 and from then on failed on main. We should not remove tests that are long standing. |
|
Likely because it was behind:
But I think we should in this case let the author - @nailo2c - can you take a look and check and retry it ? |
|
(BTW. @nailo2c -> noting bad -> it happens to every one of us :). I just don't like to reverse changes without a firm "I know why" and "there is a plan to fix it" :) |
|
Got it, let me take a look on it, and thanks for the help! :) |
|
It was likely caused by behind, I checked out a new branch from the latest main and the test passed again. The logic of this unit test is quite simple, let me dig in and try to find out why his happened, then maybe submit another PR to add this test back? Unit test: def test_serde_serialize_recursion_limit(self):
depth = sys.getrecursionlimit() - 1
with pytest.raises(RecursionError, match="maximum recursion depth reached for serialization"):
serialize(object(), depth=depth)Tested function: MAX_RECURSION_DEPTH = sys.getrecursionlimit() - 1
def serialize(o: object, depth: int = 0) -> U | None:
if depth == MAX_RECURSION_DEPTH:
raise RecursionError("maximum recursion depth reached for serialization") |
Could you create a GH issue in the meantime, so it isn't forgotten? |
|
sure, let me create a GH issue later |
|
The GH issue: #51915 |

Yesterday, a PR I submitted adding a unit test for the serialize-related function was merged. However, I'm not sure why this unit test fails in CI when running the following command:
breeze testing core-tests --use-xdist --skip-db-tests --no-db-cleanup --backend noneFor now, I'm removing this test, as I've noticed it is causing failures in several PRs.
Affected PRs:
#51701
#51735
#51698