Skip to content

Fix doctest race condition#9800

Merged
mhvk merged 1 commit intoastropy:masterfrom
astrofrog:fix-race-condition
Dec 18, 2019
Merged

Fix doctest race condition#9800
mhvk merged 1 commit intoastropy:masterfrom
astrofrog:fix-race-condition

Conversation

@astrofrog
Copy link
Member

@astrofrog astrofrog commented Dec 18, 2019

I've seen a failure happen in the 32-bit parallel build which is due to two doctests both needing to write to a file called values.dat. I think until recently the tests were always run such that the one with overwrite=True came second but now things have flipped so an error is happening.

Ideally we should run doctests in an isolated way that prevents this from happening, but for now this is a quick fix. I'm also renaming the CircleCI build for 32-bit to mention it is also a parallel build since this is often a source of confusion.

Fixes #9796

@MSeifert04
Copy link
Contributor

Related to #9796 ?

@astrofrog
Copy link
Member Author

@MSeifert04 - indeed, good catch! I've added a mention of that in the description so that the issue auto-closes.

@mhvk
Copy link
Contributor

mhvk commented Dec 18, 2019

@astrofrog - for this example, the output file is not checked, so it is fine if it changes underneath. Is that true for the other example as well?

@astrofrog
Copy link
Member Author

@mhvk - yes, the overwrite is safe for the other example too, the content of the files is not checked.

Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

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

OK, given that both examples are safe, approving.

@mhvk
Copy link
Contributor

mhvk commented Dec 18, 2019

I'll merge too since those failures are very distracting.

@mhvk mhvk merged commit cf56106 into astropy:master Dec 18, 2019
bsipocz pushed a commit that referenced this pull request Jan 22, 2020
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.

Test failure in docs/io/ascii/index.rst

3 participants