Skip to content
Snippets Groups Projects
Commit 05d6a8db authored by Dmitry Petrov's avatar Dmitry Petrov
Browse files

fullbuildpipeline.py: fix timeout

The problem was found in pipeline:
https://git.seco.com/seco-ne/yocto/manifest/-/jobs/954246

Fix missing update of upstream pipeline status inside while loop.

The timeout in the script was not in sync with the default timeout for build jobs.
Set timeout in __get_build_pipelines() function to 8 hours.
parent 3077d252
No related branches found
No related tags found
1 merge request!395CI: handle_artifacts,image_diff: various fixes for pipeline in charge of preserving build artifacts
......@@ -64,7 +64,7 @@ build:
report-image-diff:
extends: .infrastructure
stage: manifest-integration-jobs
timeout: 1h
timeout: 8h
needs: ["build"]
rules:
# Do not run build if the "skip build" label is set on the merge request
......
......@@ -61,8 +61,8 @@ class FullBuildPipeline:
the value is a tuple of downstream jobs.
"""
timeout = 3000 # 50 min
check_interval = 30
timeout = 28800 # 8 hours
check_interval = 60
not_rdy_status = ["created", "pending", "running"]
if self.upstream_pipeline.status in not_rdy_status:
......@@ -77,6 +77,7 @@ class FullBuildPipeline:
timeout -= check_interval
if timeout < 0:
sys.exit("timeout")
self.upstream_pipeline = self.__get_upstream_pipeline()
ret = {}
for bridge in self.upstream_pipeline.bridges.list():
......
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