-
-
Notifications
You must be signed in to change notification settings - Fork 106
Run tests in debug mode in an additional CI job #1145
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
Conversation
CodSpeed Performance ReportMerging #1145 will not alter performanceComparing Summary
|
@asvetlov Looks like a segfault when running 3.9/3.10 with debug turned on as well |
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
I think we should test everything in both debug and release modes. Consider the following snippet:
|
Sorry, I don't see a failed action run. Where is the segfault? |
alternative to #1145 that uses the existing matrix
Looks like it come from
|
happens with |
failed assert multidict/multidict/_multilib/state.h Line 51 in 57c09c0
|
Python 3.10.17 |
called at multidict/multidict/_multilib/views.h Line 1172 in 57c09c0
left side is a multidict/multidict/_multilib/state.h Line 51 in 57c09c0
|
thanks, I'm looking |
I used the below to create the env to test in:
|
I use Ubuntu, and for me bug reproducing is easier :) |
Alternate version that adjusts the matrix instead |
00:30 here so I'm off to bed. Feel free to adjust debug mode PRs. Will check back when I get up and moving. Cheers |
Fixed by #1147 |
- name: >- | ||
Self-install source |
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.
Actually, source is never installed. Only the contents of wheels are. I think, the following will better communicate what this does.
- name: >- | |
Self-install source | |
- name: Compile and install from source checkout |
|
||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v4 |
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.
Could you change this to checkout from sdist instead of Git? It'll mimic what both pip and downstreams do. And this is what we really want not to crash.
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.
The issue was not about 'cannot build from sdist' but 'cannot build and run tests when debug mode is on'.
I don't think that the installation from sdist makes any difference here.
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.
Downstreams tend to additionally package debug symbols.
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.
What symbols? Could you please elaborate how it does related?
path: requirements/pytest.txt | ||
- name: >- | ||
Self-install source | ||
env: |
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.
Could you try setting PIP_CONSTRAINT
? This is so the same build deps are used here and when publishing.
closing in favor of #1146 |
✅ What This Does
🔧 New Environment Variable
The
MULTIDICT_DEBUG_BUILD
environment variable is now available to enable a debug build.