Conversation
|
Thank you very much for doing this hard work! I have one suggestion: could we have a PR that adds tests on some version of Python 3 to .travis-ci.yml, initially with a matrix: allow_failures so they don't count as real failures? I would love to merge this early so we could then see the number of failing tests decrease as individual pull requests get merged. |
Hasn't that already been done?:
Fine by me. There is a link at the top if anyone wants to see the history. (Not sure I'll do the force commit on this one too often. I thought it would hide the previous ones and show the overall progress. Instead it's just making this page rather long). |
And now everybody knows that
|
|
Just test_parser.py failing for Python 3.5. Any ideas? Looks like it is chopping off the first character. |
I tried to pdb through the test, and it's worse than that: the html parser is feeding The html parser itself is written in C so I can't exactly step through it with pdb. |
|
we're doing really great here - i've merged a bunch more PRs and we're making good progress. keep the reviews/patches coming! i also think we should close #40 by now, so i'll just do so already. |
|
#216, #220, #223 are ready just waiting for an ack I think. Updated the branch. Dropped:
Added some WIP patches to hopefully get the tests passing. We know about the malloc issue and HtmlParser tests. Let's see that everything else is working. |
ccb7518 to
958c7b2
Compare
c295ff8 to
68550f6
Compare
|
We're pretty close to eliminating errors during test collection! Only two changes are needed for that:
Now |
|
Incidentally, are we measuring test coverage anywhere? I don't think so... EDIT: duh! #41. It's just
|
The TODO list was quite long... Submitted as #252. |
The hang is caused by tests/checker/test_telnet.py. |
#253 should take care of that. |
|
Why are you not merging all the work with Python3? What need's to be done to make it finally Py3 compatible! |
|
@cjmayo As far as I see you have completed the work. So can I somehow help with getting this into master. At openSUSE we are using a really old version because we want also to ship the GUI which is not working according to my tests with Python3 (Python 2 is by default not installed anymore). |
|
@SchoolGuy if you want to help, provide a review and suggestions in #230 and #249. thanks! |
|
if @mgedmin is okay with it, i'd be happy to review this PR as is, it's not as crazy long as it was before. :) |
|
Let's see. I can still split it up further. I've tried my script for that: it looks like the first would be a batch of 5, and I can see some potential work on them up already. |
|
I've no objections, as long as I don't have to review massive diffs ;) |
|
Sounds like the compromise is carrying on with individual PRs. I've created 22-26, bit rusty when I did that so there were some quick force pushes there. |
|
Force-pushes to PR brancehs are great, I love force-pushes to PR branches. |
|
The batch of python3_nn PRs I have just pushed is all the commits from this PR that do not change the HTML parser code. After they have all been merged I propose to submit my cgi.escape patch and then close this PR and move to the Beautiful Soup PR #249. All of the remaining commits from here need testing against Beautiful Soup and not the old parser (which also can't be run with Python 3). It will also make it easier to check there is not overlap or rework, and in general to only have one branch. |
|
I have dropped for now: |
|
this is awesome @cjmayo - keep going! :) |
|
@cjmayo Thanks for your work! When you are finished I will start reviving the GUI and packaging in the Open Build Service! |
|
Brought up-to-date with the latest PRs and dropped: |
|
wow, only 10 commits left, that's great! |
|
Just a note that I've tried to build git docs in Fedora with current HEAD fo this, 4b3359f, and it failed with trackebacks like: Full logs: builder-live.log.gz It previously worked on 72b85c4. |
Thanks for commenting. It's probably not clear but this PR has become just a tracker (indeed 33cbd14 disables the parser tests) for us working through the commits from #40 . There are only a few more to go and then we can close it. #249 is the real Python 3 version. It is currently a bit out of date, hopefully not for long, and a bit experimental, we need to clear some of the non WIP PRs. so please don't expend any time testing right now (do watch for updates though!). |
|
One more point from the last post: just in case you haven't noticed N.B. I do rebase the [WIP] PRs, it's just easier. Dropped: not needed with bs4. |
|
Sure thing, I just wanted to give a heads up in case the failure wasn't known yet. |
|
Dropped: "Python3: fix few htmllib problems" is included in #249, with some of its changes moved into "Remove home-cooked htmlparser and use BeautifulSoup", so that's it for this one! |
|
okay, i'm a bit confused now. are we python-3 yet now? :) or does this happen when we finish the BS4 conversion in #249? thanks, that's pretty awesome work! |
|
Well tests are failing so I don't think so. Or is this because they are broken in general? |
Closing this one just means that all the commits from #40 have been worked through.
Yes, without bs4 there is no Python 3. #249 is the sole tracker now. Unlike this PR though all the tests are enabled for Python 3 and passing - including some new ones. |
Do not merge - for tracking PRs only
This branch is a rebase of that by @PetrDlouhy in #40, needed because master has moved on.
These commits were dropped because they are already in master:
These needed slight editing to apply because of commits that have since been made to master (code changes are the same):
Typos in titles were fixed for:
The commits in this branch are being submitted in separate PRs against master. PR titles start with {python3_nn} reflecting their branch name. The submission of PRs is limited by the commits that will apply on the current master. Most PRs are single commits, when a commit will not apply on master an attempt is made to add it to the previous branch before stopping.
As well as tracking the PRs for merging hopefully this PR will demonstrate the final state of the CI tests. There are some additional commits that fix various warnings.