-
Notifications
You must be signed in to change notification settings - Fork 210
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 single-instance example #5829
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -67,6 +67,7 @@ From there, you can trigger a new job or clone an existing one, e.g.: | |||||||||||
|
||||||||||||
[source,sh] | ||||||||||||
---- | ||||||||||||
wget https://raw.githubusercontent.com/os-autoinst/os-autoinst-distri-example/main/scenario-definitions.yaml | ||||||||||||
openqa-cli schedule --monitor \ | ||||||||||||
--param-file SCENARIO_DEFINITIONS_YAML=scenario-definitions.yaml \ | ||||||||||||
Comment on lines
+70
to
72
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to http://open.qa/docs/#_create_and_monitor_openqa_jobs_from_within_the_ci_runner SCENARIO_DEFINITIONS_YAML_FILE
Suggested change
then but something feels off here. Why would we have a parameter SCENARIO_DEFINITIONS_YAML and one SCENARIO_DEFINITIONS_YAML_FILE which can take an URL but for that we normally use the suffix _URL? I suggest to check on that before continuing here. Just downloading a file locally to pass it unaltered to a remote server which then reads the git repo anyway sounds wrong and is not what we should encourage users to do. Maybe that's even a missing feature in openQA which I expected to be present already. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have Note that I'd probably prefer #5829 (comment). Note that your example doesn't work at all. It tells the client to lookup the local file |
||||||||||||
DISTRI=example VERSION=0 FLAVOR=DVD ARCH=x86_64 \ | ||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively we could encourage using the
async=1
flag. Then openQA can download the file itself on the fly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any disadvantages to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async=1
is not mentioned in the help and it's not immediately obvious what it does (from a user perspective).Does it just download the file or does it do other things as well? From the code snippet it looks like it is hard-coded to always download this specific file, i.e. if I specify a different URL it will not download the file I expect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CLI is just a client. Its help doesn't contain information about the server-side parameters. This particular flag is documented in the openQA documentation if I remember correctly.
Not sure what makes you think any paths are hardcore. Of course it'll download the file you specify.
With the suggested change the example doesn't show anymore how to specify a local path which can also be very useful to test local modifications. Maybe we still want to have such an example somewhere in the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed the part where the change is in the docs, not the codebase, my bad 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't find any clear explanation here of what
async=1
does in this case. It does download it on the server side, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Iso.pm enqueues a minion job if async is set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the only thing that
async=1
does or does it affect other things as well? i.e. if it just downloads the specified file, why is it calledasync
? And if it has other behavior, are there any implications?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@perlpunk So the note at the bottom of https://open.qa/docs/#_spawning_multiple_jobs_based_on_templates_isos_post is not good enough? It explains what
async=1
is intended to be used for.And yes, it does not mention the
SCENARIO_DEFINITIONS_YAML_FILE
. Maybe we should add a note where we introduce theSCENARIO_DEFINITIONS_YAML_FILE
parameter that one can specify an HTTP-URL with theasync=1
parameter and that the download is then done server-side.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#5855