Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

test live support? #17

Open
calmcacil opened this issue Jun 21, 2018 · 4 comments
Open

test live support? #17

calmcacil opened this issue Jun 21, 2018 · 4 comments

Comments

@calmcacil
Copy link

calmcacil commented Jun 21, 2018

It might already do this, but can we have a simple environmental variable to enable downloading/updating using -beta testlive for our test servers? Keep up the good work.

@alinmear
Copy link
Owner

alinmear commented Jun 22, 2018

Please correct me, but the logic should be like this:
Pseudocode:
if CONANEXILES_BETA == 'yes' then add to steamcmd the flag -beta testlive
else start the container/steamcmd without the flag

@calmcacil
Copy link
Author

Yes, that should do it. By default its +app_update 443030 -beta testlive so I believe that's how it goes.

@alinmear
Copy link
Owner

To implement this, we have to take care of two parts within the provisioning logics:
a.) docker-conanexiles/conanexiles/installer/install.txt --> defines, what the update routine installs/updates
b.) The function to get a new build version

function get_available_build() {
    # clear appcache (to avoid reading infos from cache)
    rm -rf /root/Steam/appcache

    # get available build id and return it
    local _build_id=$(/steamcmd/steamcmd.sh +login anonymous +app_info_update 1 +app_info_print $APPID +quit | \
    			    grep -EA 1000 "^\s+\"branches\"$" | grep -EA 5 "^\s+\"public\"$" | \
    			    grep -m 1 -EB 10 "^\s+}" | grep -E "^\s+\"buildid\"\s+" | \
    			    tr '[:blank:]"' ' ' | awk '{print $2}')

    echo $_build_id
}

We should introduce 1 new install definition, install_testlive.txt and a condition to take this routine, if the FLAG CONANEXILES_BETA_TESTLIVE = 1. We should also create a new function get_available_build_testlive.

@alinmear
Copy link
Owner

alinmear commented Jun 23, 2018

With this we should also rework the get_available_build logic; logic is as following:

  • get the line "branches" and show 1000 lines after this line
  • get the line "public" within the last grep output and show only 5 lines:
                        "public"
                        {
                                "buildid"               "2886556"
                                "timeupdated"           "1529679660"
                        }
  • extract the buildid

We should resolve this programmatically. The output looks like this:

AppID : 443030, change number : 4664962/4294967295, last change : Sat Jun 23 20:06:45 2018 
"443030"
{
        "common"
        {
                "name"          "Conan Exiles Dedicated Server"
                "type"          "Tool"
                "oslist"                "windows,linux"
                "osarch"                "64"
                "ReleaseState"          "released"
                "gameid"                "443030"
        }
        "extended"
        {
                "gamedir"               ""
        }
        "config"
        {
                "contenttype"           "3"
                "installdir"            "Conan Exiles Dedicated Server"
                "launch"
                {
                        "0"
                        {
                                "executable"            "ConanSandboxServer.exe"
                                "arguments"             "-Messaging"
                                "description"           "Launch Game server"
                                "type"          "none"
                                "config"
                                {
                                        "oslist"                "windows"
                                        "osarch"                "64"
                                }
                        }
                        "1"
                        {
                                "executable"            "ConanSandbox\\Binaries\\Linux\\ConanSandboxServer"
                                "type"          "server"
                                "config"
                                {
                                        "oslist"                "linux"
                                        "osarch"                "64"
                                }
                        }
                }
        }
        "depots"
        {
                "1004"
                {
                        "name"          "Steamworks SDK Redist (WIN32)"
                        "config"
                        {
                                "oslist"                "windows"
                        }
                        "manifests"
                        {
                                "public"                "4363861372187666562"
                        }
                        "maxsize"               "27257824"
                        "depotfromapp"          "1007"
                }
                "1005"
                {
                        "name"          "Steamworks SDK Redist (OSX32)"
                        "config"
                        {
                                "oslist"                "macos"
                        }
                        "manifests"
                        {
                                "public"                "2135359612286175146"
                        }
                        "depotfromapp"          "1007"
                }
                "1006"
                {
                        "name"          "Steamworks SDK Redist (LINUX32)"
                        "config"
                        {
                                "oslist"                "linux"
                        }
                        "manifests"
                        {
                                "public"                "440706658004308074"
                        }
                        "maxsize"               "43908221"
                        "depotfromapp"          "1007"
                }
                "228985"
                {
                        "name"          "VC 2013 Redist"
                        "config"
                        {
                                "oslist"                "windows"
                        }
                        "manifests"
                        {
                                "public"                "3966345552745568756"
                        }
                        "maxsize"               "13699237"
                        "depotfromapp"          "228980"
                }
                "228986"
                {
                        "name"          "VC 2015 Redist"
                        "config"
                        {
                                "oslist"                "windows"
                        }
                        "manifests"
                        {
                                "public"                "1003373983685403880"
                        }
                        "maxsize"               "29759895"
                        "depotfromapp"          "228980"
                }
                "228990"
                {
                        "name"          "DirectX Jun 2010 Redist"
                        "config"
                        {
                                "oslist"                "windows"
                        }
                        "manifests"
                        {
                                "public"                "1829726630299308803"
                        }
                        "maxsize"               "102931551"
                        "depotfromapp"          "228980"
                }
                "443031"
                {
                        "name"          "Conan Exiles Dedicated Server (Windows)"
                        "config"
                        {
                                "oslist"                "windows"
                                "osarch"                "64"
                        }
                        "manifests"
                        {
                                "public"                "9187906993950369827"
                                "testlive"              "422670125269057764"
                        }
                        "maxsize"               "1841453242"
                        "encryptedmanifests"
                        {
                                "1test"
                                {
                                        "encrypted_gid_2"               "7947B09791DF04E8D30043C2697F81F5"
                                        "encrypted_size_2"              "6254E46483D01DFAE710AA31AA7930D9"
                                }
                                "3testronic"
                                {
                                        "encrypted_gid_2"               "EDE7D56CF4D701A8654D8C3F64548B91"
                                        "encrypted_size_2"              "626D3DDD2EA38BD716484B42F83A14D9"
                                }
                                "4testronic"
                                {
                                        "encrypted_gid_2"               "81621AE046B09B7EA4080C1DA3C8F985"
                                        "encrypted_size_2"              "7C657EE4F9356CEBB6BEAD6DBD120B6A"
                                }
                                "autobuildsystem"
                                {
                                        "encrypted_gid_2"               "DE3E4D42473CEFB0C210189F5E7ED600"
                                        "encrypted_size_2"              "FB3889D4C139D769B671664BA025C42A"
                                }
                                "candidate4testlive"
                                {
                                        "encrypted_gid_2"               "AE95CF8F831B6CA7D4044B6BF491978C"
                                        "encrypted_size_2"              "17AE4239E51D489FB3DCE0A625194262"
                                }
                                "combat"
                                {
                                        "encrypted_gid_2"               "2A642C5D50A4758DB2CCA6810E980B2E"
                                        "encrypted_size_2"              "1C690BD7F07946332AFAB05CDFB838A7"
                                }
                                "development"
                                {
                                        "encrypted_gid_2"               "EFDE428D8EB237DA473EB20A934DF11E"
                                        "encrypted_size_2"              "65590D0D2603E5AAC97948838EA77A36"
                                }
                                "devqa"
                                {
                                        "encrypted_gid_2"               "3B4A94ACB0EEF657ED97A627D3E4E2DF"
                                        "encrypted_size_2"              "73B2A58907C9F5DC1AD3072E27349F26"
                                }
                                "experimental"
                                {
                                        "encrypted_gid_2"               "CB36417DD03BC5DA03B392021FABD964"
                                        "encrypted_size_2"              "BDDCAFEED285A4494217F5514D602CEE"
                                }
                                "gamecode"
                                {
                                        "encrypted_gid_2"               "6AE4FC4BF6EBAFF06528B290288286C5"
                                        "encrypted_size_2"              "F1BE9A7E67E56A5816469CBFE73E0583"
                                }
                                "localization_test"
                                {
                                        "encrypted_gid_2"               "8AAAF7142858FB57FCF384163B114D4B"
                                        "encrypted_size_2"              "B3D9D25728868F68F2B35679ADEA21B9"
                                }
                                "marketing"
                                {
                                        "encrypted_gid_2"               "09F28142D2E4453229A453CA13520DF6"
                                        "encrypted_size_2"              "F7E4AE4E1CF02A70B5E7D30472A6444D"
                                }
                                "marketing2"
                                {
                                        "encrypted_gid_2"               "A9BA183D36D5BCF61E36756C0CCD5396"
                                        "encrypted_size_2"              "355E16DF70210B3AD39953FE80C75014"
                                }
                                "old_live"
                                {
                                        "encrypted_gid_2"               "3C4B1DBD1F0B11B62949FA07C3B50E3A"
                                        "encrypted_size_2"              "E830EA07DF18A1CBE12CCAD2B9991536"
                                }
                                "partner"
                                {
                                        "encrypted_gid_2"               "90538378DDFE9343E8F9E18D97FC9181"
                                        "encrypted_size_2"              "964AD3552A176B8AF9BB0CA829B512D5"
                                }
                                "pqa1"
                                {
                                        "encrypted_gid_2"               "56702CBA6248A2E8968CDC591DBE5CEC"
                                        "encrypted_size_2"              "6F359349472A1FAA63EAAF9938C3E170"
                                }
                                "stable"
                                {
                                        "encrypted_gid_2"               "159B6122B5F3912DBAAC44747F07A3DE"
                                        "encrypted_size_2"              "E3331C762CAE28EC664A4B9CDC5774B9"
                                }
                        }
                }
                "443032"
                {
                        "name"          "Conan Exiles Dedicated Server (Linux)"
                        "config"
                        {
                                "oslist"                "linux"
                                "osarch"                "64"
                        }
                        "manifests"
                        {
                                "public"                "3199714172864163068"
                        }
                }
                "branches"
                {
                        "public"
                        {
                                "buildid"               "2886556"
                                "timeupdated"           "1529679660"
                        }
                        "1test"
                        {
                                "buildid"               "2851976"
                                "description"           "Test Branch Build"
                                "pwdrequired"           "1"
                                "timeupdated"           "1528725481"
                        }
                        "2testronic"
                        {
                                "buildid"               "2886556"
                                "description"           "For Testronic Team"
                                "pwdrequired"           "1"
                                "timeupdated"           "1529673963"
                        }
                        "3testronic"
                        {
                                "buildid"               "2887914"
                                "description"           "extra branch"
                                "pwdrequired"           "1"
                                "timeupdated"           "1529703551"
                        }
                        "4testronic"
                        {
                                "buildid"               "2876976"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1529450003"
                        }
                        "autobuildsystem"
                        {
                                "buildid"               "2886699"
                                "description"           "buildsystem submits"
                                "pwdrequired"           "1"
                                "timeupdated"           "1529676794"
                        }
                        "candidate4testlive"
                        {
                                "buildid"               "2884137"
                                "description"           "TestLive Candidate"
                                "pwdrequired"           "1"
                                "timeupdated"           "1529612336"
                        }
                        "combat"
                        {
                                "buildid"               "2755065"
                                "description"           "For combat testing"
                                "pwdrequired"           "1"
                                "timeupdated"           "1525781314"
                        }
                        "development"
                        {
                                "buildid"               "2864753"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1529064953"
                        }
                        "devqa"
                        {
                                "buildid"               "2885844"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1529656620"
                        }
                        "experimental"
                        {
                                "buildid"               "2884042"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1529609883"
                        }
                        "gamecode"
                        {
                                "buildid"               "2862737"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1529078681"
                        }
                        "localization_test"
                        {
                                "buildid"               "2797649"
                                "description"           "Test Branch Build"
                                "pwdrequired"           "1"
                                "timeupdated"           "1527026855"
                        }
                        "marketing"
                        {
                                "buildid"               "2862737"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1529068263"
                        }
                        "marketing2"
                        {
                                "buildid"               "2886036"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1529665589"
                        }
                        "old_live"
                        {
                                "buildid"               "2666364"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1523920664"
                        }
                        "partner"
                        {
                                "buildid"               "2634625"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1522145990"
                        }
                        "pqa1"
                        {
                                "buildid"               "2665252"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1522999623"
                        }
                        "stable"
                        {
                                "buildid"               "2865929"
                                "description"           ""
                                "pwdrequired"           "1"
                                "timeupdated"           "1529088621"
                        }
                        "testlive"
                        {
                                "buildid"               "2876976"
                                "description"           ""
                                "timeupdated"           "1529528563"
                        }
                }
        }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants