Skip to content

Fix mutable morsels (#13637) - #13638

Merged
Dreamsorcerer merged 3 commits into
3.15from
patchback/backports/3.15/1857e6df6e9efce10dcf08a4ee26a366add2e443/pr-13637
Sep 5, 2026
Merged

Dreamsorcerer merged 3 commits into
3.15from
patchback/backports/3.15/1857e6df6e9efce10dcf08a4ee26a366add2e443/pr-13637

Conversation

@Dreamsorcerer

Copy link
Copy Markdown
Member

(cherry picked from commit 1857e6d)

(cherry picked from commit 1857e6d)
@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label Sep 5, 2026
@greptile-apps

greptile-apps Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

No blocking failure remains.

The focused reproduction confirmed caller-owned morsels remain isolated after storage, and duplicate response cookies continue to resolve by request path.

T-Rex T-Rex Logs

What T-Rex did

  • Ran an authored pure-Python reproduction against both the base revision and the revised revision with AIOHTTP_NO_EXTENSIONS=1 to validate caller isolation and path-specific duplicate-cookie handling.
  • The base revision showed that a later mutation of the caller morsel changed the stored cookie value to mutated.
  • The revised revision left the caller morsel unchanged and preserved the original stored cookie after mutation, with same-name cookies resolving as sid=root at / and sid=app at /app/resource.
  • Ran the focused CookieJar test suite in the pure-Python environment and confirmed all 98 tests passed.
  • Reviewed the implementation locations around cookie handling and concluded that the approach is isolated and not a security issue.

View all artifacts

T-Rex Ran code and verified through T-Rex

Reviews (3): Last reviewed commit: "Update test_cookiejar.py" | Re-trigger Greptile

Comment thread aiohttp/cookiejar.py Resolved
@codecov

codecov Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.29%. Comparing base (851b746) to head (4eee7e1).
⚠️ Report is 2 commits behind head on 3.15.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.15   #13638      +/-   ##
==========================================
+ Coverage   96.13%   96.29%   +0.16%     
==========================================
  Files         159      161       +2     
  Lines       52137    52210      +73     
  Branches     2858     2872      +14     
==========================================
+ Hits        50123    50277     +154     
+ Misses       1822     1752      -70     
+ Partials      192      181      -11     
Flag Coverage Δ
CI-GHA 96.25% <100.00%> (+0.14%) ⬆️
OS-Linux 96.03% <100.00%> (+0.14%) ⬆️
OS-Windows 94.02% <100.00%> (+<0.01%) ⬆️
OS-macOS 95.43% <100.00%> (-0.01%) ⬇️
Py-3.10 95.36% <100.00%> (-0.01%) ⬇️
Py-3.11 95.63% <100.00%> (+<0.01%) ⬆️
Py-3.12 95.70% <100.00%> (-0.01%) ⬇️
Py-3.13 95.69% <100.00%> (+<0.01%) ⬆️
Py-3.14 95.81% <100.00%> (+0.09%) ⬆️
Py-3.14t 95.08% <100.00%> (+<0.01%) ⬆️
Py-pypy-3.11 94.66% <100.00%> (?)
VM-macos 95.43% <100.00%> (-0.01%) ⬇️
VM-ubuntu 96.03% <100.00%> (+0.14%) ⬆️
VM-windows 94.02% <100.00%> (+<0.01%) ⬆️
cython-coverage 79.14% <90.00%> (-0.01%) ⬇️

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

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

Comment thread tests/test_cookiejar.py Resolved
Comment thread tests/test_cookiejar.py Resolved
@codspeed

codspeed Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 94 untouched benchmarks
⏩ 86 skipped benchmarks1


Comparing patchback/backports/3.15/1857e6df6e9efce10dcf08a4ee26a366add2e443/pr-13637 (4eee7e1) with 3.15 (851b746)2

Open in CodSpeed

Footnotes

  1. 86 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on 3.15 (f461912) during the generation of this report, so 851b746 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@Dreamsorcerer
Dreamsorcerer merged commit 60e5cb3 into 3.15 Sep 5, 2026
48 checks passed
@Dreamsorcerer
Dreamsorcerer deleted the patchback/backports/3.15/1857e6df6e9efce10dcf08a4ee26a366add2e443/pr-13637 branch September 5, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant