mirror of
https://github.com/urbit/shrub.git
synced 2024-09-11 12:25:43 +03:00
Merge pull request #6918 from urbit/pkova/error-building
ci: red checkmark if any thread fails to build
This commit is contained in:
parent
315fe21be8
commit
2af43c2219
@ -92,6 +92,7 @@ in pkgs.stdenvNoCC.mkDerivation {
|
||||
${click} -k -p -i ${pokeApp "%agents" "noun" "test"} ./pier
|
||||
${click} -k -p -i ${pokeApp "%generators" "noun" "test"} ./pier
|
||||
${click} -k -p -i ${pokeApp "%marks" "noun" "test"} ./pier
|
||||
${click} -k -p -i ${pokeApp "%threads" "noun" "test"} ./pier
|
||||
|
||||
${click} -k -p -i ${appThread "mass" "hood"} ./pier
|
||||
sleep 2
|
||||
|
@ -2,7 +2,7 @@
|
||||
!:
|
||||
|%
|
||||
+$ card card:agent:gall
|
||||
+$ test ?(%agents %marks %generators)
|
||||
+$ test ?(%agents %marks %generators %threads)
|
||||
+$ state
|
||||
$: app=(set path)
|
||||
app-ok=?
|
||||
@ -10,6 +10,8 @@
|
||||
mar-ok=?
|
||||
gen=(set path)
|
||||
gen-ok=?
|
||||
ted=(set path)
|
||||
ted-ok=?
|
||||
==
|
||||
--
|
||||
=, format
|
||||
@ -29,9 +31,10 @@
|
||||
|^
|
||||
=+ !<(=test vase)
|
||||
?- test
|
||||
%marks test-marks
|
||||
%agents test-agents
|
||||
%marks test-marks
|
||||
%agents test-agents
|
||||
%generators test-generators
|
||||
%threads test-threads
|
||||
==
|
||||
::
|
||||
++ test-marks
|
||||
@ -100,6 +103,25 @@
|
||||
gen.state (~(put in gen.state) i.paz)
|
||||
==
|
||||
::
|
||||
++ test-threads
|
||||
=| fex=(list card)
|
||||
^+ [fex this]
|
||||
?> =(~ ted.state)
|
||||
=. ted-ok.state %.y
|
||||
=+ .^(paz=(list path) ct+(en-beam now-beak /ted))
|
||||
|- ^+ [fex this]
|
||||
?~ paz [(flop fex) this]
|
||||
=/ xap=path (flop i.paz)
|
||||
?. ?=([%hoon *] xap)
|
||||
$(paz t.paz)
|
||||
=/ sing=card
|
||||
:+ %pass build+i.paz
|
||||
[%arvo %c %warp our.bowl q.byk.bowl ~ %sing %a da+now.bowl i.paz]
|
||||
%_ $
|
||||
paz t.paz
|
||||
fex [sing fex]
|
||||
ted.state (~(put in ted.state) i.paz)
|
||||
==
|
||||
++ now-beak %_(byk.bowl r [%da now.bowl])
|
||||
--
|
||||
++ on-watch on-watch:def
|
||||
@ -150,6 +172,15 @@
|
||||
~? =(~ gen.state)
|
||||
?:(gen-ok.state %all-generators-built %some-generators-failed)
|
||||
[~ this]
|
||||
::
|
||||
[%ted *]
|
||||
=/ ok ?=(^ p.sign-arvo)
|
||||
%- (report path ok)
|
||||
=? ted-ok.state !ok %.n
|
||||
=. ted.state (~(del in ted.state) path)
|
||||
~? =(~ ted.state)
|
||||
?:(ted-ok.state %all-threads-built %some-threads-failed)
|
||||
[~ this]
|
||||
==
|
||||
++ on-fail on-fail:def
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user