Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the operation of 'jobs post' #2861

Merged
merged 2 commits into from
Mar 26, 2020
Merged

Conversation

Amrysliu
Copy link
Contributor

In the current code, the settings start with + will be added to the job when creating a job using jobs post as {+key => value}.
Handle this by following the rule that defined in schedule_iso

When we cloning a job, the settings that removed by clone script are added into the job's settings again if the settings are defined in TestSuite or Product or Machine. Because the create job function re-generate the settings.

See: https://progress.opensuse.org/issues/63883
https://progress.opensuse.org/issues/63565

@codecov
Copy link

codecov bot commented Mar 24, 2020

Codecov Report

Merging #2861 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2861      +/-   ##
==========================================
+ Coverage   93.23%   93.23%   +<.01%     
==========================================
  Files         189      189              
  Lines       11880    11888       +8     
==========================================
+ Hits        11076    11084       +8     
  Misses        804      804
Impacted Files Coverage Δ
lib/OpenQA/Script.pm 85.24% <100%> (+0.24%) ⬆️
lib/OpenQA/Schema/Result/ScheduledProducts.pm 97.29% <100%> (-0.03%) ⬇️
lib/OpenQA/JobSettings.pm 100% <100%> (ø)
lib/OpenQA/WebAPI/Controller/API/V1/Job.pm 89.96% <100%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb40974...bd7f436. Read the comment docs.

lib/OpenQA/WebAPI/Controller/API/V1/Job.pm Outdated Show resolved Hide resolved
lib/OpenQA/Script.pm Outdated Show resolved Hide resolved
lib/OpenQA/Utils.pm Outdated Show resolved Hide resolved
lib/OpenQA/Schema/Result/ScheduledProducts.pm Outdated Show resolved Hide resolved
lib/OpenQA/Utils.pm Outdated Show resolved Hide resolved
In the current code, the settings start with `+` will be added to the
job when creating a job using `jobs post` as `{+key => value}`.

Following the rule that defined in `isos post` to handle this.

See: https://progress.opensuse.org/issues/63565
@okurz
Copy link
Member

okurz commented Mar 26, 2020

looks better and better :)

@okurz okurz merged commit 15494dd into os-autoinst:master Mar 26, 2020
@okurz
Copy link
Member

okurz commented Mar 27, 2020

Reverting due to https://progress.opensuse.org/issues/64938

@Martchus
Copy link
Contributor

Considering #2877 (comment) you can likely re-create that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants