Project

General

Profile

Actions

action #62219

closed

jobs post does not support to trigger a test suite that is defined in YAML with a new alias

Added by Xiaojing_liu over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2020-01-17
Due date:
% Done:

0%

Estimated time:

Description

  1. When cloning a job use clone_job.pl, the setting with + defined in Medium Types will be added into the job's setting, although it does not work. Here is an example: https://openqa.suse.de/tests/3795703#settings
  2. jobs post only support using test suite name when triggering a job.

Related issues 3 (0 open3 closed)

Blocked by openQA Project - action #60371: Fix variable precedence and predence overriding in job templates YAML documentsResolvedtinita2019-11-28

Actions
Copied to openQA Project - action #63565: The extra setting is added to the new job when cloning a jobResolvedXiaojing_liu2020-02-19

Actions
Copied to openQA Project - action #63571: Cannot use `jobs post` to trigger test suites defined in job templateRejected2020-02-19

Actions
Actions #1

Updated by livdywan over 4 years ago

We should make sure the job template name works everywhere. To users it shouldn't even matter if it happens to be the name of a test suite or if it was defined in YAML.

Actions #2

Updated by okurz over 4 years ago

  • Category set to Feature requests
Actions #3

Updated by Xiaojing_liu over 4 years ago

For question 1, could we add a parameter when cloning a job? if the operation is cloning a job, just get the job's setting, don't get the other's settings from medium type and machine, test suite.
question 2, how could we support using job template name? when executing jobs post TEST=xxx, first search the XXX in job template table? if there are more than one job templates with this name, all of them will be triggered? if the job template table does not include this specified job template name, searching the test suite table?

Actions #4

Updated by Xiaojing_liu over 4 years ago

As discussed with @cdywan, I need to write more details about question 1.
The whole users' story is that:

  1. About the setting with a '+', here is a ticket that explains it. https://progress.opensuse.org/issues/60371
  2. Users defined the setting property with +ISO both in Medium Type and YAML. in Medium Type, the setting is +ISO=SLE-%VERSION%-Online-%ARCH%-Build%BUILD%-Media1.iso in YAML the setting is re-defined as this: - offline_sles15_media_basesys-srv-desk_all_full: settings: +ISO: SLE-%VERSION%-Full-%ARCH%-Build%BUILD%-Media1.iso
  3. when the job is trigger by openQA, the job's setting is SLE-15-SP2-Full-x86_64-Build122.1-Media1.iso. The result is expected.
  4. The job in this example (given in the description ), was cloned by users. As expected, the cloned job should have the same settings as the based job has. In fact, the cloned job has two parameters about ISO, such as: +ISO: SLE-15-SP2-Online-x86_64-Build122.1-Media1.iso ISO: SLE-15-SP2-Full-x86_64-Build122.1-Media1.iso Although the setting +ISO does not affect the job, IMHO it should not be here. I checked the code, the +ISO comes from the Medium Type. I think we should not get the settings from medium type or machine or test suite when users clone a job using openqa-clone-job.
Actions #5

Updated by livdywan about 4 years ago

  • Blocked by action #60371: Fix variable precedence and predence overriding in job templates YAML documents added
Actions #6

Updated by livdywan about 4 years ago

  • Status changed from New to Feedback
  • Assignee set to Xiaojing_liu
  • Target version set to Current Sprint
Actions #7

Updated by Xiaojing_liu about 4 years ago

  • Copied to action #63565: The extra setting is added to the new job when cloning a job added
Actions #8

Updated by Xiaojing_liu about 4 years ago

  • Copied to action #63571: Cannot use `jobs post` to trigger test suites defined in job template added
Actions #9

Updated by livdywan about 4 years ago

  • Status changed from Feedback to Closed

This ticket has been split up into separate tasks so for clarity I'm closing it.

Actions

Also available in: Atom PDF