-
Notifications
You must be signed in to change notification settings - Fork 32
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
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
075fb31
skip the exhaustive `generateBucketValueDistribution` when we're not
wangjoshuah 68306da
use system property so changes are compatible with java 1.6 and java 1.7
wangjoshuah 95d2fec
Check for ENV variable set to true by default by travis.
wangjoshuah 66fa8ef
verify test runs on Travis CI
wangjoshuah 2219b46
check ci value on travis
wangjoshuah 06f6f9e
show log streams in travis
wangjoshuah 4b742e9
log into travis our bucketvaluedistribution test
wangjoshuah a7b40be
use exhaustive test for gradles
wangjoshuah 5268486
remove false assert
wangjoshuah 00d49fc
revert wildcard imports
wangjoshuah d708acb
change things back to normal
wangjoshuah 57abf07
fix nit
wangjoshuah 0ea8cba
fix nit
wangjoshuah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,38 +16,29 @@ | |
| */ | ||
| package com.optimizely.ab.bucketing; | ||
|
|
||
| import ch.qos.logback.classic.Level; | ||
| import com.optimizely.ab.bucketing.internal.MurmurHash3; | ||
| import com.optimizely.ab.categories.ExhaustiveTest; | ||
| import com.optimizely.ab.config.Experiment; | ||
| import com.optimizely.ab.config.ProjectConfig; | ||
| import com.optimizely.ab.config.TrafficAllocation; | ||
| import com.optimizely.ab.config.Variation; | ||
| import com.optimizely.ab.internal.LogbackVerifier; | ||
|
|
||
| import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
| import org.junit.Assume; | ||
| import org.junit.Rule; | ||
| import org.junit.Test; | ||
| import org.junit.experimental.categories.Category; | ||
| import org.junit.rules.ExpectedException; | ||
|
|
||
| import java.util.Arrays; | ||
| import java.util.Collections; | ||
| import java.util.HashMap; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
| import java.util.*; | ||
| import java.util.concurrent.atomic.AtomicInteger; | ||
|
|
||
| import ch.qos.logback.classic.Level; | ||
| import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
|
|
||
| import static com.optimizely.ab.config.ProjectConfigTestUtils.validProjectConfigV2; | ||
| import static org.hamcrest.CoreMatchers.is; | ||
| import static org.hamcrest.MatcherAssert.assertThat; | ||
| import static org.junit.Assert.assertNull; | ||
| import static org.junit.Assert.assertTrue; | ||
| import static org.junit.Assert.fail; | ||
| import static org.mockito.Mockito.mock; | ||
| import static org.mockito.Mockito.verify; | ||
| import static org.mockito.Mockito.when; | ||
| import static org.junit.Assert.*; | ||
|
||
| import static org.mockito.Mockito.*; | ||
|
|
||
| /** | ||
| * Tests for {@link Bucketer}. | ||
|
|
@@ -79,6 +70,7 @@ public void generateBucketValueForNegativeHashCodes() throws Exception { | |
| @Test | ||
| @Category(ExhaustiveTest.class) | ||
| public void generateBucketValueDistribution() throws Exception { | ||
| Assume.assumeTrue(System.getenv("CI").equals("true")); | ||
| long lowerHalfCount = 0; | ||
| long totalCount = 0; | ||
| int outOfRangeCount = 0; | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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