summaryrefslogtreecommitdiff
path: root/commands/single.go (follow)
Commit message (Expand)AuthorAgeFilesLines
* Store temporary traces on diskKamil Trzciński2019-04-251-1/+5
* Remove unnecessary log alias for logrus inport•••Some time ago [we had a discussion](https://gitlab.com/gitlab-org/gitlab-runner/merge_requests/934#note_91891281) about why we're aliasing some of the imports of `github.com/sirupsen/logrus` package with a `log` alias. At that moment we've been doing that in 17 from 68 cases when logrus was imported in Runners codebase. The conclusion was this aliasing is unnecessary, because: - we relay on logrus interface so much that moving to another logging library will be not so simple as switching the import name; - we're totally not consistent in the alias usage which makes the code even more messy. Three GitLab Runner maintainers agreeded hat there is no reason to use the aliasing and that we should just use `logrus` everywhere. But no action was don since then. The cleanup was left for a future. Unfortunately, because GitLab Runner is one of our biggest projects in Go, for some people it becomes a source of suggestions of how certain things should be handled. For example here is a discussion in a new project that creates a go-based tool for our Serverless integration: https://gitlab.com/gitlab-org/gitlabktl/merge_requests/9#note_152472275 The most important statement is: > perhaps we could leave it as is since it is how we are exposing logrus in the runner project Because we already know that it should be changed and others start to look on Runner's code to find good patterns, let's finally cleanup the `log` aliasing mess. Tomasz Maczukin2019-03-211-15/+15
* Correct spelling of timed out in literalsKarl-Philipp Richter2019-02-171-1/+1
* Prevent Executors from modifying Runner configurationSt. John Johnson2019-01-231-2/+9
* Fix job duration countingTomasz Maczukin2018-09-261-7/+1
* CI Web TerminalFrancisco Javier López 🌴 On vacation; back on August 22th!2018-08-141-1/+1
* sed 's/Sirupsen\/logrus/sirupsen\/logrus/g'Alessio Caiazza2018-02-231-1/+1
* Add NoneFailure reasonTomasz Maczukin2017-12-181-1/+1
* Add failure_reason basic implementationShinya Maeda2017-12-181-1/+1
* Fix randomly failing test from commands/single_test.goTomasz Maczukin2017-09-131-13/+16
* Rename 2nd iteration: rename importsTomasz Maczukin2017-09-111-2/+2
* Refactor RunSingleCommand testsAlessio Caiazza2017-08-221-4/+4
* Fix race condition in single runnerAlessio Caiazza2017-08-221-8/+9
* Swap codegangsta for urfaveZeger-Jan van de Weg2017-08-221-1/+1
* Rename trace related codeTomasz Maczukin2017-03-161-7/+7
* Rename BuildResponse and BuildRequestTomasz Maczukin2017-03-161-5/+5
* Rename common.BuildCredentials common.JobCredentialsTomasz Maczukin2017-03-151-1/+1
* Use NewGitLabClient() instead of explicit GitLabClient{}Tomasz Maczukin2017-03-151-1/+1
* Add a --max-builds option that will control the number of jobs a single runne...•••The default (zero) means that the runner will run forever. Also implement a --wait-timeout option for the single executor, which if non-zero, specifies how long the executor will wait between jobs. Closes gitlab-org/gitlab-ci-multi-runner#1211 Andrew Chin2016-12-201-4/+36
* Spelling corrections (codespell).Dmitry Smirnov2016-08-051-1/+1
* Solve very rare case resulting in dead-lock when cancelling a build•••It's possible that we will block on Notify anonymous function, when the select loop a few lines below gets finished. It will happen, because we use unbuffered channel, but don't have a possibility to consume it. Thus this will block trace sending routing. Trace sending routine will not finish, thus it will block trace.Success/Fail resulting in ability to cleanup a executor and releasing a machine. This also renames BuildAbort to SystemInterrupt which is more accurate and makes a timeout a BuildError instead of SystemError. Kamil Trzcinski2016-07-171-1/+1
* Merge remote-tracking branch 'origin/master' into feature/incremental-trace-u...Kamil Trzcinski2016-06-161-1/+1
|\
| * Push runners in equal intervals to the workers queueKamil Trzcinski2016-06-151-1/+1
* | Replace common.GetBuildResponse with common.BuildCredentials in build processingTomasz Maczukin2016-06-081-1/+5
* | Add range handling at trace uploadTomasz Maczukin2016-06-081-1/+1
|/
* Remove the usage of Network in context of Build, Executor and ShellKamil Trzcinski2016-03-121-1/+0
* Fixes the #1078Kamil Trzcinski2016-02-291-1/+0
* Refactor build trace handlingKamil Trzcinski2016-02-081-2/+7
* Introduce Acquire/Release to Executor•••- This allow to allocate resources in context of executor for time of fetching the builds Kamil Trzcinski2016-02-071-2/+14
* Reduce code complexityKamil Trzcinski2016-02-061-56/+65
* Fix segmentation faultKamil Trzcinski2015-11-211-0/+1
* Move network related code to separate class•••- Always use request body to send runner credentials Kamil Trzcinski2015-11-201-2/+6
* Fix compilation errorKamil Trzcinski2015-08-231-1/+1
* Added support for SIGQUIT to allow to gracefully finish runner: runner will n...Kamil Trzcinski2015-08-231-2/+9
* Update command line interface•••- Automatically provide command line options for all structure fields - Make register expose all options - Rewrite all other commands to use a new command processing scheme Kamil Trzcinski2015-08-181-106/+11
* Pass common.Config to Executor::PrepareKamil Trzcinski2015-07-111-1/+2
* Change github.com/ayufan/gitlab-ci-multi-runner to gitlab.com/gitlab-org/gitl...Kamil Trzcinski2015-05-031-1/+1
* Make most of the config options optionalKamil Trzcinski2015-04-291-2/+4
* Fixed critical concurrency issueKamil Trzcinski2015-04-011-2/+2
* Single-run mode handles now signalsKamil Trzcinski2015-03-281-4/+44
* Use kardianos/service moduleKamil Trzcinski2015-03-271-8/+7
* Added default shell to single modeKamil Trzcinski2015-03-271-0/+7
* Make golint happy: constsKamil Trzcinski2015-03-201-1/+1
* Make golint happy: commands/Kamil Trzcinski2015-03-201-8/+8
* Abort all jobs if interrupt or SIGTERM is receivedKamil Trzcinski2015-03-121-1/+1
* Multi runner can run jobs on HerokuKamil Trzcinski2015-03-101-2/+79
* Fixed single buildsKamil Trzcinski2015-03-101-0/+1
* Refactor sourcesKamil Trzcinski2015-02-121-0/+61