00:00
antranigv has joined #buildbot
00:04
jrodman has joined #buildbot
00:05
<
jrodman >
Hi, have more silly newbie questions. I'm trying to report automated build failure to slack. I made an HTTPStep that can talk to slack, but I'm having a lot of trouble figuring out how to either determine that the previous test step failed, or just conditionally running the HTTPStep to communicate the failure
00:06
<
jrodman >
there's clearly the doStepIf= param you can use when declaring the step, but my understanding is this takes a callable that is provided the Step object, and ..well.. it comes down to not really knowing what's in the step object
00:11
<
jrodman >
i can see some people discussing construction of properties conditionally from steps, but i can't find in the docs how this works
00:33
<
dol-sen >
test step should have flunkOnFailure parameter set, then on your slack step check the main build status
00:46
<
jrodman >
huh, the overall build is getting set to failure in the UI, so i assumed there was a failure status already somewhere
00:51
<
dol-sen >
there is, in fact all steps results can be accessed in a later step
00:52
<
dol-sen >
my memory sucks lately, so don't remember specifics, but you can get a list of all steps results and check any/all for failures
00:52
<
jrodman >
i was trying to poke around in the build object code to figure it out but .. i dunno it wasn't coming
00:53
<
jrodman >
regardless, buildstep.build.results works with the flunkOnFailure
00:56
<
dol-sen >
that one checks for timeout, but shows the basic doStepif
00:56
<
jrodman >
for what it's worth, getStatus() seems gone
00:57
<
dol-sen >
if you need to check a step x steps previous, you can check the result [x] steps back
00:58
<
dol-sen >
hmm, I think it was suppose to be [-x]
00:58
<
jrodman >
yeah if i could find the steps i wouuld probably have figured it out
00:58
<
jrodman >
this helps if i need it later
01:00
<
dol-sen >
you can always create a custom function that takes step as a parameter, then check pretty much anything already done
01:01
<
dol-sen >
sorry I can't give you more specifics, it's been about 5 years since I was doing bbot coding
01:31
<
jrodman >
yeah, it's obviously possible, i just didn't know how to do it, but .. today i don't need to know either
06:01
jrodman has quit [Quit: Client closed]
06:47
mjw has quit [*.net *.split]
06:47
deepy has quit [*.net *.split]
06:47
Humbedooh has quit [*.net *.split]
06:47
glogan has quit [*.net *.split]
06:47
sknebel has quit [*.net *.split]
06:47
verm__ has quit [*.net *.split]
06:47
benbrown has quit [*.net *.split]
06:47
Zorry has quit [*.net *.split]
06:47
Foxboron has quit [*.net *.split]
06:47
dustinm` has quit [*.net *.split]
06:47
cmouse has quit [*.net *.split]
06:47
skelly- has quit [*.net *.split]
06:47
alicef has quit [*.net *.split]
06:47
manx has quit [*.net *.split]
06:47
Zash has quit [*.net *.split]
06:47
immae has quit [*.net *.split]
06:47
felixfontein has quit [*.net *.split]
06:47
tflink has quit [*.net *.split]
06:47
dol-sen has quit [*.net *.split]
06:47
kveremitz has quit [*.net *.split]
06:47
p12tic has quit [*.net *.split]
06:47
wielaard has quit [*.net *.split]
06:47
yongxiang has quit [*.net *.split]
06:47
tardyp has quit [*.net *.split]
06:47
ammar2 has quit [*.net *.split]
06:47
thm has quit [*.net *.split]
06:47
dottedmag has quit [*.net *.split]
06:47
rjarry has quit [*.net *.split]
06:47
antranigv has quit [*.net *.split]
06:47
mpbridge has quit [*.net *.split]
06:47
zware has quit [*.net *.split]
06:47
flx[m] has quit [*.net *.split]
06:49
koobs has quit [*.net *.split]
06:49
vmeson has quit [*.net *.split]
06:50
manx has joined #buildbot
06:50
immae has joined #buildbot
06:50
thm has joined #buildbot
06:50
rjarry has joined #buildbot
06:50
dottedmag has joined #buildbot
06:50
yongxiang has joined #buildbot
06:50
tardyp has joined #buildbot
06:50
ammar2 has joined #buildbot
06:50
Zorry has joined #buildbot
06:50
cmouse has joined #buildbot
06:50
skelly- has joined #buildbot
06:50
Zash has joined #buildbot
06:50
verm__ has joined #buildbot
06:50
sknebel has joined #buildbot
06:50
alicef has joined #buildbot
06:50
dol-sen has joined #buildbot
06:50
felixfontein has joined #buildbot
06:50
Foxboron has joined #buildbot
06:50
dustinm` has joined #buildbot
06:50
Humbedooh has joined #buildbot
06:50
glogan has joined #buildbot
06:50
flx[m] has joined #buildbot
06:50
deepy has joined #buildbot
06:50
zware has joined #buildbot
06:50
p12tic has joined #buildbot
06:50
mpbridge has joined #buildbot
06:50
mjw has joined #buildbot
06:50
wielaard has joined #buildbot
06:50
antranigv has joined #buildbot
06:50
koobs has joined #buildbot
06:50
vmeson has joined #buildbot
06:50
tflink has joined #buildbot
06:50
benbrown has joined #buildbot
06:50
kveremitz has joined #buildbot
06:50
koobs has quit [*.net *.split]
06:50
vmeson has quit [*.net *.split]
06:50
mjw has quit [*.net *.split]
06:50
deepy has quit [*.net *.split]
06:50
Humbedooh has quit [*.net *.split]
06:50
glogan has quit [*.net *.split]
06:50
sknebel has quit [*.net *.split]
06:51
verm__ has quit [*.net *.split]
06:51
benbrown has quit [*.net *.split]
06:51
Zorry has quit [*.net *.split]
06:51
Foxboron has quit [*.net *.split]
06:51
dustinm` has quit [*.net *.split]
06:51
cmouse has quit [*.net *.split]
06:51
skelly- has quit [*.net *.split]
06:51
alicef has quit [*.net *.split]
06:51
manx has quit [*.net *.split]
06:51
Zash has quit [*.net *.split]
06:51
immae has quit [*.net *.split]
06:51
felixfontein has quit [*.net *.split]
06:51
tflink has quit [*.net *.split]
06:51
dol-sen has quit [*.net *.split]
06:51
kveremitz has quit [*.net *.split]
06:51
wielaard has quit [*.net *.split]
06:51
p12tic has quit [*.net *.split]
06:51
yongxiang has quit [*.net *.split]
06:51
tardyp has quit [*.net *.split]
06:51
ammar2 has quit [*.net *.split]
06:51
thm has quit [*.net *.split]
06:51
dottedmag has quit [*.net *.split]
06:51
rjarry has quit [*.net *.split]
06:51
antranigv has quit [*.net *.split]
06:51
mpbridge has quit [*.net *.split]
06:51
zware has quit [*.net *.split]
06:51
flx[m] has quit [*.net *.split]
06:56
zware has joined #buildbot
06:56
rjarry has joined #buildbot
06:56
thm has joined #buildbot
06:56
skelly- has joined #buildbot
06:56
dottedmag has joined #buildbot
06:56
yongxiang has joined #buildbot
06:56
ammar2 has joined #buildbot
06:56
tflink has joined #buildbot
06:56
felixfontein has joined #buildbot
06:56
dol-sen has joined #buildbot
06:56
sknebel has joined #buildbot
06:56
verm__ has joined #buildbot
06:56
alicef has joined #buildbot
06:56
immae has joined #buildbot
06:56
manx has joined #buildbot
06:56
tardyp has joined #buildbot
06:56
kveremitz has joined #buildbot
06:56
Zash has joined #buildbot
06:56
benbrown has joined #buildbot
06:56
deepy has joined #buildbot
06:56
Zorry has joined #buildbot
06:56
Humbedooh has joined #buildbot
06:56
cmouse has joined #buildbot
06:56
dustinm` has joined #buildbot
06:56
Foxboron has joined #buildbot
06:56
wielaard has joined #buildbot
06:56
mjw has joined #buildbot
06:56
mpbridge has joined #buildbot
06:56
p12tic has joined #buildbot
06:56
koobs has joined #buildbot
06:56
antranigv has joined #buildbot
06:56
vmeson has joined #buildbot
06:57
mjw has quit [*.net *.split]
06:57
deepy has quit [*.net *.split]
06:57
Humbedooh has quit [*.net *.split]
06:57
sknebel has quit [*.net *.split]
06:57
verm__ has quit [*.net *.split]
06:57
benbrown has quit [*.net *.split]
06:57
Zorry has quit [*.net *.split]
06:57
Foxboron has quit [*.net *.split]
06:57
cmouse has quit [*.net *.split]
06:57
dustinm` has quit [*.net *.split]
06:57
skelly- has quit [*.net *.split]
06:57
alicef has quit [*.net *.split]
06:57
manx has quit [*.net *.split]
06:57
immae has quit [*.net *.split]
06:57
Zash has quit [*.net *.split]
06:57
felixfontein has quit [*.net *.split]
06:57
dol-sen has quit [*.net *.split]
06:57
tflink has quit [*.net *.split]
06:57
kveremitz has quit [*.net *.split]
06:57
wielaard has quit [*.net *.split]
06:57
p12tic has quit [*.net *.split]
06:57
yongxiang has quit [*.net *.split]
06:57
tardyp has quit [*.net *.split]
06:57
ammar2 has quit [*.net *.split]
06:57
thm has quit [*.net *.split]
06:57
mpbridge has quit [*.net *.split]
06:57
dottedmag has quit [*.net *.split]
06:57
rjarry has quit [*.net *.split]
06:57
antranigv has quit [*.net *.split]
06:57
zware has quit [*.net *.split]
06:58
wielaard has joined #buildbot
06:58
antranigv has joined #buildbot
06:58
mpbridge has joined #buildbot
06:58
deepy has joined #buildbot
06:58
mjw has joined #buildbot
06:58
Humbedooh has joined #buildbot
06:58
p12tic has joined #buildbot
06:58
zware has joined #buildbot
06:58
cmouse has joined #buildbot
06:58
dustinm` has joined #buildbot
06:58
Zorry has joined #buildbot
06:58
Foxboron has joined #buildbot
06:58
verm__ has joined #buildbot
06:58
benbrown has joined #buildbot
06:58
skelly- has joined #buildbot
06:58
sknebel has joined #buildbot
06:58
immae has joined #buildbot
06:58
felixfontein has joined #buildbot
06:58
manx has joined #buildbot
06:58
kveremitz has joined #buildbot
06:58
Zash has joined #buildbot
06:58
alicef has joined #buildbot
06:58
tflink has joined #buildbot
06:58
tardyp has joined #buildbot
06:58
dol-sen has joined #buildbot
06:58
ammar2 has joined #buildbot
06:58
dottedmag has joined #buildbot
06:58
yongxiang has joined #buildbot
06:58
rjarry has joined #buildbot
06:58
thm has joined #buildbot
07:03
mjw has quit [Killed (NickServ (GHOST command used by wielaard!~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440))]
07:04
mjw has joined #buildbot
07:04
mjw has quit [Killed (NickServ (GHOST command used by wielaard!~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440))]
07:04
wielaard is now known as mjw
07:04
mark__ has joined #buildbot
07:53
verm__ has quit [Read error: Connection reset by peer]
07:53
verm__ has joined #buildbot
09:13
flx[m] has joined #buildbot
11:41
glogan has joined #buildbot
16:41
mjw has quit [Killed (NickServ (GHOST command used by mark__!~mark@gnu.wildebeest.org))]
16:41
mark__ is now known as mjw
16:41
wielaard has joined #buildbot
18:26
<
thm >
in case of a shallow clone, the Git step does a "git checkout -f <rev>", which is bad, as it leaves the git in detached HEAD state.
18:27
<
thm >
wouldn't it be better to do additionally do a "git checkout -B <branch>" afterwards?