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
Failing test that prun does not clobber string escapes #1428
Comments
For the record, I don't see it on linux... |
This is magic argument parsing again. I think after 0.13 we'll need to think up a better solution to this whole thing. @jstenar : You may have seen recently that @Carreau set up a Mac to run the test suite overnight (discussed on #1328). If you've got a Windows machine running overnight that has some spare time, it would be great to have this for Windows as well. It just needs a script that will pull from github, install into a virtualenv, run iptest with some options, zip up the result files and put them on the web where they can easily be downloaded. |
Thomas skrev 2012-02-22 14:30:
I don't have a machine that is always running but I could have a script Do you have a suggestion for where I can upload it? Is it not possible /Jörgen |
Annoyingly, although Jenkins allows triggering a build from a script, and it allows uploading a file for a build, it doesn't allow both together: you have to upload the file manually via a web form. Maybe @fperez would let us use a bit of space on the server that hosts the wiki and the archive. Fernando, the zip file is a bit over 100KB at present, and it would be uploaded and downloaded once per day. Hopefully there's an easy way to do something like scp from Windows. |
Of course! The hosting plan I use is 'unlimited' both in bandwidth and storage, so unless we're talking about terabytes, you don't even have to ask :) Just go for it. @jstenar, if you need to be the one doing the uploading, email me your public SSH key and I'll add it to the server. |
Fernando Perez skrev 2012-02-22 20:40:
I can log in to the machine now. Where do you want me to put the testlogs? I will try to set up a testscript over the weekend. /Jörgen |
I'll let @takluyver answer that, as he's the one who will be handling their integration with Shining Panda. Thanks to everyone for this! |
Thomas skrev 2012-02-22 14:30:
@Carreau could you share the script you use to run the testsuite. I @thomas when using a virutalenv what is the best way to install ipython /Jörgen |
The script that we use on ShiningPanda is below (I sent @Carreau this, so I think he adapted it for Mac). It runs with the virtualenv active, and a fresh checkout of github master as the working directory. If you just install IPython inside the virtualenv (python setup.py install), it shouldn't interfere with your normal installation at all, so it's safe to leave it. If you need to remove it, you can delete the folder the virtualenv is based in, or call Upload location: if you can put it somewhere on archive.ipython.org - maybe make a new testresults folder, and call it testresults-win-latest.zip. I'll set ShiningPanda up so that you make an HTTP request when you've uploaded the file, which will trigger it to download and add the results.
This will create *.xunit.xml and *.coverage.xml files, which you can zip and upload. |
Le 23 fvr. 2012 21:55, Jrgen Stenarson a crit :
Sure, put them as a attachement. You can surely improve them. As a side note, the build failed for an unknown reason this morning (xml files where not created.) but is working again so don't take today's Shining Panda test into account.Matthias
|
Let us know if that failure happens again, @Carreau , and we'll see if we can work it out. |
Thomas skrev 2012-02-24 00:12:
I have trouble getting the coverage to work. All tests fail. (Py26) C:\python\ipydevel\VENV\ipython\results> iptest --with-xml-coverage IPython test group: IPython.config Test suite completed for system with the following information: Tools and libraries available at test time: Tools and libraries NOT available at test time: Ran 10 test groups in 2.581s Status: ERROR - 10 out of 10 test groups failed.Runner failed: IPython.config |
It looks like the |
Thomas skrev 2012-02-24 21:24:
Now it works! |
Thomas skrev 2012-02-24 21:24:
I tried running the tests for python3.2 but it seems a bunch of examples File |
Yes, I keep meaning to go and work out what's causing them - we solved it before, but when we unified |
Thanks for getting this set up, by the way. I'll e-mail you the URL you need to trigger ShiningPanda (it contains a 'secret' token). |
When I run the testsuite with the --with-xml-coverage option I get one more error than when I run it without. See output from test run below, it is the "Test safe_execfile with non-ascii path" that I don't get when running without the coverage option:
|
See ipython#1428 for discussion.
Shouldn't these two ways of doing prun give the same result?
|
I'm not sure without looking in to how we handle escaping. Let's get the tests uploading to ShiningPanda, then make sure we've got issues open for anything that's failing. |
I believe the error when using --with-xml-coverage is caused by inserting a unicode string in sys.path somewhere in the test. I'm not sure if we should consider this a bug in our code or in coverage.py |
This is now our only failing test on windows. I'm trying to understand what the test is doing. This is the line I'm tryin to understand: _ip.magic("prun -q x = '\t'") I interpret it as being equivalent to a %prun command at the command line where there is an actual tab-character inside the single quotes. Is that something we want to test for? Shouldn't that line be: _ip.magic(r"prun -q x = '\t'") At least that fixes the error for me on windows. |
I think you're right, @jstenar... Go ahead with that change and we'll run test_pr quickly on it to check all is OK on linux with python2/3. If so, we can then get back to a fully passing Windows test suite, that would make me very happy. |
Done in PR #1913 |
See ipython#1428 for discussion.
Fix a missing raw string in a test. Closes ipython#1428.
Running the master branch 0ceba04 I get a failed test (see below). This is using python 2.6 (32bit) on windows 7 64-bit.
The text was updated successfully, but these errors were encountered: