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

openqa-clone-job: Apply group settings to all cloned jobs #5066

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

Martchus
Copy link
Contributor

This change makes _GROUP and _GROUP_ID "global" settings so one can clone a set of jobs into another group or no group via, e.g. openqa-clone-job $some_url _GROUP=0. Otherwise one needed to take dependencies into account and possibly specify --parental-inheritance (which would then apply all settings to the parent which might not be wanted as well).

The downside is that leaving the parent jobs that are cloned as well in their job groups is not possible anymore. However, I don't think that this is a realy use case of our users anyways.

This change makes `_GROUP` and `_GROUP_ID` "global" settings so
one can clone a set of jobs into another group or no group via,
e.g. `openqa-clone-job $some_url _GROUP=0`. Otherwise one needed
to take dependencies into account and possibly specify
`--parental-inheritance` (which would then apply all settings to
the parent which might not be wanted as well).

The downside is that leaving the parent jobs that are cloned as
well in their job groups is not possible anymore. However, I
don't think that this is a realy use case of our users anyways.
@Martchus Martchus changed the title openqa-clone-job: Apply group settings to cloned jobs openqa-clone-job: Apply group settings to all cloned jobs Mar 31, 2023
@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Merging #5066 (93cae45) into master (78c4788) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5066   +/-   ##
=======================================
  Coverage   98.25%   98.25%           
=======================================
  Files         383      383           
  Lines       36026    36026           
=======================================
  Hits        35396    35396           
  Misses        630      630           
Impacted Files Coverage Δ
lib/OpenQA/Script/CloneJob.pm 97.14% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@kalikiana kalikiana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, I don't think that this is a realy use case of our users anyways.

I can't say I ever heard of this being a use case. Maybe worth a quick shout in relevant channels, though, just in case someone (accidentally) relies on it.

@mergify mergify bot merged commit d0e672c into os-autoinst:master Apr 13, 2023
@Martchus Martchus deleted the global-clone-settings branch April 13, 2023 09:16
os-autoinst-bot pushed a commit to os-autoinst-bot/openQA that referenced this pull request Apr 14, 2023
commit d0e672c
Merge: a3baeed 93cae45
Author:     mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
AuthorDate: Thu Apr 13 08:40:45 2023 +0000
Commit:     GitHub <noreply@github.com>
CommitDate: Thu Apr 13 08:40:45 2023 +0000

    Merge pull request os-autoinst#5066 from Martchus/global-clone-settings

    openqa-clone-job: Apply group settings to all cloned jobs
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.

None yet

3 participants