Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ci: Re-add tests with optimization enabled #29549

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
Loading
from

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jan 30, 2025

PR summary

Note that a few tests require skips, as they check for docstrings.

This PR also fixes testing with LTO disabled (it previously just set a variable in the matrix and did nothing with it.)

Fixes #10312

PR checklist

@QuLogic QuLogic added topic: testing CI: testing CI configuration and testing labels Jan 30, 2025
@QuLogic
Copy link
Member Author

QuLogic commented Jan 30, 2025

It seems to have timed out; I suspect that it's one of the backend tests that I don't have the library for, which isn't running asserts and just continuing on without cancelling.

Also, skip a few tests that only work with docstrings enabled.

Fixes matplotlib#10312
The jobs matrix doesn't set any environment variables, so the
without-LTO job just set `CFLAGS` in the matrix, which was never used
for anything as intended.
This means that:
1. assertion failures look a little better
2. assertions actually happen if optimization is enabled
@QuLogic
Copy link
Member Author

QuLogic commented Feb 11, 2025

I made some changes to ensure that asserts work in subprocesses, but that doesn't appear to have fixed it yet.

It doesn't seem to support it, and is not really updated by upstream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests fail when PYTHONOPTIMIZE is set
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.