Skip to content

Fix doctest race condition - #9800

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

mhvk merged 1 commit into
astropy:masterfrom
astrofrog:fix-race-condition

Conversation

@astrofrog

@astrofrog astrofrog commented Dec 18, 2019 •

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

Related to #9796 ?

@astrofrog

Copy link
Copy Markdown
Member Author

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

@mhvk

mhvk commented Dec 18, 2019

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Member Author

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

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

OK, given that both examples are safe, approving.

@mhvk

mhvk commented Dec 18, 2019

Copy link
Copy Markdown
Contributor

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