Skip to content

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Sep 4, 2025

What do these changes do?

This makes the http writer cython extension thread safe. Previously it used a global static buffer which would be shared across threads, now the buffer is stack allocated which avoids this and makes it thread safe.

This also marks the cython extensions with freethreading_compatible marker.

Are there changes in behavior for the user?

No change.

Is it a substantial burden for the maintainers to support this?

No

Related issue number

#8796

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES/ folder
    • name it <issue_or_pr_num>.<type>.rst (e.g. 588.bugfix.rst)

    • if you don't have an issue number, change it to the pull request
      number after creating the PR

      • .bugfix: A bug fix for something the maintainers deemed an
        improper undesired behavior that got corrected to match
        pre-agreed expectations.
      • .feature: A new behavior, public APIs. That sort of stuff.
      • .deprecation: A declaration of future API removals and breaking
        changes in behavior.
      • .breaking: When something public is removed in a breaking way.
        Could be deprecated in an earlier release.
      • .doc: Notable updates to the documentation structure or build
        process.
      • .packaging: Notes for downstreams about unobvious side effects
        and tooling. Changes in the test invocation considerations and
        runtime assumptions.
      • .contrib: Stuff that affects the contributor experience. e.g.
        Running tests, building the docs, setting up the development
        environment.
      • .misc: Changes that are hard to assign to any of the above
        categories.
    • Make sure to use full sentences with correct case and punctuation,
      for example:

      Fixed issue with non-ascii contents in doctest text files
      -- by :user:`contributor-gh-handle`.

      Use the past tense or the present tense a non-imperative mood,
      referring to what's changed compared to the last released version
      of this project.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Sep 4, 2025
Copy link

codecov bot commented Sep 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.75%. Comparing base (33de078) to head (a7faff7).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #11464   +/-   ##
=======================================
  Coverage   98.75%   98.75%           
=======================================
  Files         129      129           
  Lines       43418    43418           
  Branches     2325     2325           
=======================================
+ Hits        42876    42879    +3     
+ Misses        387      384    -3     
  Partials      155      155           
Flag Coverage Δ
CI-GHA 98.64% <ø> (+<0.01%) ⬆️
OS-Linux 98.37% <ø> (+<0.01%) ⬆️
OS-Windows 96.81% <ø> (+<0.01%) ⬆️
OS-macOS 97.68% <ø> (-0.01%) ⬇️
Py-3.10.11 97.33% <ø> (+<0.01%) ⬆️
Py-3.10.18 97.72% <ø> (ø)
Py-3.11.13 97.92% <ø> (+<0.01%) ⬆️
Py-3.11.9 97.53% <ø> (+<0.01%) ⬆️
Py-3.12.10 97.62% <ø> (-0.01%) ⬇️
Py-3.12.11 98.01% <ø> (ø)
Py-3.13.7 98.27% <ø> (ø)
Py-3.9.13 97.21% <ø> (+<0.01%) ⬆️
Py-3.9.23 97.61% <ø> (ø)
Py-pypy7.3.16 89.57% <ø> (+2.44%) ⬆️
VM-macos 97.68% <ø> (-0.01%) ⬇️
VM-ubuntu 98.37% <ø> (+<0.01%) ⬆️
VM-windows 96.81% <ø> (+<0.01%) ⬆️

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.

Copy link

codspeed-hq bot commented Sep 4, 2025

CodSpeed Performance Report

Merging #11464 will not alter performance

Comparing kumaraditya303:ft (a7faff7) with master (33de078)

Summary

✅ 59 untouched benchmarks

@bdraco bdraco added backport-3.12 backport-3.13 Trigger automatic backporting to the 3.13 release branch by Patchback robot labels Sep 4, 2025
Copy link
Member

@bdraco bdraco left a comment

Choose a reason for hiding this comment

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

@Dreamsorcerer Dreamsorcerer merged commit 945837c into aio-libs:master Sep 4, 2025
41 of 43 checks passed
Copy link
Contributor

patchback bot commented Sep 4, 2025

Backport to 3.12: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.12/945837cc2d04341cd54df57f17444b8f9a349eb4/pr-11464

Backported as #11468

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Sep 4, 2025
Copy link
Contributor

patchback bot commented Sep 4, 2025

Backport to 3.13: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.13/945837cc2d04341cd54df57f17444b8f9a349eb4/pr-11464

Backported as #11469

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Sep 4, 2025
@kumaraditya303 kumaraditya303 deleted the ft branch September 4, 2025 13:14
Dreamsorcerer pushed a commit that referenced this pull request Sep 4, 2025
…11469)

**This is a backport of PR #11464 as merged into master
(945837c).**

Co-authored-by: Kumar Aditya <[email protected]>
Dreamsorcerer pushed a commit that referenced this pull request Sep 4, 2025
…11468)

**This is a backport of PR #11464 as merged into master
(945837c).**

Co-authored-by: Kumar Aditya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-3.13 Trigger automatic backporting to the 3.13 release branch by Patchback robot bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants