Skip to content
New issue

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

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

Already on GitHub? # to your account

Update to Gradle 4.0.2 #859

Merged
merged 1 commit into from
Aug 3, 2017

Conversation

AustinShalit
Copy link
Member

@AustinShalit AustinShalit commented Aug 3, 2017

closes #858

@@ -27,7 +27,8 @@ public CoreSanityTest() {
ManualPipelineRunner.class,
SubtractionOperation.class,
Main.class,
CoreCommandLineHelper.class
CoreCommandLineHelper.class,
Pipeline.class
Copy link
Member Author

Choose a reason for hiding this comment

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

@JLLeitschuh Can you take a look and see why I had to ignore Pipeline to get it to build?

Copy link
Member

Choose a reason for hiding this comment

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

The test wouldn't pass or the compiler would fail??

Copy link
Member Author

Choose a reason for hiding this comment

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

Tests would not pass.

Copy link
Member

Choose a reason for hiding this comment

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

Can you paste the stack trace?

Copy link
Member Author

Choose a reason for hiding this comment

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

edu.wpi.grip.core.CoreSanityTest > testNulls FAILED
    junit.framework.AssertionFailedError: Error in automated nulls test of class edu.wpi.grip.core.Pipeline
    If the class is better tested explicitly, you can add testNulls() to edu.wpi.grip.core.PipelineTest

        Caused by:
        junit.framework.AssertionFailedError: Can't find or create a sample instance for type 'edu.wpi.grip.core.Step'; please provide one using NullPointerTester.setDefault()

Copy link
Member

Choose a reason for hiding this comment

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

That makes sense. Uhhh.
In the code below this where all the setDefault's are add:

setDefault(Step.class, new MockStep());

That should solve this problem.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

org.gradle.cache.tasks=true
org.gradle.parallel=false
org.gradle.configureondemand=false
org.gradle.cache.tasks=false
Copy link
Member

Choose a reason for hiding this comment

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

Sure, we can do this, but why is this necessary? The gradle 4.0 default is now to run with parallel true.

Copy link
Member Author

Choose a reason for hiding this comment

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

I just updated and removed the file entirely.

Copy link
Member

Choose a reason for hiding this comment

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

I saw, thats fine. org.gradle.configureondemand=true can speed up the build a bit but its not really that important in this build because its so small.

@codecov-io
Copy link

codecov-io commented Aug 3, 2017

Codecov Report

Merging #859 into master will increase coverage by 0.01%.
The diff coverage is 57.14%.

@@             Coverage Diff              @@
##             master     #859      +/-   ##
============================================
+ Coverage     51.41%   51.43%   +0.01%     
  Complexity     1146     1146              
============================================
  Files           247      247              
  Lines          7955     7956       +1     
  Branches        539      531       -8     
============================================
+ Hits           4090     4092       +2     
+ Misses         3679     3678       -1     
  Partials        186      186

Copy link
Member

@JLLeitschuh JLLeitschuh left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks!

@JLLeitschuh JLLeitschuh merged commit 316458a into WPIRoboticsProjects:master Aug 3, 2017
@AustinShalit AustinShalit deleted the gradle402 branch August 4, 2017 00:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Gradle 4.0
3 participants