Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build is non-deterministic, failed 4 times in different places #329

Closed
mtnygard opened this issue Aug 31, 2013 · 4 comments
Closed

Build is non-deterministic, failed 4 times in different places #329

mtnygard opened this issue Aug 31, 2013 · 4 comments

Comments

@mtnygard
Copy link

Reported as of commit 6a7ee812c7.

I've pasted a transcript as this gist.

All of the builds were executed in a single shell, with the same build command: ./gradlew clean build.

The builds all failed for different reasons, suggesting timing dependencies in the unit tests.

@mtnygard
Copy link
Author

Note that the build failure reported in #327 is one of the errors I encountered.

@mtnygard
Copy link
Author

More detail: this seems to be a Java 8 issue. It builds clean with 1.6.

@benjchristensen
Copy link
Member

I have committed fixes for these that should behave better. There were legit issues in them that depended on specific machine and scheduler timing. I won't be surprised if there are other tests with similar issues in the codebase.

@benjchristensen
Copy link
Member

Considering this closed ... reopen if you're still seeing these issues.

rickbw pushed a commit to rickbw/RxJava that referenced this issue Jan 9, 2014
Attempt to fix non-determinism ReactiveX#329
Made unit tests work on private instances in each test rather than against static global.
rickbw pushed a commit to rickbw/RxJava that referenced this issue Jan 9, 2014
Removed use of Thread.sleep to fix non-determinism issue reported in ReactiveX#329
rickbw pushed a commit to rickbw/RxJava that referenced this issue Jan 9, 2014
Removed use of Thread.sleep and changed assertion to allow for the expected race condition between the counter loop and unsubscribe event to fix non-determinism issue reported in ReactiveX#329
rickbw pushed a commit to rickbw/RxJava that referenced this issue Jan 9, 2014
Increased delta value from 2 to 10 to try and resolve issue reported in issue ReactiveX#329
billyy pushed a commit to billyy/RxJava that referenced this issue Jan 13, 2014
Attempt to fix non-determinism ReactiveX#329
Made unit tests work on private instances in each test rather than against static global.
billyy pushed a commit to billyy/RxJava that referenced this issue Jan 13, 2014
Removed use of Thread.sleep to fix non-determinism issue reported in ReactiveX#329
billyy pushed a commit to billyy/RxJava that referenced this issue Jan 13, 2014
Removed use of Thread.sleep and changed assertion to allow for the expected race condition between the counter loop and unsubscribe event to fix non-determinism issue reported in ReactiveX#329
billyy pushed a commit to billyy/RxJava that referenced this issue Jan 13, 2014
Increased delta value from 2 to 10 to try and resolve issue reported in issue ReactiveX#329
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

No branches or pull requests

2 participants