Skip to content

Conversation

@r-richardson
Copy link
Contributor

Previously we attempted git_clone including get_origin_url on non-repos or undefined remotes, causing failures before outage handling kicks in.

This PR makes it so we verify repos/URLs first.

Also i sringified the error object in order to make the regex check more reliable.

Related progress issue: https://progress.opensuse.org/issues/190410

Previously we attempted git_clone including get_origin_url on non-repos or undefined
remotes, causing failures before outage handling kicks in.

This PR makes it so we verify repos/URLs first.

Also i sringified the error object in order to make the regex check more
reliable.

Related progress issue: https://progress.opensuse.org/issues/190410
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.

s/i sringified/I stringified/

next;
}
catch ($e) { $error = $e }
catch ($e) { $error = "$e" }
Copy link
Contributor

Choose a reason for hiding this comment

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

In perl, if applied to a regex, a variable is automatically stringified, so that should not be necessary

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.

Have you researched which job was responsible for this minion job failure?
According to the timestamp it must have been https://openqa.suse.de/tests/19332466#settings
which has no distri set.
I think the git_clone task is correct in general, but we should avoid enqueuing jobs if there is no distri.
So probably around here in create_git_clone_list:
https://github.com/os-autoinst/openQA/blob/master/lib/OpenQA/Utils.pm#L544

@perlpunk
Copy link
Contributor

And the according ticket for the "Failed to get origin url (/var/lib/openqa/share/tests): fatal: not a git repository" is actually https://progress.opensuse.org/issues/190686

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.

3 participants