Skip to content

Conversation

@Eason09053360
Copy link

This PR fixes a flaky unit test test_serde_serialize_recursion_limit in task-sdk.

The test was previously using sys.getrecursionlimit() - 1 to simulate the recursion depth. However, this system limit (often 1000) does not match the internal MAX_RECURSION_DEPTH constant (which is 10) used in the serialize function.

Because of this mismatch, the depth check in serialize passed (since 999 != 10), causing the function to attempt to serialize the empty object(), resulting in a TypeError instead of the expected RecursionError.

Verification

Ran the test locally with pytest and it passed:

截圖 2026-01-29 凌晨3 17 53

Changes:

  • Imported MAX_RECURSION_DEPTH from airflow.sdk.serde.serde.
  • Updated the test to use this constant for the depth parameter to correctly trigger the RecursionError.

closes: #51915

Eason09053360 and others added 5 commits January 26, 2026 18:52
- Create PluginsPage page object following POM pattern
- Add test specs for plugins list display and pagination
- Tests work across Chromium, Firefox, and WebKit browsers
- All 24 tests passing

Fixes apache#60571
… currently fails in CI due to test environment having only 7 plugins,

which is insufficient to trigger pagination UI controls. Seeking guidance on
whether to keep failing test or remove it.
@boring-cyborg boring-cyborg bot added area:task-sdk area:UI Related to UI/UX. For Frontend Developers. labels Jan 28, 2026
@Eason09053360
Copy link
Author

Closing this PR in favor of a cleaner version to avoid mixing unrelated commits.
Please see #61182 for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:task-sdk area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate CI failure of test_serde_serialize_recursion_limit

2 participants