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

Refactor repeat parameter with internal loop #5336

Closed
wants to merge 2 commits into from

Conversation

okurz
Copy link
Member

@okurz okurz commented Oct 19, 2023

Additional refactoring done with @perlpunk based on

ilmanzo and others added 2 commits October 19, 2023 14:11
to better support statistical investigation, we want to provide an
immediate way to clone a job multiple times. Till now it has been done
with a for loop similar to

for i in {01..50}; do openqa-clone-job … TEST+=-$i; done

But we can avoid the API overhead of copying the same parameters and
assets again and again from the original job, simply by cloning it once and
posting the new job(s) N times. TEST name is automatically numbered, so the
user is not forced to remember any shell syntax.

As the default is --repeat=1, the API remains compatible with any shell
script using the openqa-clone-job program.
@okurz okurz marked this pull request as draft October 19, 2023 13:01
@github-actions
Copy link

Great PR! Please pay attention to the following items before merging:

Files matching docs/*.asciidoc:

  • Consider generating documentation locally to verify it is rendered correctly using tools/generate-htmldoc

This is an automatically generated QA checklist based on modified files.

Copy link
Contributor

@Martchus Martchus left a comment

Choose a reason for hiding this comment

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

This is much better than first appending and then replacing the suffix.

Copy link
Contributor

@perlpunk perlpunk left a comment

Choose a reason for hiding this comment

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

Like I wrote in #5331 (comment) this is doing $repeat requests inside the clone_job (now called prepare_job).
So I think we shouldn't do that if we can avoid it.

Copy link
Contributor

mergify bot commented Dec 20, 2023

This pull request is now in conflicts. Could you fix it? 🙏

@okurz okurz closed this Dec 20, 2023
@okurz okurz deleted the feature/repeat branch December 20, 2023 20:29
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