action #56534

support list of machines for YAML job templates

Added by okurz 6 months ago. Updated 4 months ago.

Status:ResolvedStart date:06/09/2019
Priority:NormalDue date:
Assignee:cdywan% Done:

0%

Category:Feature requests
Target version:Ready
Difficulty:
Duration:

Description

Motivation

In https://openqa.opensuse.org/admin/job_templates/35 we have

    opensuse-*-Gnome-Live-x86_64:
    - gnome-live:
        machine: 64bit-2G
    - gnome-live
    - gnome-live:
        machine: uefi-2G
    - gnome-live:
        machine: USBboot_64

so four times the same test suite that only differs in the machine selection, the second one using the default. Would be nice to remove the redundancy, e.g. by specifying the machines as list:

    opensuse-*-Gnome-Live-x86_64:
    - gnome-live:
        machine: *defaults
         - 64bit-2G
         - uefi-2G
         - USBboot_64

History

#1 Updated by tinita 6 months ago

opensuse-*-Gnome-Live-x86_64:
- gnome-live:
    machine: *defaults # <-- this needs to be &defaults
     - 64bit-2G
     - uefi-2G
     - USBboot_64

#2 Updated by cdywan 6 months ago

Perhaps it's best we start with the simplest example here to reduce confusion:

opensuse-*-Gnome-Live-x86_64:
- gnome-live:
    machine:
     - 64bit-2G
     - uefi-2G
     - USBboot_64

This would work if we allowed machine to be a list. By extension you'd probably also expect this to work:

defaults:
- x86_64:
    machine:
     - 64bit-2G
     - uefi-2G
     - USBboot_64

That way you could have all scenarios for a list of machines.

#3 Updated by coolo 4 months ago

  • Target version set to Ready

A list sounds plausible

#4 Updated by cdywan 4 months ago

  • Status changed from New to In Progress
  • Assignee set to cdywan

#5 Updated by cdywan 4 months ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF