diff --git a/internal/executor/executor.go b/internal/executor/executor.go index 8aba824..b5cc03e 100644 --- a/internal/executor/executor.go +++ b/internal/executor/executor.go @@ -696,11 +696,13 @@ func getStepCommand(step *core.Step) string { parts = append(parts, fmt.Sprintf("step: %s (%s)", step.Step.Name, step.Step.Type)) } } - threads, _ := step.Threads.Int() - if threads <= 0 { - threads = 1 + // Emit the raw threads value so template variables (e.g. {{deparosParallel}}) + // are resolved later by templateEngine.Render; Int() can't parse an unrendered template. + threadsStr := strings.TrimSpace(string(step.Threads)) + if threadsStr == "" { + threadsStr = "1" } - parts = append(parts, fmt.Sprintf("threads: %d", threads)) + parts = append(parts, fmt.Sprintf("threads: %s", threadsStr)) return strings.Join(parts, " | ") } @@ -735,11 +737,13 @@ func getStepCommandColored(step *core.Step) string { firstLineParts = append(firstLineParts, fmt.Sprintf("pre_process: %s", terminal.Gray(step.VariablePreProcess))) } - threads, _ := step.Threads.Int() - if threads <= 0 { - threads = 1 + // Emit the raw threads value so template variables (e.g. {{deparosParallel}}) + // are resolved later by templateEngine.Render; Int() can't parse an unrendered template. + threadsStr := strings.TrimSpace(string(step.Threads)) + if threadsStr == "" { + threadsStr = "1" } - firstLineParts = append(firstLineParts, fmt.Sprintf("threads: %s", terminal.Yellow(fmt.Sprintf("%d", threads)))) + firstLineParts = append(firstLineParts, fmt.Sprintf("threads: %s", terminal.Yellow(threadsStr))) lines = append(lines, strings.Join(firstLineParts, terminal.Gray(" | "))) // Second line: step: name (type) diff --git a/pkg/cli/run.go b/pkg/cli/run.go index 5d663bc..6498711 100644 --- a/pkg/cli/run.go +++ b/pkg/cli/run.go @@ -1562,7 +1562,8 @@ func printResultSummary(result *core.WorkflowResult) { printMarkdownTable([]string{terminal.Bold("Status"), terminal.Bold("Step"), terminal.Bold("Duration")}, rows, "clc") } - if len(result.Artifacts) > 0 { + // Only list artifacts (state/log files) in verbose mode (-v); they clutter normal output. + if verbose && len(result.Artifacts) > 0 { fmt.Println() fmt.Println(terminal.ListSymbol() + " " + terminal.Bold("Artifacts:")) for _, artifact := range result.Artifacts { diff --git a/public/ui/404.html b/public/ui/404.html index 58d234a..9edd835 100644 --- a/public/ui/404.html +++ b/public/ui/404.html @@ -1 +1 @@ -
=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=q);for(var n=this._groups,r=n.length,o=Array(r),i=0;i =0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=q);for(var n=this._groups,r=n.length,o=Array(r),i=0;i{var r=e.r(12447);t.exports=function(e){return e==e&&!r(e)}},41903,(e,t,n)=>{var r=e.r(15782),o=e.r(33679);t.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},65570,(e,t,n)=>{t.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},32927,(e,t,n)=>{var r=e.r(48299),o=e.r(41903),i=e.r(65570);t.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},61884,(e,t,n)=>{var r=e.r(77684),o=e.r(77289);t.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},9903,(e,t,n)=>{var r=e.r(45350),o=e.r(61884),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},57588,(e,t,n)=>{var r=e.r(87547);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},88832,(e,t,n)=>{var r=e.r(57588);t.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},2677,(e,t,n)=>{var r=e.r(88832),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t})},92708,(e,t,n)=>{t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n{var r=e.r(56751),o=e.r(24251),i=e.r(10504);t.exports=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i},51994,(e,t,n)=>{var r=Date.now;t.exports=function(e){var t=0,n=0;return function(){var o=r(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},84665,(e,t,n)=>{var r=e.r(1647);t.exports=e.r(51994)(r)},95059,(e,t,n)=>{var r=e.r(10504),o=e.r(72953),i=e.r(84665);t.exports=function(e,t){return i(o(e,t,r),e+"")}},56445,(e,t,n)=>{t.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i{var r=e.r(81829),o=e.r(76590);t.exports=function(e,t){return r(e,t,function(t,n){return o(e,n)})}},6227,(e,t,n)=>{var r=e.r(72810),o=e.r(72953),i=e.r(84665);t.exports=function(e){return i(o(e,void 0,r),e+"")}},80210,(e,t,n)=>{var r=e.r(13879);t.exports=e.r(6227)(function(e,t){return null==e?{}:r(e,t)})},93440,(e,t,n)=>{var r=Math.ceil,o=Math.max;t.exports=function(e,t,n,i){for(var a=-1,s=o(r((t-e)/(n||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=n;return l}},69523,(e,t,n)=>{var r=e.r(93440),o=e.r(70237),i=e.r(82560);t.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t=l)return u;return u*("desc"==n[o]?-1:1)}}return e.index-t.index}},28138,(e,t,n)=>{var r=e.r(92708),o=e.r(33141),i=e.r(66305),a=e.r(7073),s=e.r(83629),l=e.r(33999),u=e.r(58322),c=e.r(10504),d=e.r(45350);t.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[c];var f=-1;return t=r(t,l(i)),s(a(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return u(e,t,n)})}},31195,(e,t,n)=>{var r=e.r(41891),o=e.r(28138),i=e.r(95059),a=e.r(70237);t.exports=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])})},85658,(e,t,n)=>{var r=e.r(2922),o=0;t.exports=function(e){var t=++o;return r(e)+t}},89726,(e,t,n)=>{t.exports=function(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r{"use strict";var r=e.r(11994),o=e.r(80897),i=e.r(69298).positionX;t.exports=function(e){var t,n,a,s;t=e=o.asNonCompoundGraph(e),n=o.buildLayerMatrix(t),a=t.graph().ranksep,s=0,r.forEach(n,function(e){var n=r.max(r.map(e,function(e){return t.node(e).height}));r.forEach(e,function(e){t.node(e).y=s+n/2}),s+=n+a}),r.forEach(i(e),function(t,n){e.node(n).x=t})}},77040,(e,t,n)=>{"use strict";var r=e.r(11994),o=e.r(28155),i=e.r(21810),a=e.r(60106),s=e.r(80897).normalizeRanks,l=e.r(31662),u=e.r(80897).removeEmptyRanks,c=e.r(40786),d=e.r(8889),f=e.r(75175),h=e.r(94432),p=e.r(66162),g=e.r(80897),m=e.r(40576).Graph;t.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",function(){var t=n(" buildLayoutGraph",function(){var t,n,o;return t=e,n=new m({multigraph:!0,compound:!0}),o=N(t.graph()),n.setGraph(r.merge({},y,E(o,v),r.pick(o,x))),r.forEach(t.nodes(),function(e){var o=N(t.node(e));n.setNode(e,r.defaults(E(o,b),w)),n.setParent(e,t.parent(e))}),r.forEach(t.edges(),function(e){var o=N(t.edge(e));n.setEdge(e,r.merge({},j,E(o,_),r.pick(o,k)))}),n});n(" runLayout",function(){var e,m;e=t,(m=n)(" makeSpaceForEdgeLabels",function(){var t,n;n=(t=e).graph(),n.ranksep/=2,r.forEach(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),m(" removeSelfEdges",function(){var t;t=e,r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),m(" acyclic",function(){o.run(e)}),m(" nestingGraph.run",function(){c.run(e)}),m(" rank",function(){a(g.asNonCompoundGraph(e))}),m(" injectEdgeLabelProxies",function(){var t;t=e,r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),o={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",o,"_ep")}})}),m(" removeEmptyRanks",function(){u(e)}),m(" nestingGraph.cleanup",function(){c.cleanup(e)}),m(" normalizeRanks",function(){s(e)}),m(" assignRankMinMax",function(){var t,n;t=e,n=0,r.forEach(t.nodes(),function(e){var o=t.node(e);o.borderTop&&(o.minRank=t.node(o.borderTop).rank,o.maxRank=t.node(o.borderBottom).rank,n=r.max(n,o.maxRank))}),t.graph().maxRank=n}),m(" removeEdgeLabelProxies",function(){var t;t=e,r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),m(" normalize.run",function(){i.run(e)}),m(" parentDummyChains",function(){l(e)}),m(" addBorderSegments",function(){d(e)}),m(" order",function(){h(e)}),m(" insertSelfEdges",function(){var t,n;t=e,n=g.buildLayerMatrix(t),r.forEach(n,function(e){var n=0;r.forEach(e,function(e,o){var i=t.node(e);i.order=o+n,r.forEach(i.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++n,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}),m(" adjustCoordinateSystem",function(){f.adjust(e)}),m(" position",function(){p(e)}),m(" positionSelfEdges",function(){var t;t=e,r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}})}),m(" removeBorderNodes",function(){var t;t=e,r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),o=t.node(n.borderTop),i=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}),m(" normalize.undo",function(){i.undo(e)}),m(" fixupEdgeLabelCoords",function(){var t;t=e,r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),m(" undoCoordinateSystem",function(){f.undo(e)}),m(" translateGraph",function(){!function(e){var t=1/0,n=0,o=1/0,i=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function u(e){var r=e.x,a=e.y,s=e.width,l=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),o=Math.min(o,a-l/2),i=Math.max(i,a+l/2)}r.forEach(e.nodes(),function(t){u(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.has(n,"x")&&u(n)}),t-=s,o-=l,r.forEach(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=o}),r.forEach(e.edges(),function(n){var i=e.edge(n);r.forEach(i.points,function(e){e.x-=t,e.y-=o}),r.has(i,"x")&&(i.x-=t),r.has(i,"y")&&(i.y-=o)}),a.width=n-t+s,a.height=i-o+l}(e)}),m(" assignNodeIntersects",function(){var t;t=e,r.forEach(t.edges(),function(e){var n,r,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(g.intersectRect(i,n)),o.points.push(g.intersectRect(a,r))})}),m(" reversePoints",function(){var t;t=e,r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}),m(" acyclic.undo",function(){o.undo(e)})}),n(" updateInputGraph",function(){var n,o;n=e,o=t,r.forEach(n.nodes(),function(e){var t=n.node(e),r=o.node(e);t&&(t.x=r.x,t.y=r.y,o.children(e).length&&(t.width=r.width,t.height=r.height))}),r.forEach(n.edges(),function(e){var t=n.edge(e),i=o.edge(e);t.points=i.points,r.has(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=o.graph().width,n.graph().height=o.graph().height})})};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},x=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function E(e,t){return r.mapValues(r.pick(e,t),Number)}function N(e){var t={};return r.forEach(e,function(e,n){t[n.toLowerCase()]=e}),t}},15400,(e,t,n)=>{var r=e.r(11994),o=e.r(80897),i=e.r(40576).Graph;t.exports={debugOrdering:function(e){var t=o.buildLayerMatrix(e),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),r.forEach(e.edges(),function(e){n.setEdge(e.v,e.w,{},e.name)}),r.forEach(t,function(e,t){n.setNode("layer"+t,{rank:"same"}),r.reduce(e,function(e,t){return n.setEdge(e,t,{style:"invis"}),t})}),n}}},51581,(e,t,n)=>{t.exports="0.8.5"},39669,(e,t,n)=>{t.exports={graphlib:e.r(40576),layout:e.r(77040),debug:e.r(15400),util:{time:e.r(80897).time,notime:e.r(80897).notime},version:e.r(51581)}},72592,e=>{"use strict";var t,n,r,o,i,a,s,l,u,c,d,f,h,p,g,m,v,y=e.i(43476),x=e.i(71645),b=e.i(22016),w=e.i(67881),_=e.i(94179),j=e.i(71428);function k(e){if("string"==typeof e||"number"==typeof e)return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n