Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-1137

Cannot reference environment variable containing '-' in name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 1.6
    • None

    Description

      At Update QDoc libclang to 17.0.6 (Ie7c1a8d8) ยท Gerrit Code Review (qt-project.org) I'm trying to update libclang to version 17.0.6 and introducing a new platform llvm-mingw.

      The good news is that provisioning for Windows doesn't take 8 hours anymore, the bad news is that modules cannot be build.

      At https://testresults.qt.io/coin/integration/qt/qt5/tasks/web_qt_qt5_1712134124416 failure is:

      Failed to set 'LLVM_INSTALL_DIR' environment variable. That should not happen, please contact the Coin admins and maybe try to restage your changes.
      
      
      254: 	/var/lib/coin/tqtc-coin-ci/src/agent/build.go:129 +0x676
      main.(*agentHandler).runModifyEnvVar(0xfa8da9?, 0xc00019bb80)
      	/var/lib/coin/tqtc-coin-ci/src/agent/build.go:492 +0xac
      main.(*agentHandler).runInstructions(0xc000212000, 0xc00011f780, 0xc000158a80)
      	/var/lib/coin/tqtc-coin-ci/src/agent/build.go:815 +0xc92
      main.executeInstructionsGoroutine(0xc000212000, 0xc000158a80, 0xc0000a5f98?)
      	/var/lib/coin/tqtc-coin-ci/src/agent/agent.go:366 +0x1225
      created by main.(*agentHandler).ExecuteInstructions
      	/var/lib/coin/tqtc-coin-ci/src/agent/agent.go:121 +0xaa
      
      ERROR building: Panic during build
      

      And:

      agent:2024/04/03 11:43:34 agent.go:239: Recovered from panic: template: agent-variable-template:1: bad character U+002D '-'
      agent:2024/04/03 11:43:34 agent.go:240: goroutine 50 [running]:
      runtime/debug.Stack()
      	/var/lib/coin/go120/src/runtime/debug/stack.go:24 +0x65
      main.executeInstructionsGoroutine.func2()
      	/var/lib/coin/tqtc-coin-ci/src/agent/agent.go:240 +0xb3
      panic({0xf04640, 0xc000248d30})
      	/var/lib/coin/go120/src/runtime/panic.go:884 +0x213
      main.(*agentHandler).substituteVariables(0x0?, {0xc00013cf60, 0x24})
      	/var/lib/coin/tqtc-coin-ci/src/agent/build.go:129 +0x676
      main.(*agentHandler).runModifyEnvVar(0xfa8da9?, 0xc00019bb80)
      	/var/lib/coin/tqtc-coin-ci/src/agent/build.go:492 +0xac
      main.(*agentHandler).runInstructions(0xc000212000, 0xc00011f780, 0xc000158a80)
      	/var/lib/coin/tqtc-coin-ci/src/agent/build.go:815 +0xc92
      main.executeInstructionsGoroutine(0xc000212000, 0xc000158a80, 0xc0000a5f98?)
      	/var/lib/coin/tqtc-coin-ci/src/agent/agent.go:366 +0x1225
      created by main.(*agentHandler).ExecuteInstructions
      	/var/lib/coin/tqtc-coin-ci/src/agent/agent.go:121 +0xaa
      agent:2024/04/03 11:43:34 agent.go:248: ERROR building: Panic during build
      

      Note that environment variables containing '-' in name are perfectly valid.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tosaario Toni Saario
            cadam Cristian Adam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes