Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39277

Add CPU type as a "device condition"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: open-stf-plugin
    • Labels:
      None
    • Environment:
      Ubuntu Linux 16.04
    • Similar Issues:

      Description

      I'm using native code to build my Android app, so I end up with two different builds. One for ARM CPUs, and one for x86. (We aren't targeting MIPS right now.)

      It would be nice if a device condition was available so that I could easily have one test job that runs on ARM CPUs, and one that runs on x86 CPUs. (It would probably make sense to include MIPS and the various flavors of ARM, or to make the match a free form text field that supports regex, similar to some of the other available options.)

      Thanks!

        Attachments

          Activity

          Hide
          justice3120 Masayoshi Sakamoto added a comment - - edited

          Here is a responce of 'GET /devices/(serial)' API on Open STF.

          {
          	"success": true,
          	"device": {
          		"abi": "arm64-v8a",
                          ...
          		"cpu": {
          			"cores": 8,
          			"freq": 2,
          			"name": "Qualcomm Snapdragon 810 MSM8994"
          		},
          		"memory": {
          			"ram": 3072,
          			"rom": 32768
          		},
          		"using": false
          	}
          }
          

          The "abi" parameter seems usefull.

          Show
          justice3120 Masayoshi Sakamoto added a comment - - edited Here is a responce of 'GET /devices/(serial)' API on Open STF. { "success" : true , "device" : { "abi" : "arm64-v8a" , ... "cpu" : { "cores" : 8, "freq" : 2, "name" : "Qualcomm Snapdragon 810 MSM8994" }, "memory" : { "ram" : 3072, "rom" : 32768 }, "using" : false } } The "abi" parameter seems usefull.
          Hide
          fba Chris Hessing added a comment -

          Hi Masayoshi-san. The abi would work prefectly. The only issue I can see, which I think can easily be worked around, is that I would want to run the ARM variant of my code on both the 32-bit and 64-bit ARM systems. If a regex could be used, I could probably hack up a regex that would cover both variants of the abi string.

          Thanks!!

          Show
          fba Chris Hessing added a comment - Hi Masayoshi-san. The abi would work prefectly. The only issue I can see, which I think can easily be worked around, is that I would want to run the ARM variant of my code on both the 32-bit and 64-bit ARM systems. If a regex could be used, I could probably hack up a regex that would cover both variants of the abi string. Thanks!!
          Hide
          justice3120 Masayoshi Sakamoto added a comment -

          I have not able to write enough document yet, but you can use regex as a condition value already, with following format:

          /regex/

          e.g.)
          version=/4.*/ matches 4, 4.2 and 4.2.2.

          So, just add the 'abi' condition works for you, I think.

          Show
          justice3120 Masayoshi Sakamoto added a comment - I have not able to write enough document yet, but you can use regex as a condition value already, with following format: /regex/ e.g.) version=/4.*/ matches 4, 4.2 and 4.2.2. So, just add the 'abi' condition works for you, I think.
          Hide
          justice3120 Masayoshi Sakamoto added a comment -

          Hi Chris Hessing

          I released this feature too.

          Show
          justice3120 Masayoshi Sakamoto added a comment - Hi Chris Hessing I released this feature too.
          Hide
          fba Chris Hessing added a comment -

          Hi Masayoshi-san,

          Thank you very much for this! I'll get the update plugin loaded today (hopefully) and start to work with it.

          Thanks again!

          Show
          fba Chris Hessing added a comment - Hi Masayoshi-san, Thank you very much for this! I'll get the update plugin loaded today (hopefully) and start to work with it. Thanks again!
          Hide
          justice3120 Masayoshi Sakamoto added a comment -

          The version 1.0.4 released.
          So, close this issue.

          Show
          justice3120 Masayoshi Sakamoto added a comment - The version 1.0.4 released. So, close this issue.

            People

            • Assignee:
              justice3120 Masayoshi Sakamoto
              Reporter:
              fba Chris Hessing
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: