Skip to content

BLD: Explicitly set pandas - #2

Merged
matthew-brett merged 11 commits into
MacPython:masterfrom
thequackdaddy:pandas
Jun 7, 2019
Merged

matthew-brett merged 11 commits into
MacPython:masterfrom
thequackdaddy:pandas

Conversation

@thequackdaddy

Copy link
Copy Markdown
Contributor

Pandas appears to be entering version hell. That's breaking your build.

Also, I removed the Linux python 3.7 i686 build as there's no pandas support for that, it seems.

Lastly, I changed the tests to skip the slower tests.

There still seems to be a failure on the Mac builds. I'll try to look into that. Its a little hard to replicate, however. The mac builds on the statsmodels repo work. Statsmodels Mac support is known to be temperamental, granted.

@bashtage

bashtage commented May 8, 2019

Copy link
Copy Markdown
Contributor

@thequackdaddy Can you run again when you get a chance. Patches in master against these.

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

Amended and force-pushed.

@bashtage

bashtage commented May 8, 2019

Copy link
Copy Markdown
Contributor

Closing in - travis is green now.

@bashtage

bashtage commented May 9, 2019

Copy link
Copy Markdown
Contributor

I think I've squished all of the random-ish failures (some of which were exactly random, some which seem to be numerical precision related, especially when there is a non-linear optimizer involved).

@bashtage bashtage left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was randomly producing failures? Could you post a link to the failed CI if so?

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

Issue is here-ish

https://travis-ci.org/MacPython/statsmodels-wheels/jobs/531389487

In essence, I think there are 2 dicts used to parametrize in /stats/tests/test_multi.py

I found a comment in the pytest forums that you can't use dicts or sets to do that because they are unsorted. Trying to understand the issue more.

pytest-dev/pytest-xdist#149 (comment)

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

To be clear, the issue is with pytest-xdist, not randomly. I was just trying to figure out the cause. But I'm fairly confident in the "dicts aren't sorted, and that confused xdist".

With that said, xdist seems slow on linux... you can do "-n 2", but it saves no time. It might actually add to the time.

@bashtage

bashtage commented May 12, 2019 via email

Copy link
Copy Markdown
Contributor

@bashtage

bashtage commented May 12, 2019 via email

Copy link
Copy Markdown
Contributor

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

Hold on. I am testing it first.

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

Meant to add some finishing notes...

  1. I changed the code so xdist will use both cores on the Appveyor and travis Mac builds. Saves a bunch of time.
  2. Also added pytest-randomly which is not neccessary (I think) but consistent with the main repo.
  3. There are still random fails. Like the most recent appveyor build seems like it it just crashed randomly. I'm hoping that doesn't happen any more frequently

So this is ready to go now or a can squash. Likely we can wait until the next statsmodels release.

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

I also meant to say "happy to squash" if u want. Lotsa irrelevant experimenting commits in there.

@bashtage

Copy link
Copy Markdown
Contributor

You could probably kill xdist on Windows. The last build had a worker crash.

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

I amended and force-pushed without removing xdist, and it worked this time. I think that was just a fluke. I hadn't seen that particular failure before. Do you still want to remove xdist on Windows? It cuts the build time close to half.

@bashtage

Copy link
Copy Markdown
Contributor

I suppose since we are really trying to build wheels it doesn't matter that much about how quick it is, but it is more annoying to get a random process-crash failure. Maybe leave it in for now and we'll see what happens. I've never seen that crash.

@bashtage

Copy link
Copy Markdown
Contributor

One final question, what consideration is setting the build deps on some of the builds (and not on others?)

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

That's probably a better question for Matthew Brett.

But as a guess, there is a global numpy/scipy version in .travis.yml and appveyor.yml files. That is for a pretty old scipy/numpy. I think that version is not supported on newer pythons, so a more recent one is used there. Still, I would imagine that the versions should all be forward compatible for some time.

The pandas dep is simply needed because pandas is used to test. However, pandas is unnecessary for the build.

@bashtage

bashtage commented May 17, 2019 via email

Copy link
Copy Markdown
Contributor

@bashtage

bashtage commented Jun 6, 2019

Copy link
Copy Markdown
Contributor

If this passes then I'm going to tag the RC.

@bashtage

bashtage commented Jun 7, 2019

Copy link
Copy Markdown
Contributor

@thequackdaddy I have tagged the RC2. The sdist isn't on PyPI yet since I need some permissions from @josef-pkt . Once this is up, can you build the rc2 wheels?

@bashtage

bashtage commented Jun 7, 2019

Copy link
Copy Markdown
Contributor

@thequackdaddy rc2 is now up on pypi. Can you build the wheels?

@thequackdaddy

Copy link
Copy Markdown
Contributor Author

@matthew-brett If I understand correctly, you have to merge this. If there is a way we can do it and get the uploaded wheels, let me know.

@matthew-brett

Copy link
Copy Markdown
Contributor

@thequackdaddy - shall I add you as a collaborator, so you can merge?

@matthew-brett
matthew-brett merged commit c72b498 into MacPython:master Jun 7, 2019
@thequackdaddy
thequackdaddy deleted the pandas branch June 7, 2019 17:44
@thequackdaddy

Copy link
Copy Markdown
Contributor Author

@matthew-brett Could you add me and @bashtage, please?

@matthew-brett

Copy link
Copy Markdown
Contributor

Invites sent.

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.

3 participants