Skip to content
Snippets Groups Projects

gitlab-ci: Cope with OBS slowdown

Merged Emanuele Aina requested to merge wip/em/cope-with-slower-obs into master
Files
2
@@ -558,6 +558,10 @@ class Error(Exception):
pass
def hack_skip_obs():
return os.environ.get("SKIP_OBS") != "yes":
def is_stable_channel(channel):
if channel.endswith("pre"):
return False
@@ -906,7 +910,7 @@ class InvariantChecker:
logging.debug(
f"Checking if {package.name} branch {branch}/{source.component} is in {obsproject}"
)
if obsproject not in package.get("obs", {}):
if obsproject not in package.get("obs", {}) and not hack_skip_obs():
self.error(
package.name,
Report.OBS_PACKAGE_MISSING_BUT_ON_APT,
Loading