Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
slapos.toolbox
Commits
9d7405cc
Commit
9d7405cc
authored
Feb 22, 2017
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkfeedaspromise: returns more information on failure
parent
cffae9cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
slapos/checkfeedaspromise.py
slapos/checkfeedaspromise.py
+4
-3
No files found.
slapos/checkfeedaspromise.py
View file @
9d7405cc
...
@@ -72,7 +72,8 @@ def checkFeedAsPromise(feed, option):
...
@@ -72,7 +72,8 @@ def checkFeedAsPromise(feed, option):
return
''
return
''
if
ko_pattern_found
:
if
ko_pattern_found
:
return
'KO pattern found'
return
(
"At least one of the failure patterns (%s) "
"has been found in the last status (%s)"
%
(
option
.
ko_pattern_list
,
candidate_string
))
if
not
ok_pattern_found
:
if
not
ok_pattern_found
:
if
publication_age
<
time_buffer
:
if
publication_age
<
time_buffer
:
...
@@ -80,10 +81,10 @@ def checkFeedAsPromise(feed, option):
...
@@ -80,10 +81,10 @@ def checkFeedAsPromise(feed, option):
return
''
return
''
else
:
else
:
# If time-buffer is out, we are in stalled state
# If time-buffer is out, we are in stalled state
return
'Stalled situation :
Nothing happened since %s'
%
publication_date
return
'Stalled situation :
Last update (%s) happened on %s'
%
(
candidate_string
,
publication_date
)
# If not ok, and not stalled, what can have possibly happen ?
# If not ok, and not stalled, what can have possibly happen ?
return
'Something went wrong'
return
'Something went wrong
, check promise code
'
def
main
():
def
main
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment