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

Check for existing job groups during openqa-load-templates #6095

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

r-richardson
Copy link
Contributor

The openqa-load-templates script now checks if a job groups is already present when importing new template data. If a group already exists, there will be no attempt of creating it, but associated templates will still be loaded if the --update option is provided.
If the --update option is not provided, and a duplicate job group is found, the import will fail.

Related Issue: https://progress.opensuse.org/issues/174808

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.98%. Comparing base (f9ab890) to head (97d34ec).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6095   +/-   ##
=======================================
  Coverage   98.98%   98.98%           
=======================================
  Files         396      396           
  Lines       39549    39558    +9     
=======================================
+ Hits        39149    39158    +9     
  Misses        400      400           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

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

Very nice, just remove a lot of redundant blank lines :)

script/openqa-load-templates Outdated Show resolved Hide resolved
script/openqa-load-templates Outdated Show resolved Hide resolved
script/openqa-load-templates Outdated Show resolved Hide resolved
script/openqa-load-templates Outdated Show resolved Hide resolved
t/40-script_load_dump_templates.t Outdated Show resolved Hide resolved
script/openqa-load-templates Outdated Show resolved Hide resolved
@r-richardson r-richardson force-pushed the 174808_template_dump branch 5 times, most recently from 5e4e862 to 16ace53 Compare January 7, 2025 14:40
@r-richardson r-richardson force-pushed the 174808_template_dump branch 2 times, most recently from 6200baf to 97d34ec Compare January 7, 2025 15:51
The `openqa-load-templates` script now checks if a job groups is already present when importing new template data. If a group already exists, there will be no attempt of creating it, but associated templates will still be loaded if the `--update` option is provided.
If the `--update` option is not provided, and a duplicate job group is found, the import will fail.

Related Issue: https://progress.opensuse.org/issues/174808
@mergify mergify bot merged commit 8d3af5b into os-autoinst:master Jan 7, 2025
46 checks passed
@r-richardson r-richardson deleted the 174808_template_dump branch January 7, 2025 23:15
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