-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-33926: enable GDB tests on Travis CI #14395
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
I guess this also resolves https://bugs.python.org/issue33926 . Thanks. |
.travis.yml
Outdated
# Use -O3 because we don't use debugger on Travis-CI | ||
- CFLAGS="-I${OPENSSL_DIR}/include -O3" | ||
# Use -Og because we want to run all GDB tests | ||
- CFLAGS="-I${OPENSSL_DIR}/include -Og" |
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.
- CFLAGS="-I${OPENSSL_DIR}/include -Og" | |
- CFLAGS="-I${OPENSSL_DIR}/include" |
.travis.yml
Outdated
@@ -14,8 +14,8 @@ env: | |||
- OPENSSL=1.1.1c | |||
- OPENSSL_DIR="$HOME/multissl/openssl/${OPENSSL}" | |||
- PATH="${OPENSSL_DIR}/bin:$PATH" | |||
# Use -O3 because we don't use debugger on Travis-CI | |||
- CFLAGS="-I${OPENSSL_DIR}/include -O3" | |||
# Use -Og because we want to run all GDB tests |
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.
remove this comment line.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
In fact, it fixes exactly that. So I'm changing the bpo number here. |
When |
@jdemeyer Can you please change the issue number in PR description from 32926 to 33926? I guess the bot keeps linking this PR to the issue 32926 for every comment made in this PR. |
OK, let's test that. |
OK, this seems to work. |
Thanks for making the requested changes! @methane: please review the changes made to this pull request. |
GH-14420 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit 667eaff) Co-authored-by: Jeroen Demeyer <[email protected]>
Does this change have any noticeable impact on CI timing? The merge run happened for 20 mins which used to be 10-12 mins earlier. The backport PR also completes in around 20 minutes. |
(cherry picked from commit 667eaff) Co-authored-by: Jeroen Demeyer <[email protected]>
Yes, it affects. I will compare the time of |
|
|
It's 1.8x slower. |
Previously, we used -O3:
Is it really useful to make the pre-commit CI almost 2x slower just because of test_gdb? We already have a large fleet of post-commit buildbots which run test_gdb. |
https://travis-ci.org/python/cpython/builds/551298808 |
-Og isn't the default when building using --with-pydebug? 16 min 52 sec total, "Total duration: 12 min 4 sec" just for the tests, looks close to what we had using -O3. If test_gdb still pass, we should definitively use -Og :-) So yeah for #14423 :-) |
Fixes https://bugs.python.org/issue33926
See also https://bugs.python.org/issue37382