Skip to content
Snippets Groups Projects
Commit 5569c481 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

HACK: Skip OBS scanning by default

The OBS 2.10 update made things sensibly slower, causing timeouts in the
packaging-data-fetch-obs job. Disable it for now.

Set `SKIP_OBS` to `no` to run the job again.

See https://phabricator.apertis.org/T8880



Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent c7e1c8bc
No related branches found
No related tags found
No related merge requests found
Pipeline #377969 failed
This commit is part of merge request !111. Comments created here will be created in the context of that merge request.
......@@ -18,6 +18,13 @@ variables:
For instance use `*` to process all updates, `dash` to only process `pkg/dash`.
Leave it empty to not trigger any update.
value: ""
SKIP_OBS:
description: |
The OBS 2.10 update made things sensibly slower, causing timeouts in the
packaging-data-fetch-obs job. Disable it for now.
See https://phabricator.apertis.org/T8880
value: "yes"
stages:
- lint
......@@ -214,6 +221,8 @@ packaging-data-fetch-obs:
paths:
- packaging-data-obs.yaml
rules:
- if: $SKIP_OBS == "yes"
when: never
- if: $TRIGGER_FROM_JOB
when: never
- if: $CI_PIPELINE_SOURCE != "merge_request_event"
......@@ -263,6 +272,8 @@ packaging-check-invariants:
python3-gitlab
python3-yaml
script:
- |
test "$SKIP_OBS" = yes && touch packaging-data-obs.yaml
- ./bin/yaml-merge
--input packaging-data-downstream.yaml
--input packaging-data-sources-upstream.yaml
......
......@@ -2,6 +2,7 @@
import argparse
import logging
import os
import debian.debian_support
import yaml
......@@ -558,6 +559,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 +911,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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment