-
-
Notifications
You must be signed in to change notification settings - Fork 112
Add More Multidict Functions C-API #1190
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
base: capi
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #1190 will not alter performanceComparing Summary
|
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.
#1185 (review) review has a lot of comments that are not applied to this PR yet.
Could you please address it, or should I move these comments to the PR?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Tomorrow Or Later I will see about tracking down the gc/weakref bug. |
|
@asvetlov I'm back. I woke up. I ran pre-commit install inside my env. |
|
@asvetlov When I run pre-commit run --all-files here's what I get |
|
Ok so it appears all I have left is documentation according to the linter this should be an easy one to fix seems I had some spelling errors when I was writing late at night. |
|
@asvetlov It's failing to built the wheels for mac-os for some strange reason but I will wait for you to get back before I do anything else... |
|
@asvetlov Workflow seems to be ignore testcapi but I'm sure you'll find a way to get it to run. |
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (0.43%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## capi #1190 +/- ##
==========================================
- Coverage 97.57% 96.12% -1.46%
==========================================
Files 28 28
Lines 4125 4335 +210
Branches 736 738 +2
==========================================
+ Hits 4025 4167 +142
- Misses 52 119 +67
- Partials 48 49 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Sorry, this evening I was busy preparing the 6.5.1 bugfix release. |
|
So I have a theory on what caused multidict/multidict/_multilib/capsule.h Line 33 in ddbbf68
The problem may be tied to how Multidict is setup to first allocate memory. multidict/multidict/_multidict.c Line 911 in ddbbf68
Looking at PyObject *
PyType_GenericNew(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
return type->tp_alloc(type, 0);
}Replacing
My bad I'll wait for tomorrow, I apologize. |
Yes, you are right. Better to call |
|
@asvetlov I'll leave the rest to you now, now that I've replaced the |
|
Ok. |
Alright, makes sense I'll see about removing this one here in a bit. |
|
@asvetlov I'm going to see about resolving a few conflicts today with this repo and |
|
@asvetlov I'll make sure your done with your benchmarks pr and then I will proceed. |
|
I've done, benchmarks are stable now. |
|
@asvetlov Sounds good let me sync what I need to sync |
|
@asvetlov If I'm going to be honest maybe we should have the testcapi module in the multidict library as an underscore module as something like |
for more information, see https://pre-commit.ci
…hnical _testcapi setup
…hnical _testcapi setup
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
I have to get off to work today but I should be back in 7-8 hours but if anybody wants to try and disabling 3.13t from trying to install cffi and seeing if testcapi passes on all other systems and then merge the pull-request if it all of it passes be my guest. |
|
@asvetlov I came up with a temporary solution for CFFI 2.0.0 on 3.13t, I'll revert the workflow script when it's done but just know this can come back to bite us later if were not careful with how this hack is used... |
What do these changes do?
The summary of #1185 should suffice but basically the pr was accidently merged then deleted luckily I had a backup of the original code on hand so that we can resume where we left off.
Are there changes in behavior for the user?
Changes mainly will involve everything explained in #1185 but given with some better details and other suggestions from other contributors will go into this one.
Related issue number
Checklist