Skip to content

speed up local build time by 97% #82

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

Merged
merged 13 commits into from
Mar 10, 2017

Conversation

wangjoshuah
Copy link
Contributor

skip the exhaustive generateBucketValueDistribution when we're not testing on Travis Linux builds

@wangjoshuah wangjoshuah requested review from onufryk and vraja2 March 10, 2017 18:34
@wangjoshuah
Copy link
Contributor Author

@optimizely/fullstack-devs

Copy link
Contributor

@onufryk onufryk left a comment

Choose a reason for hiding this comment

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

Awesome, 0.783 secs

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

let's use explicit imports

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.junit.Assert.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

explicit imports

@@ -79,6 +70,7 @@ public void generateBucketValueForNegativeHashCodes() throws Exception {
@Test
@Category(ExhaustiveTest.class)
public void generateBucketValueDistribution() throws Exception {
Assume.assumeTrue(System.getProperty("os.name").contains("Linux"));
Copy link
Contributor

Choose a reason for hiding this comment

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

http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#getenv(java.lang.String)

we could use an environment variable RUN_EXHAUSTIVE_BUCKETING

Copy link
Contributor

@vraja2 vraja2 left a comment

Choose a reason for hiding this comment

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

looks good, just fix the imports

@wangjoshuah wangjoshuah merged commit eeb820c into devel Mar 10, 2017
@wangjoshuah wangjoshuah deleted the josh.wang/differentiate_linux_tests branch March 10, 2017 21:28
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