SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-10-2016, 05:55 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Sage 9.0.9 Released

You can see the release notes here...
https://github.com/google/sagetv/blo...r/CHANGELOG.md

Quote:
Fix: GetSeriesID wasn't always returning a valid series ID
New: Added logic to Schedules Direct program categories to ensure Movie is the first category for programs that start with MV
Fix: Cleaned up the logic for determining when images from Schedules Direct should be in a Show or SeriesInfo object
Fix: Clarified in logging when we can't process anything currently because Schedules Direct is offline
Fix: Added random timeout when Schedules Direct token expires before getting a new token in case there are multiple SageTV servers using the same account
Reply With Quote
  #2  
Old 10-11-2016, 08:41 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Windows installer also now updated.

Also removed the EPG License key field from the installer as it is now available directly during EPG setup in the UI.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #3  
Old 10-11-2016, 04:04 PM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 334
Compile errors on Windows with Eclipse and Gradle?

@Admins - Please move this if it should be posted elsewhere.

I use Eclipse on Windows, with Gradle, because I like to build my own JAR file. I pulled the current code base and I am seeing a failure in the compile. Can someone tell me if this is my issue or not?


Gradle suite > Gradle test > sage.IOUtilsTest.testGetUrlAsString FAILED
java.lang.AssertionError at IOUtilsTest.java:17

Gradle suite > Gradle test > sage.IOUtilsTest.testReadFileAsString FAILED
java.lang.AssertionError at IOUtilsTest.java:24

108 tests completed, 2 failed
:test FAILED


In the meantime I'll use the JAR posted at the link elsewhere.
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #4  
Old 10-11-2016, 04:36 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by egeller View Post
@Admins - Please move this if it should be posted elsewhere.

I use Eclipse on Windows, with Gradle, because I like to build my own JAR file. I pulled the current code base and I am seeing a failure in the compile. Can someone tell me if this is my issue or not?


Gradle suite > Gradle test > sage.IOUtilsTest.testGetUrlAsString FAILED
java.lang.AssertionError at IOUtilsTest.java:17

Gradle suite > Gradle test > sage.IOUtilsTest.testReadFileAsString FAILED
java.lang.AssertionError at IOUtilsTest.java:24

108 tests completed, 2 failed
:test FAILED


In the meantime I'll use the JAR posted at the link elsewhere.
I am not doing any java development right now but I did do the builds on my windows dev box this morning to include the new jars in the windows installer...I had no errors.

I just run....
  • gradlew.bat sageJar
  • gradlew.bat miniclientJar

No issues.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #5  
Old 10-11-2016, 06:17 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by egeller View Post
@Admins - Please move this if it should be posted elsewhere.

I use Eclipse on Windows, with Gradle, because I like to build my own JAR file. I pulled the current code base and I am seeing a failure in the compile. Can someone tell me if this is my issue or not?


Gradle suite > Gradle test > sage.IOUtilsTest.testGetUrlAsString FAILED
java.lang.AssertionError at IOUtilsTest.java:17

Gradle suite > Gradle test > sage.IOUtilsTest.testReadFileAsString FAILED
java.lang.AssertionError at IOUtilsTest.java:24

108 tests completed, 2 failed
:test FAILED


In the meantime I'll use the JAR posted at the link elsewhere.
Are you sure you have the latest code? There was an issue with this test, but it was fixed.
Reply With Quote
  #6  
Old 10-11-2016, 08:23 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by stuckless View Post
Are you sure you have the latest code? There was an issue with this test, but it was fixed.
FYI, I cloned the repository a while ago and have been able to "sync" and build using gradlew.bat up until a couple weeks ago. Then doing a "sync" didn't pull any new commits, (and I was getting a couple branches--master from May and google/master--when before it was just one). I just did a wipe and re-clone, and it seems to be back to normal...
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #7  
Old 10-12-2016, 11:49 AM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 334
Thanks for the confirmations that it is something on my side. I will keep digging into it and figured it out. It's strange. I deleted the local copy and redownloaded the project. I ran gradle with the --debug option and the log tells me

Code:
13:30:33.402 [DEBUG] [TestEventLogger] Gradle suite > Gradle test > sage.IOUtilsTest.testGetUrlAsString FAILED
13:30:33.402 [DEBUG] [TestEventLogger]     java.lang.AssertionError: expected:<beec1608cf997d3acb42f0ab772b143f
13:30:33.402 [DEBUG] [TestEventLogger]     > but was:<beec1608cf997d3acb42f0ab772b143f
13:30:33.402 [DEBUG] [TestEventLogger]     >
13:30:33.402 [DEBUG] [TestEventLogger]         at org.testng.Assert.fail(Assert.java:89)
13:30:33.402 [DEBUG] [TestEventLogger]         at org.testng.Assert.failNotEquals(Assert.java:489)
13:30:33.402 [DEBUG] [TestEventLogger]         at org.testng.Assert.assertEquals(Assert.java:118)
Expected looks identical to calculated to me. I have a second computer I can test this out on to figure out where I screwed up.
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #8  
Old 10-12-2016, 12:32 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by egeller View Post
Thanks for the confirmations that it is something on my side. I will keep digging into it and figured it out. It's strange. I deleted the local copy and redownloaded the project. I ran gradle with the --debug option and the log tells me

Code:
13:30:33.402 [DEBUG] [TestEventLogger] Gradle suite > Gradle test > sage.IOUtilsTest.testGetUrlAsString FAILED
13:30:33.402 [DEBUG] [TestEventLogger]     java.lang.AssertionError: expected:<beec1608cf997d3acb42f0ab772b143f
13:30:33.402 [DEBUG] [TestEventLogger]     > but was:<beec1608cf997d3acb42f0ab772b143f
13:30:33.402 [DEBUG] [TestEventLogger]     >
13:30:33.402 [DEBUG] [TestEventLogger]         at org.testng.Assert.fail(Assert.java:89)
13:30:33.402 [DEBUG] [TestEventLogger]         at org.testng.Assert.failNotEquals(Assert.java:489)
13:30:33.402 [DEBUG] [TestEventLogger]         at org.testng.Assert.assertEquals(Assert.java:118)
Expected looks identical to calculated to me. I have a second computer I can test this out on to figure out where I screwed up.
I can tell you the issue is likely to do with line endings. I had to push an update a little while ago for this test to work on Windows. Ensure that the version you have downloaded has the following in sage/IOUtilsTest.java on line 17:

Code:
assertEquals(md5, "beec1608cf997d3acb42f0ab772b143f" + System.lineSeparator());
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #9  
Old 10-12-2016, 12:41 PM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 334
It does. That is why it confuses me, as it looks like the line endings are in both the calculated and the expected.... Unless it's a unicode vs. not-Unicode sort of things (we had one of those at work, when I was working earlier this year).

I tried it with the line ending code removed and it also failed. When I commented out the two tests entirely, the compile succeeded. BTW - I don't know much Java. I am more of a Python and Oracle SQL guy (newly retired).
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #10  
Old 10-12-2016, 01:09 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by egeller View Post
It does. That is why it confuses me, as it looks like the line endings are in both the calculated and the expected.... Unless it's a unicode vs. not-Unicode sort of things (we had one of those at work, when I was working earlier this year).

I tried it with the line ending code removed and it also failed. When I commented out the two tests entirely, the compile succeeded. BTW - I don't know much Java. I am more of a Python and Oracle SQL guy (newly retired).
I think I know what the problem is. It has to do with how you have git configured. On Windows platforms, it often will convert \n to \r\n in files thinking it's helping you and this is also the default behavior. I recall needing to do some special handling of scripts for Linux in OpenDCT to make sure the way someone configured git didn't break the scripts when I was building the packages. The test just needs to be re-written to accept either line ending as ok. I bet if you remove the appended line separator and add \n to the end of the string instead, the test will pass. I will push a fix for this later today.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG

Last edited by EnterNoEscape; 10-12-2016 at 01:17 PM. Reason: Wrong line ending. Said \r, meant \n.
Reply With Quote
  #11  
Old 10-12-2016, 03:43 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by EnterNoEscape View Post
I think I know what the problem is. It has to do with how you have git configured. On Windows platforms, it often will convert \n to \r\n in files thinking it's helping you and this is also the default behavior. I recall needing to do some special handling of scripts for Linux in OpenDCT to make sure the way someone configured git didn't break the scripts when I was building the packages. The test just needs to be re-written to accept either line ending as ok. I bet if you remove the appended line separator and add \n to the end of the string instead, the test will pass. I will push a fix for this later today.
Maybe the easier fix is just to trim() the compares and ignore the line endings. (I realize this is actually my test )
Reply With Quote
  #12  
Old 10-12-2016, 06:09 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by stuckless View Post
Maybe the easier fix is just to trim() the compares and ignore the line endings. (I realize this is actually my test )
It would be, but if something unexpected got appended and it happened to be a whitespace character, we would never know it. I made the test was specific to the expected situations. It likely will never matter, but why chance a hard to track down issue.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #13  
Old 10-12-2016, 06:10 PM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 334
BUILD SUCCESSFUL

The fix works for me. Thanks for the help.
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BMT 4.9.21 Released stuckless Batch Metadata Tools 4 07-06-2011 10:25 PM
314 Is released stuckless Phoenix 11 06-18-2011 10:13 AM
Sage 6.4 released versus beta gibsonpa SageTV Software 2 08-18-2008 08:44 PM
Vista has been released, time to compare Media Center to Sage! archcommus The SageTV Community 23 02-25-2007 10:45 AM
Information on SAGE 3.0 Release? (mostly complaints from before info was released) r00st3r General Discussion 64 01-14-2005 03:25 PM


All times are GMT -6. The time now is 02:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.