Run tests in debug mode in an additional CI job#1145
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 (Святослав Сидоренко) <webknjaz@redhat.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <webknjaz@redhat.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <webknjaz@redhat.com>
|
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.
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.
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.
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.
Downstreams tend to additionally package debug symbols.
There was a problem hiding this comment.
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.
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_BUILDenvironment variable is now available to enable a debug build.