Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reproduce issue#9475 Create test_json_serializer_mem_leak.py test#9817

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
auvipy wants to merge6 commits intomain
base:main
Choose a base branch
Loading
fromjsonmemoryleak

Conversation

@auvipy
Copy link
Member

@auvipyauvipy commentedJul 17, 2025
edited
Loading

to reproduce#9475

@auvipyauvipy requested a review fromCopilotJuly 17, 2025 04:59

This comment was marked as outdated.

@auvipyauvipy changed the titleCreate test_json_serializer_mem_leak.py testReproduce issue https://github.com/celery/celery/issues/9475 Create test_json_serializer_mem_leak.py testJul 17, 2025
@codecov
Copy link

codecovbot commentedJul 17, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.62%. Comparing base(bf1c98b) to head(cebaa27).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@##             main    #9817   +/-   ##=======================================  Coverage   78.62%   78.62%           =======================================  Files         153      153             Lines       19199    19199             Branches     2547     2547           =======================================  Hits        15095    15095             Misses       3811     3811             Partials      293      293
FlagCoverage Δ
unittests78.60% <ø> (ø)

Flags with carried forward coverage won't be shown.Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

@auvipyauvipy changed the titleReproduce issue https://github.com/celery/celery/issues/9475 Create test_json_serializer_mem_leak.py testReproduce issue#9475 Create test_json_serializer_mem_leak.py testJul 17, 2025
auvipyand others added4 commitsJuly 17, 2025 11:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@auvipyauvipy requested a review fromCopilotJuly 17, 2025 05:55
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new integration test to reproduce and detect the JSON serialization memory leak described in issue#9475. It measures memory usage for nested Celery chains/groups using both JSON and pickle serializers and asserts against a configurable threshold.

  • Introducetest_json_serializer_mem_leak.py undert/integration to compare memory footprints of JSON vs pickle.
  • Usepsutil (if available) ortracemalloc to track RSS or Python heap allocations.
  • Fail the test if JSON serialization uses more memory than pickle beyond the specified threshold.
Comments suppressed due to low confidence (1)

t/integration/test_json_serializer_mem_leak.py:103

  • Reference tocreate_job1_task will raise a NameError since it's neither defined nor imported. Add a local definition of this task factory or import it from the module where it's implemented.
        job1 = create_job1_task(app)

}


def test_json_serialization_memory_leak():

Choose a reason for hiding this comment

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

[nitpick] Instead of using rawprint calls for reporting, consider leveraging the test framework's assertion messages or a logging facility to produce structured, machine-readable output.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@auvipyauvipy added this to the6.0 milestoneJul 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.0

Development

Successfully merging this pull request may close these issues.

2 participants

@auvipy

[8]ページ先頭

©2009-2025 Movatter.jp