[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Tests crashing Automatic Build page + Compiling PyGame on Windows



Finally I can get to this posting:

Nicholas Dudfield wrote:
Greetings all.

Computer Died
=============

Sorry to hear that.

[snip]


Compiling Pygame
================

The instructions for building pygame on windows using MSYS involved downloading and compiling dependencies. It was not until afterwards that I found out that prebuilts were available. It would probably be helpful to link to them somewhere on the wiki.
Done.

It was not until afterwards that I found out that prebuilts were available. I will do that myself once my computer is operational again. In fact there is a note on the wiki, "*note* We should have a download with everything included.
It's available at http://www3.telus.net/len_l/pygame/ , but has never been copied to the pygame site. If it goes into the wiki then it could be corrupted by someone else. So it should be on the download page.

As well as patches for each one that we need. "
No patches needed.


Anyway, I went to the pains of downloading all the dependencies and compiling. The msys_build_deps.py script works very nicely, the only issue I had was that SMPEG wouldn't compile. I just got a copy of the config and dll from the page with the prebuilts.

This was the error message from the script:

$ msys_build_deps.py SMPEG

=== Starting build ===
aclocal: configure.in: 133: macro `AM_PATH_SDL' not found in library
aclocal: configure.in: 219: macro `AM_PATH_GTK' not found in library
'./autogen.sh' failed to run properly
Build aborted: The build for SMPEG failed with code 1
Did you install MSYS-DTK-1.0.1?


Failing Tests
=============

I built revision 1376 and running run_tests.py here crashes before completion of all the tests. I traced it to surflock_test.py. I renamed it temporarily so it wouldn't be picked up by run_tests.py and then the suite ran to completion, showing failures in transform_test.py. Bizarrely, I ran that test discretely and it passed.

Are the tests for revision 1376? Nothing causes problems like running the wrong tests.

I think surflock_test.py crashed the automated builds for http://thorbrian.com/pygame/builds.php

I saw that builds for revision 1376 were recently posted to the list with a note saying it passed all unit tests. I downloaded it, removed my existing pygame install, deleting the whole pygame folder, and installed it. Same surflock_test.py crash, same transform_test.py failures and errors.

After a false start by setting SDL_VIDEODRIVER to an invalid value I can confirm that all tests pass for me as of revision 1382.

The surflock_test.py crash actually stalls the test suite and it reports nothing; no F, E or OK.

[snip test results]


We need to make the build page + test runner more resistant to tests that will possibly crash everything.

That last attempt to catch image__save_gl_surface_test.py crashes using popen4 caused problems. For me it would sometimes hang. When I fixed the save gl surface bug the automated build site failed to recognize a passing test for the Window builds. The subprocess module works better but requires pywin32 be installed for Windows.

--
Lenard Lindstrom
<len-l@xxxxxxxxx>