-
Notifications
You must be signed in to change notification settings - Fork 280
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
Enable AITL for latest Azure images #20649
base: master
Are you sure you want to change the base?
Enable AITL for latest Azure images #20649
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
b96c99f
to
e3ce0fa
Compare
Ties AITL to Upload Image
936f300
to
4cb8c27
Compare
@@ -0,0 +1,133 @@ | |||
# SUSE's openQA tests | |||
# | |||
# Copyright 2021-2024 SUSE LLC |
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.
# Copyright 2021-2024 SUSE LLC | |
# Copyright 2024 SUSE LLC |
assert_script_run("sed -i -e 's/<IMAGE_NAME>/$aitl_image_name/g' -e 's/<IMAGE_VERSION>/$aitl_image_version/g' -e 's/<IMAGE_GALLERY_NAME>/$aitl_image_gallery/g' /tmp/$aitl_manifest"); | ||
|
||
# Create AITL Job based on a manifest | ||
script_output("cat /tmp/$aitl_manifest"); |
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 think you want to use record_info here. Otherwise there's no reason to call script_output here.
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.
Actually I think I added this just as a debugging step and it can be removed altogether.
"selections": [ | ||
{ | ||
"caseName": [ | ||
"verify_connection_status", |
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.
this list means for me that if MS will add new test or remove existing we will need to add/remove it from here 🤔 maybe there is a way to say "Run whatever you have!" ? or maybe there is a reason why we don't want to do that ?
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.
this should not block merge just question for future improvements ...
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.
There is not option to run whatever (at the time of writing). A test manifest must be specified and it has some parameters. They have added 2 new tests since I wrote this, so your gut feeling is correct :)
As a side note - we want to keep track if the tests pass or not, and adding new tests without our knowledge (because MS updated something) can be annoying to debug.
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.
It might make sense to import the tests based on Tiers instead of by caseName. Looking into that.
@@ -160,6 +162,7 @@ sub load_latest_publiccloud_tests { | |||
} | |||
elsif (get_var('PUBLIC_CLOUD_UPLOAD_IMG')) { | |||
loadtest "publiccloud/upload_image", run_args => $args; | |||
loadtest "publiccloud/azure_aitl", run_args => $args; |
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.
this line needs to be removed , I assume you simply forgot to tweak this part ...
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.
Indeed. The whole test needs to be moved elsewhere, I forgot to move it.
my $job_id = get_current_job_id(); | ||
|
||
# If 'az' is preinstalled, we test that version | ||
if (script_run("which az") != 0) { |
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.
we need to discuss this part , we should rely on the fact that tools image provide everything what you need
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 just copied from the azure_cli
test module, so let's discuss.
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.
generally all looks good but there are two major issues which we need to solve before it can be merged :
- triggering logic needs update (main_publiccloud)
- logic about az installation have several problems ( let's discuss it in person )
my $provider = $self->provider_factory(); | ||
|
||
my $image_url = get_required_var('PUBLIC_CLOUD_IMAGE_LOCATION'); | ||
my $region = get_var('PUBLIC_CLOUD_REGION', 'westeurope'); |
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.
my $region = get_var('PUBLIC_CLOUD_REGION', 'westeurope'); | |
my $region = get_var('PUBLIC_CLOUD_REGION'); |
this is design decision done on purpose . It is responsibility of triggering logic / job group settings to define in which region test will run . And if region is not defined test MUST fail
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.
Sure, but in the specific instance for AITL, it kind of doesn't matter.
I couldn't get AITL jobs running anywhere but US (westus1,2,3 and etc.) so for the time being, the region is hardcoded.
I caught some issues with the While loop not triggering and not generatin the Failed xml correctly |
This PR enables AITL (Azure Image Testing for Linux). This test module creates AITL Jobs in Azure.