Skip to content
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

bst1: Support Python 3.11 #1785

Closed
wants to merge 5 commits into from

Conversation

nanonyme
Copy link
Contributor

@nanonyme nanonyme commented Nov 3, 2022

Fixes #1758

@mcatanzaro
Copy link

Why is this still a draft?

@nanonyme
Copy link
Contributor Author

nanonyme commented Nov 16, 2022

@mcatanzaro tests don't pass and it's not directly related to Python 3.11

@nanonyme
Copy link
Contributor Author

I am not getting a pipeline, dunno why.

@nanonyme
Copy link
Contributor Author

I'm not entirely sure if tests hang on Fedora 36 and 37 but at least they're massively slower.

@nanonyme
Copy link
Contributor Author

Looks like there are failing tests. The failing tests are failing really slowly. I'm trying to make tests abort after first failure so we see real output.

@nanonyme
Copy link
Contributor Author

Well, that was not overly useful. I got it to actually end and we're maybe a bit closer to understanding why the test is so slow https://github.com/apache/buildstream/actions/runs/3688689726/jobs/6243779599 but the traceback is mostly gibberish and there is no console output

@mcatanzaro
Copy link

Hi @gtristan, can you look at this please? buildstream 1 is really super broken currently, and for a very long time now (it's not like python 3.11 is new anymore).

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

Note that this is about CI and testing on Python 3.11. This has no functional changes.

@mcatanzaro
Copy link

Oops, I see it is #1758 that requires attention, not this #1785.

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

There are unreleased fixes for Python3.11 in bst-1 branch. But without CI it's hard to say whether further things are broken.

@mcatanzaro
Copy link

Er, why not release them then? This has been blocking a lot of stuff for a long time.

(I agree that CI is very important, but it's not urgent.)

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

It would be nice if someone pip installed bst1 from this repo who actually has Python3.11 to give it at least some lightweight manual testing.

@jjardon
Copy link
Contributor

jjardon commented Jan 4, 2023

@mcatanzaro @nanonyme I think that is what is being done in #1757 (It hangs forever)

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

@jjardon I am not taking about CI. Just install it and use it. It will not hang. See if there are further regressions.

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

If it seems usable, then we tag a release and worry about CI later.

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

The hangs are related to special way bst event loop is used for unittest purposes in same process restarting it over and over again. They are not indicative of real problems.

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

@jjardon it also does not hang "forever". Asyncio gets into bad state and times out with 30 minutes at a time. It just times out dozens of times in a loop so it looks like forever.

@mcatanzaro
Copy link

It would be nice if someone pip installed bst1 from this repo who actually has Python3.11 to give it at least some lightweight manual testing.

You don't have access to an F37 toolbx container? That should take maybe two minutes to create. Whatever. I installed this branch and am building gnome-build-meta with it now. Will let you know how it goes....

@mcatanzaro
Copy link

Will let you know how it goes....

Well it finished successfully, but I think it pulled everything from the artifact cache without actually building anything.

Want me to test anything else in particular?

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

I think that's strong indication we should wrap a quick release. If you can build something (doesn't matter what, you can force rebuild by setting environment variable in some element), that would be even better.

@nanonyme
Copy link
Contributor Author

nanonyme commented Jan 4, 2023

I created #1809 anyhow. I would like to have CI actually work before advertising Python 3.11 support in metadata. But this should hopefully unblock downstreams.

@mcatanzaro
Copy link

I think that's strong indication we should wrap a quick release. If you can build something (doesn't matter what, you can force rebuild by setting environment variable in some element), that would be even better.

Did this to force building core/epiphany.bst. It worked.

jjardon and others added 5 commits January 12, 2023 19:43
And remove soon to be deprecated fedora 35
This is the python version in fedora 37
The older version doesn't support Python 3.11
This is first upstream release that advertises Python 3.11 support
@gtristan
Copy link
Contributor

This is replaced by #1827

@gtristan gtristan closed this Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants