Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake on macos extremely slow via Jenkins(SSH or JavaWebStart)

qmake on macos extremely slow via Jenkins(SSH or JavaWebStart)

Scheduled Pinned Locked Moved Solved General and Desktop
macosjenkins
3 Posts 2 Posters 696 Views
  • 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.
  • S Offline
    S Offline
    sam_albuquerque
    wrote on 7 Jan 2019, 12:50 last edited by
    #1

    I am trying to add an ios project to Jenkins. We have run the command manually on the macos machine physically, but when we use Jenkins to run the same commands, it's painfully slow. We have tried using both ssh login for the slave and using JavaWebStart. The project normally takes 10 to 15 minutes to complete when run locally, but is taking 1 hour 30 minutes when run via Jenkins.

    Anyone can give me pointers as to what could be affecting the speed?

    J 1 Reply Last reply 7 Jan 2019, 13:20
    0
    • S Offline
      S Offline
      sam_albuquerque
      wrote on 7 Jan 2019, 13:52 last edited by
      #3

      The Jenkins instance is hosted on a different server and is currently connected to several linux slaves that build properly. It's just the macos slave that has the issue.

      It seems to be slow in both qmake and make steps.

      We just found a solution that requires us to switch the user to itself before running the command.

      sudo -u <loggedinuser> -i bash /script/containging/build/commands.sh
      

      I'm not sure why this has to be done since we are already logged in as the user that we are switching to. My guess is that Apple enables certain restrictions for remote users.

      1 Reply Last reply
      0
      • S sam_albuquerque
        7 Jan 2019, 12:50

        I am trying to add an ios project to Jenkins. We have run the command manually on the macos machine physically, but when we use Jenkins to run the same commands, it's painfully slow. We have tried using both ssh login for the slave and using JavaWebStart. The project normally takes 10 to 15 minutes to complete when run locally, but is taking 1 hour 30 minutes when run via Jenkins.

        Anyone can give me pointers as to what could be affecting the speed?

        J Online
        J Online
        jsulm
        Lifetime Qt Champion
        wrote on 7 Jan 2019, 13:20 last edited by
        #2

        @sam_albuquerque What do you use in Jenkins to build the app (is it a virtual machine)? Did you check what exactly takes time there (is it qmake or make)?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sam_albuquerque
          wrote on 7 Jan 2019, 13:52 last edited by
          #3

          The Jenkins instance is hosted on a different server and is currently connected to several linux slaves that build properly. It's just the macos slave that has the issue.

          It seems to be slow in both qmake and make steps.

          We just found a solution that requires us to switch the user to itself before running the command.

          sudo -u <loggedinuser> -i bash /script/containging/build/commands.sh
          

          I'm not sure why this has to be done since we are already logged in as the user that we are switching to. My guess is that Apple enables certain restrictions for remote users.

          1 Reply Last reply
          0

          1/3

          7 Jan 2019, 12:50

          • Login

          • Login or register to search.
          1 out of 3
          • First post
            1/3
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved