HISE Logo Forum
    • Categories
    • Register
    • Login

    HISE Build Version should be changed incrementally

    Scheduled Pinned Locked Moved Feature Requests
    9 Posts 5 Posters 337 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DabDabD
      DabDab
      last edited by

      As you can see I have used here HISE 3.0 where build time is the date when I compiled to source code to HISE binary. But build version is 650. In HISE 4.0 it is still 650. What is the meaning of it ?
      0ded54c6-0fd9-4ae7-af8c-3bee649b405d-image.png

      It should be changed incrementally so that we get the idea what version of HISE we have compiled.
      Every day HISE is rapidly getting evolved, packed with lots of new features. It will be a good practice to keep track of HISE build version.

      Bollywood Music Producer and Trance Producer.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @DabDab
        last edited by

        @DabDab I think the version and build number should be entirely abandoned and the git commit number should be used instead.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        A 1 Reply Last reply Reply Quote 4
        • A
          aaronventure @d.healey
          last edited by

          @d-healey I agree, if the directory is a git repo, it should automatically use the commit SHA instead of any number.

          How do you handle it for cases where someone manually downloads the git repo? As far as I'm aware, the SHA isn't embedded anywhere. Is it just a hash of the entire repo?

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @aaronventure
            last edited by

            @aaronventure said in HISE Build Version should be changed incrementally:

            How do you handle it for cases where someone manually downloads the git repo

            Those people don't need to know :)

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @d.healey
              last edited by

              I think the version and build number should be entirely abandoned and the git commit number should be used instead.

              Good idea. I've redesigned the about page to also include the most important preprocessor flags so you can see exactly how the current HISE version is built and with this I've also added a git commit SHA as an identification of the exact build state and if you click on the button it will take you to the exact git commit in the web browser.

              19688624-753a-41a3-9e0f-c3c408a1da81-image.png

              There's a bit of black magic fuckery involved to get this to work:

              • before every commit I'll run a short batch file that fetches the current git SHA of the repo and write it to 2 locations (one plain text file and one C++ header file that will be included the next time you build HISE.
              • that commit will always be one behind the actual state, so when I'm loading that dialog, I'll call GitHub's API, fetch the list of commits to search the SHA, then pick the next commit as the one that matches the build state.

              Another nice benefit of this system is that I can now compare the SHA of the HISE build with the SHA of the HISE source code at export and print a warning if there is a mismatch (a build mismatch between source code and HISE build is one of the more annoying issues as there are many things that can go wrong). I haven't implemented this check yet, but tomorrows another day.

              ustkU d.healeyD 2 Replies Last reply Reply Quote 4
              • ustkU
                ustk @Christoph Hart
                last edited by ustk

                @Christoph-Hart said in HISE Build Version should be changed incrementally:

                Another nice benefit of this system is that I can now compare the SHA of the HISE build with the SHA of the HISE source code at export and print a warning if there is a mismatch...

                Oh nice! I often get caught by this mistake since I am often running two versions of Hise simultaneously!

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 0
                • ustkU ustk referenced this topic on
                • d.healeyD
                  d.healey @Christoph Hart
                  last edited by

                  @Christoph-Hart Can the git commit also be included in a snippet somehow? So when people post a snippet, asking for help, we don't have to keep asking which version of HISE they are using?

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  Christoph HartC 1 Reply Last reply Reply Quote 1
                  • Christoph HartC
                    Christoph Hart @d.healey
                    last edited by

                    @d-healey good idea. Obviously we cannot disallow loading snippets with a hash mismatch but I can print a warning to the console.

                    d.healeyD 1 Reply Last reply Reply Quote 1
                    • d.healeyD
                      d.healey @Christoph Hart
                      last edited by

                      @Christoph-Hart Yeah, print snippet created with x commit or something similar. That way when we're trying to help people we can know what they're using.

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      44

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      102.3k

                      Posts