aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
AgeCommit message (Collapse)AuthorLines
2022-01-22allow adding job to front of queueOliver Giles-22/+22
laminarc now supports {queue,start,run} --next to place the job at the front of the queue instead of at the end. resolves #162
2021-12-05display run number for queued jobsOliver Giles-2/+2
in the frontend and in laminarc queue/show-queued. This makes it much easier to abort/unqueue runs which have not yet started. resolves #155
2020-12-09Update client.cpp (#137)Alex Myczko-1/+1
fix typo
2020-12-05remove old trigger command1.0Oliver Giles-3/+1
it has been deprecated for a while now
2020-09-25assign run numbers at queue timeOliver Giles-1/+2
This allows build chains to be traced in the common case where an upstream job calls `laminarc queue' instead of `laminarc start'. Incomplete job runs now have database entries, which requires some adjustments in queries. Queued jobs can now be viewed in the frontend and there is a corresponding status icon.
2020-07-03downstream link signal only within job0.9Oliver Giles-3/+9
only add the private ANSI sequence to the output of laminarc start/run commands used for adding a hyperlink to the frontend if we are within a job execution (tested with __LAMINAR_SETENV_PIPE). this makes parsing the output easier, which is likely to be more common when laminarc is invoked externally
2020-07-03fix minor compile warningsOliver Giles-1/+1
2020-07-03report version and usage messagesOliver Giles-4/+30
add -h|--help usage messages to laminarc and laminard add a mechanism to compile in a version number, and display the version in the help messages and in the frontend. resolves #119
2020-06-14laminarc: correct variable lifetime of show-jobs etcOliver Giles-3/+6
the one-liner used to iterate on the results of the RPC calls for show-jobs, show-queued and show-running meant that the result collection was destroyed before we finished with it. Hoist it out of the loop. resolves #127
2020-04-25laminarc: improve exit codes and errorsOliver Giles-28/+30
- return non-zero when failed to connect to laminard - only output trigger links on successful trigger - better error messages Resolves #121
2019-12-23job leader processOliver Giles-14/+4
Implement a separate process, the "leader", which runs all the scripts for a job run, instead of directly from the main laminard process. This makes for a cleaner process tree view, where the owning job for a given script is clear; also the leader process acts as a subreaper to clean up any wayward descendent processes. Resolves #78.
2019-07-04add uint typedefOliver Giles-0/+3
Needed for musl
2019-04-11laminarc: more explicit return codesOliver Giles-17/+18
2018-10-12resolves #67: laminarc list jobsOliver Giles-2/+36
Implements the following laminarc commands: - show-jobs - show-running - show-queued - abort
2018-09-30resolves #61: clickable up/downstream triggersOliver Giles-19/+21
Recognises triggers in build logs and converts them to hyperlinks. Also separates upstream job from reason string and allows both to be provided
2018-09-28resolves #63: remove locksOliver Giles-8/+0
Add an example to the User Manual for using flock instead
2018-05-12resolves #36: queue/start/runOliver Giles-8/+33
2018-04-06laminarc: replace start with runOliver Giles-4/+7
2018-04-06resolves #33: laminar start output should reference run numberOliver Giles-8/+11
2017-12-09Fix copyright yearsOliver Giles-1/+1
This reverts commit 4e911756bcca87111b3285aadc808dee3c32ec63. In addition, copyright years are now expressed in the form of (year file added)-(year file last changed)
2017-11-07typopalica-1/+1
2017-08-16use shorter build vars in traditional styleOliver Giles-5/+5
2017-08-15laminarc: read LAMINAR_BIND_RPCOliver Giles-1/+1
2017-08-15align abstract socket address syntax to new capnpOliver Giles-3/+1
2017-08-10refactor: remove transport knowledge from Laminar classOliver Giles-7/+0
Improve the boundary between RpcImpl and LaminarInterface such that the Laminar class doesn't require any types from kj/async.h. The necessary logic moved from Laminar to RpcImpl and the notification now happens by abstract virtual callback instead of kj::Promise. Also remove the fairly useless 'wait' RPC call and drop the wrappers around kj::PromiseFulfillerPair
2017-08-10implement general-purpose locksOliver Giles-0/+8
2016-07-25update copyright yearOliver Giles-1/+1
2015-11-01client: when job fails, still wait for others to completeOliver Giles-2/+4
2015-09-13Initial commitOliver Giles-0/+165