kernelci / kernelci-pipeline

Modular pipeline based on the KernelCI API
GNU Lesser General Public License v2.1
8 stars 21 forks source link

Enable `BayLibre` lab in the pipeline #446

Closed JenySadadia closed 7 months ago

JenySadadia commented 8 months ago

Enable one more lab for running tests in the pipeline i.e. BayLibre. We need to get the lab token and URL from the BayLibre team. Once we receive this information we can enable the lab referring the below checklist:

Just for the reference, this is the runtime-config entry in the legacy system for baylibre.

  lab-baylibre:
    lab_type: legacy.lava_xmlrpc
    url: 'https://lava.baylibre.com/RPC2/'
    queue_timeout:
      days: 1
    filters:
      - regex: {'tree': '^(kernelci|mainline|next|stable|arm64|riscv|soc|amlogic|matthiasbgg)$'}
      - passlist:
          plan:
            - baseline
            - kselftest
            - preempt-rt
            - ltp
khilman commented 8 months ago

Assigned to @montjoie who can help get this setup for BayLibre.

a-wai commented 8 months ago

FWIW, with https://github.com/kernelci/kernelci-core/pull/2413 the runtimes entry would probably look like this:

  lava-baylibre:
    lab_type: lava
    url: 'https://lava.baylibre.com/RPC2/'
    notify:
      callback:
        token: kernelci-api-token-staging
        url: https://staging.kernelci.org:9100
    rules:
      tree:
      - kernelci
      - mainline
      - next
      # The following trees are not configured in the new pipeline (yet)
      - stable
      - arm64
      - riscv
      - soc
      - amlogic
      - matthiasbgg

The test plans passlist isn't needed anymore, as scheduler entries take care of assigning each job to a specific runtime, so you only need to ensure those entries only cover the jobs you want to run on this lab.

Also, I don't think the queue_timeout parameter can be handled yet with the new system.

JenySadadia commented 8 months ago

Hi @montjoie We would need a lab URL and a lab token that we can use to submit jobs to the BayLibre lab. Please let us know if you need anything from our end.

montjoie commented 8 months ago

Hello, kernelCI already have a token, does you want I give you back again the same or does I need to generate a new one ? Anyway how to give you securely the token ? Are you on IRC #kernelCI ?

JenySadadia commented 8 months ago

We would like to have a new token for the new API. Yes, my IRC nickname is jenysadadia.

montjoie commented 8 months ago

token given via IRC

JenySadadia commented 7 months ago

Hi @montjoie As per our conversation on IRC, could you please register IPs I have sent you to resolve the below issue when I tried to submit the job to the lab:

Unable to connect: 401 Client Error: Unauthorized