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

fixed data_url,err handling,ind component install #20723

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

yarunachalam
Copy link
Contributor

@yarunachalam yarunachalam commented Dec 2, 2024

Fixed data_url,err handling, individual component install, included sub-routine to install from ToTest ibs url. (which will be called when openQA jobs gets triggered from ibs)
Handle https openwebui connect error handling and pod failure and drop umberlla chart to
individual component install to support ToTest

Failed job: https://openqa.suse.de/tests/16027941#step/create_aistack_env/151
Verification run: https://openqa.suse.de/tests/16209439#details

@yarunachalam
Copy link
Contributor Author

Along with Fix data_url, Added test_flags, increased timeout and added python package in the dependency package install

@m-dati
Copy link
Contributor

m-dati commented Dec 5, 2024

Please could you add the last description in the header post, adding some detail, also removing the template [... PLEASE, REMOVE THIS LINE,...] part?

Moreover, a commit message is even more important, reporting in history the modification applied:
a synthetic description of changes should be also updated in commit text, a "commit --amend" suggested.

tests/publiccloud/create_aistack_env.pm Outdated Show resolved Hide resolved
tests/publiccloud/create_aistack_env.pm Outdated Show resolved Hide resolved
tests/publiccloud/create_aistack_env.pm Outdated Show resolved Hide resolved
@yarunachalam yarunachalam force-pushed the dataurlfix branch 12 times, most recently from 5e31bd3 to 6f30343 Compare December 9, 2024 05:04
@yarunachalam yarunachalam changed the title Fixed call to data_url fixed data_url,err handling,ind component install Dec 9, 2024
@yarunachalam yarunachalam requested a review from m-dati December 9, 2024 05:05
tests/publiccloud/create_aistack_env.pm Outdated Show resolved Hide resolved
tests/publiccloud/create_aistack_env.pm Outdated Show resolved Hide resolved
tests/publiccloud/create_aistack_env.pm Outdated Show resolved Hide resolved
tests/publiccloud/create_aistack_env.pm Outdated Show resolved Hide resolved
@yarunachalam yarunachalam force-pushed the dataurlfix branch 4 times, most recently from 4815e3b to 6798e51 Compare December 17, 2024 05:37
Copy link
Contributor Author

@yarunachalam yarunachalam left a comment

Choose a reason for hiding this comment

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

fixed

m-dati
m-dati previously approved these changes Dec 17, 2024
Copy link
Contributor

@m-dati m-dati left a comment

Choose a reason for hiding this comment

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

Good job 🙂

@m-dati
Copy link
Contributor

m-dati commented Dec 17, 2024

Please a last more thing, consider the presence in yaml data of passwords, that should be hided.

@m-dati m-dati self-requested a review December 17, 2024 10:46
@m-dati m-dati dismissed their stale review December 17, 2024 10:48

Sorry, a password management still needed in yaml

@yarunachalam yarunachalam force-pushed the dataurlfix branch 6 times, most recently from 02629bd to d5512e8 Compare December 17, 2024 21:08
@m-dati
Copy link
Contributor

m-dati commented Dec 17, 2024

LGTM 🙂

@yarunachalam yarunachalam force-pushed the dataurlfix branch 4 times, most recently from ed28552 to 57e4c1d Compare December 18, 2024 05:14
handled https openwebui connect error handling
and pod failure and drop umberlla chart to
individual component install to support ToTest
@asmorodskyi asmorodskyi merged commit 4bb114c into os-autoinst:master Dec 18, 2024
10 checks passed
Comment on lines +244 to +252
assert_script_run("curl --output /dev/null --silent --head --write-out \"%{http_code}\n\" -k -L https://$host_name");
my $curl_cmd = "curl --output /dev/null --silent --head --write-out \"%{http_code}\n\" -k -L https://$host_name";
my $curl_result = script_output($curl_cmd);
record_info("http code: $curl_result \n");
if ($curl_result == 200) {
record_info("Successfully connected to the open-webui service at $curl_cmd \n");
} else {
die "Received unexpected HTTP error code $curl_result for $curl_cmd\n";
}
Copy link
Contributor

@m-dati m-dati Dec 18, 2024

Choose a reason for hiding this comment

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

Hi Yoga, please, in last commit you also added the assert_script_run("curl..., but that is the same command done below, then repeated twice, even not needed, because you already do the check of output, after script_output executed.

In a next Merge request, please, consider this kind update:

remove it:
assert_script_run("curl --output /dev/null --silent --head --write-out "%{http_code}\n" -k -L https://$host_name");

and replace the full block L244-L252 like that:

record_info("http check”, $host_name);
my $curl_cmd = "curl --output /dev/null --silent --head --write-out '%{http_code}\n' -k -L https://$host_name";
validate_script_output("$curl_cmd", qr/200/, fail_message => "Received unexpected HTTP error code from $host_name");

(replacing \" with ' in curl 🙂).

Thank you.

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