Skip to content

Fix Sphinx build on Travis - #5997

Merged
bsipocz merged 1 commit into
astropy:masterfrom
pllim:fix-remote-test
May 3, 2017
Merged

bsipocz merged 1 commit into
astropy:masterfrom
pllim:fix-remote-test

Conversation

@pllim

@pllim pllim commented May 2, 2017 •

Copy link
Copy Markdown
Member

Fix #5992 . Also attempts to get rid of RuntimeWarning as requested in #5992 (comment) .

Was going to add something for #5994 here but perhaps that is no longer necessary since remote data server seems to be responsive again.

@pllim

pllim commented May 2, 2017

Copy link
Copy Markdown
Member Author

Confirmed fixed -- https://travis-ci.org/astropy/astropy/jobs/227969317

Warnings are gone too but I don't know where to check the resultant plots in the doc for whether the tick labels actually look okay or not. @astrofrog ?

@mhvk mhvk mentioned this pull request May 2, 2017
@pllim

pllim commented May 2, 2017

Copy link
Copy Markdown
Member Author

Increasing timeout and the remote data tests passed but is this coincidence? 🤔

@mhvk mhvk 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.

Nice find about the sphinx errors. My only worry is whether the wcsaxis solution is OK. If we don't hear from @astrofrog soon, I'd suggest making that a separate PR and merging the other commits.

dist = np.hypot(dx, dy)

# Avoid RuntimeWarning
if dist == 0 or not np.isfinite(dist):

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.

It seems OK, but really will have to ask @astrofrog whether this is reasonable. An alternative would be to just change the particular example to not hit this problem.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I couldn't tell from the Travis log where the RuntimeWarning came from. I built the doc locally and did not see any difference in the generated images in the "Example gallery". Maybe I am looking in the wrong place? But regardless we need to address this one way or another, since ddx and ddy will not be a real number anyway. I am just not sure whether ddx = dx (in this PR) or ddx = 0 is more logical.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Just let me know when you are done waiting for reply and want me to take this out.

Also, should we increase remote_timeout here or in a separate PR? Thinking about it more, that one is more like an API change and probably should have a change log.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you make a regression test for this warning so that we can investigate in more detail what the best fix is?

@bsipocz

bsipocz commented May 3, 2017 •

Copy link
Copy Markdown
Member

This looks good to me, but I suggest to move the wcsaxes stuff into a separate PR now as that part is less critical and can wait for @astrofrog to catch up with things.

@mhvk

mhvk commented May 3, 2017

Copy link
Copy Markdown
Contributor

On a second look, I think the solution for wcsaxis should be good enough to just go ahead and merge. For the time-outs, I'm less sure. Might it be an idea to just merge this now so we can check whether it actually helps, but then also raise a new 2.0-milestone issue that we either should revert this (if it doesn't help), or make it configurable?

@pllim

pllim commented May 3, 2017

Copy link
Copy Markdown
Member Author

make it configurable?

It is configurable. This is just changing the default.

@mhvk

mhvk commented May 3, 2017

Copy link
Copy Markdown
Contributor

OK, is one option then to just configure it on travis only?

@pllim

pllim commented May 3, 2017

Copy link
Copy Markdown
Member Author

is one option then to just configure it on travis only?

That is an option but it would have to be done on a test by test basis.

@pllim

pllim commented May 3, 2017

Copy link
Copy Markdown
Member Author

Also, personally I think 3 seconds is too short. Where did that number come from anyway?

@pllim

pllim commented May 3, 2017

Copy link
Copy Markdown
Member Author

So this is what I'll do. I'll move the commits of remote timeout and wcsaxes into 2 other PRs and only keep Sphinx fix here. PRs incoming soon.

@pllim pllim mentioned this pull request May 3, 2017
2 tasks done
@pllim
pllim force-pushed the fix-remote-test branch from 81340fa to 5966e5f Compare May 3, 2017 16:59
@pllim

pllim commented May 3, 2017 •

Copy link
Copy Markdown
Member Author

Okay. I only left the Sphinx test stuff in this one; The others moved to #6001 and #6002 . Feel free to merge when Sphinx tests passed.

Also, feel free to change milestone if you feel like this is more of a bug fix.

@bsipocz

bsipocz commented May 3, 2017

Copy link
Copy Markdown
Member

Thanks. I've changed the milestone and will backport if this is a clean one.

@bsipocz
bsipocz merged commit ec0665e into astropy:master May 3, 2017
@pllim
pllim deleted the fix-remote-test branch May 3, 2017 18:19
bsipocz added a commit that referenced this pull request May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants