|
SageTV Downloads & Instructions This forum is for discussions containing Downloads and Instructions related to the Open Source version of SageTV. Please do not post questions in this forum. |
|
Thread Tools | Search this Thread | Display Modes |
#41
|
|||
|
|||
Yes, we could "persist" the build number in such a service and pull it just from the google repo, that would be my approach to solve it. And the trace to each commit is as well given so we have a full loop. Not perfect but one possible approach
__________________
Standard Intel PC with 4GB RAM Ubuntu 16.04 64bit JVM version=1.8.0_121-b13 / SageTV V9 latest HDHR DUAL EU with 2 DVB-C and HDHR EXPAND 4DC with 4 DVB-C XMLTV using WebGrabPlus in Switzerland Clients: HD200, Placeshift on OSX (limited) and Windows, Sage Android Client on ShieldTV and Tablets |
#42
|
||||
|
||||
But where is the version being persisted?
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#43
|
|||
|
|||
I only refer to the build number, the Major, Minor, Micro would need manual increments. So "9.0.1" is set manually, but the BUILD_VERSION could be set by the build system and kept on a dummy/placeholder in the github source. You could still add a gradle task or a script to update it if you build on your own. It is not too nice, but still an option.
I wonder if an other approach would be usage of git hooks?
__________________
Standard Intel PC with 4GB RAM Ubuntu 16.04 64bit JVM version=1.8.0_121-b13 / SageTV V9 latest HDHR DUAL EU with 2 DVB-C and HDHR EXPAND 4DC with 4 DVB-C XMLTV using WebGrabPlus in Switzerland Clients: HD200, Placeshift on OSX (limited) and Windows, Sage Android Client on ShieldTV and Tablets |
#44
|
||||
|
||||
One other trick I read about which might not be a bad idea is for the script that builds the JAR file to run a git command that counts the number of commit messages; and then use that as the build number. Using "git rev-list HEAD --count" seems like it would work.
__________________
Jeffrey Kardatzke Founder of SageTV |
#45
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#46
|
|||
|
|||
Quote:
I do think generally speaking, it is a bad practice to release a new build with a version number lower than a build that is already "out in the wild" particular when that build # came from the main repo. It would become a nightmare to have to figure which 9.0.1.3 version a person was running if the 1.x series persists long enough to get back to 1.3 in your binary repository it begins to become too many things for people to try to track when trying help provide support. An alterate option is to only reset the build # to 0 when either the major or minor version changes. Although this can result in vary large build # scenarios at some point. |
#47
|
||||
|
||||
I think going off git numbering is perfectly acceptable, the issue is being able to reset it with minor version changes. You'd have to record the git count of the minor version and subtract it from the current git count to create your build number.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#48
|
||||
|
||||
Quote:
All that being said, I think Jeff provided a good solution to this, and I'll use in the next release which is using the # of commits. (I just need to figure out a good way to do it since the last build) Ideally when the version # changes, the build should be reset. That's not my doing. I didn't increase version #. The build # was the build # from the previous release 9.0.0 and as such it didn't reflect this build, in the new version, and so it got reset. Is every build a new version? If so, then I guess we should increase the micro version with each new build. I'm sure we'll figure this out... This is the second build.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#49
|
||||
|
||||
Quote:
I'm considering just building from the OpenSageTV repo and just maintaining the build # there. That way, I can update the build tools to publish that information back into the repo.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#50
|
|||
|
|||
Quote:
So far, the precedent in the repo for changing the micro version from 0 to 1 was: https://github.com/google/sagetv/com...b47bde1cfa371b Quote:
While today saw -the introduction of the ability to use longer file names and spaces in file names, among some some other characters. (Can be classed as a tweak rather than a new feature) -changes to the sage core to create an api call to get/set tuner merit from within the sage ui, as well as a couple tweaks to how capture devices are handled. (Can be classed as a tweak, tuner merit isn't new, only having an api call for being able to adjust it dynamically is new) Which is why I said a case could be made, not must or should. |
#51
|
||||
|
||||
Quote:
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#52
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#53
|
||||
|
||||
Quote:
In the future, I can see this happening without Jeff being tied in there, but I think for the early open source lifetime, there is so much code in there that we don't know that it makes sense to have Jeff and Andy an integral part of the process, even if it ends up slowing down getting things implemented and released.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#54
|
||||
|
||||
Quote:
I think the worries about fragmented it, at this point, is really premature. To date there is a small number of people working on this... I've done 2 builds. At this point, I've actually spent more time discussing the build version strategy than actually doing the builds Eventually we'll need to solve the build number "issue", but today, we are not doing frequent enough builds for it to even be a problem. I'm manually doing what script would do... which is look at the VERSION and see if it's the same as last, if not, then RESET the BUILDNUMBER, since it's a new VERSION, otherwise, increment the BUILDNUMBER. I think that how the versions (not the build number) get updated, today is the right way. ie, as a committer, you recognize that you've made an api change, etc, so you increment the version. Jeff reviews the changes, if he doesn't think that version requires and update then he can say so, or he can ask that the version get incremented. That's why during a build, I don't touch the VERSION but I do change the build number. I guess maybe, Jeff can speculate as to what each of the Major, Minor, Mirco and Build numbers should mean. This site does a good job of articulating what each level of version would mean. http://c2.com/cgi/wiki?VersionNumber
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#55
|
||||
|
||||
Something interesting... and not builder/version related
The stats only reflect Linux and Sage.jar downloads, but it's cool, to click on the globe and see where in the world people are downloading it https://bintray.com/opensagetv/saget...iew#statistics
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#56
|
||||
|
||||
It's sort of tricky now with the version numbering because we're not on the regular type of release train that we used to be. I don't know yet what event would cause a major version change at this point...same for minor versions. The micro version can probably get changed every time anything non-trivial is done to the code (for now, me updating that takes a minute, so I can try to do that, anybody else can go ahead and do it along with their commit as well). Updating the gradle scripts to use the commit count as the build numbers solves the main problem of having a distinctive build number for any version somebody could have (I'm hoping stuckless does this )
__________________
Jeffrey Kardatzke Founder of SageTV |
#57
|
||||
|
||||
New Build
This build was requested because Andy updated the STV and the STV update requires a new Jar as well. One minor packaging note, the Sage.jar is no longer a standalone download, it is, in a Zip along with the STV, under the name SageJar-VERSION.zip
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#58
|
|||
|
|||
Stuckless,
How about creating an opensagetv maven repository on bintray? I think once that exists, anything we put there can be added to jcenter. That would let us publish the sage.jar and plugin jars so that others could use them easily in their builds. I'm not sure, but I think since you own the project, you are the only one who can create repos. |
#59
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#60
|
|||
|
|||
Quote:
As a followup, if the zip contains just the update that should be applied as new updates come out, is there a recommended way to merge the users SageTV7.xml file with the one in the ZIP? Does a configured system store any custom settings in the SageTV7.xml file? I'm hoping to have a first draft of the walkthrough up tonight, but will probably run through it a few times to see if I can streamline and simplify it. Thanks for the great downloads and the hard work! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV is Open Source!!! | Narflex | Announcements | 1 | 01-12-2016 10:36 AM |
SageTV Open Source FAQ | Opus4 | SageTV Software | 5 | 11-11-2015 02:57 PM |
SageTV Open Source | Narflex | Announcements | 0 | 03-09-2015 02:39 PM |
Why ISN'T Sagetv open source? | matterofrecord | General Discussion | 9 | 11-30-2014 10:49 AM |