summaryrefslogtreecommitdiff
path: root/lib/ci/api/builds.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable the Style/PreferredHashMethods coprc/enable-PreferredHashMethods-copRémy Coutable2017-06-021-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add missing specsKamil Trzcinski2017-06-011-4/+4
|
* Fix data inconsistency issue for old artifacts by moving them to a currently ↵Kamil Trzcinski2017-06-011-1/+1
| | | | used path
* Optimise trace handling code to use streaming instead of full readKamil Trzciński2017-04-061-7/+5
|
* Backport API changes needed to fix sticking in EEbackport-sticking-api-helper-changesYorick Peterse2017-03-311-10/+5
| | | | | | These changes are ported over from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1502 to reduce the number of merge conflicts that may occur.
* Refactor JobRequest response structureTomasz Maczukin2017-03-021-1/+1
|
* Backport new behavior to CI APIRobert Schilling2017-02-281-0/+1
|
* rubocop: Align the operands of an expressionLin Jen-Shin2017-02-151-2/+2
| | | | | | C: Style/MultilineOperationIndentation: Align the operands of an expression in an assignment spanning multiple lines.
* Use the same syntax for default expirationLin Jen-Shin2017-02-151-1/+4
| | | | | | | | Feedback: * https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23343951 * https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23344036 * https://gitlab.com/gitlab-org/gitlab-ce/issues/27762#note_23344797
* Initial implementation for default artifacts expirationLin Jen-Shin2017-02-151-1/+1
| | | | TODO: Add tests and screenshots
* Return struct instead of multiple valuesKamil Trzcinski2017-01-251-5/+5
|
* Fix specsKamil Trzcinski2017-01-251-0/+1
|
* Fix picking CI buildsKamil Trzcinski2017-01-251-9/+15
| | | | | The conflict happens when we try to update a build, but fail to do so due to fact that we update the same build concurrently for two different runners.
* Remove unneeded code and fix offensesbackport-ee-changes-for-build-minutesKamil Trzcinski2017-01-251-1/+1
|
* Backport changes introduced by ↵Kamil Trzcinski2017-01-201-2/+2
| | | | https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1083
* Merge remote-tracking branch 'origin/master' into 21698-redis-runner-last-buildKamil Trzcinski2017-01-191-13/+6
|\
| * Use a separate method to skip validationLin Jen-Shin2016-12-191-1/+1
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8091#note_20222666
| * Give forbidden if project for the build was deletedLin Jen-Shin2016-12-151-13/+6
| | | | | | | | Closes #25309
* | WIP: Add tests and make sure that headers are set21698-redis-runner-last-buildLin Jen-Shin2017-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | * We realized that headers were not set whenever we give 204 because `render_api_error!` doesn't preserve the headers. * We also realized that `update_runner_info` would be called in POST /builds/register every time therefore runner is updated every time, ticking the queue, making this last_update didn't work very well, and the test would be failing due to that.
* | Do things in the correct orderKim "BKC" Carlbäcker2016-12-161-1/+2
| |
* | #NamingThingsKim "BKC" Carlbäcker2016-12-161-8/+4
| |
* | Move redis-logic into Ci::RunnerKim "BKC" Carlbäcker2016-12-151-8/+3
| |
* | lintingKim "BKC" Carlbäcker2016-12-151-2/+2
| |
* | typo-oKim "BKC" Carlbäcker2016-12-141-1/+1
| |
* | First attemptKim "BKC" Carlbäcker2016-12-141-0/+17
|/
* Update runner version only when updating contacted_atKamil Trzcinski2016-10-031-3/+3
|
* Change response for /ci/api/v1/builds/register.json from 404 to 204Tomasz Maczukin2016-09-131-1/+1
|
* Merge branch 'gitlab-workhorse-safeties' into 'master' Jacob Vosmaer (GitLab)2016-09-091-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Security and safety improvements for gitlab-workhorse integration Companion to https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/60 - Use a custom content type when sending data to gitlab-workhorse - Verify (using JWT and a shared secret on disk) that internal API requests came from gitlab-workhorse This will allow us to build features in gitlab-workhorse that require more trust, and protect us against programming mistakes in the future. This is designed so that no action is required for installations from source. For omnibus-gitlab we need to add code that manages the shared secret. See merge request !5907
| * Verify JWT messages from gitlab-workhorseJacob Vosmaer2016-09-051-1/+3
| |
* | Change update interval of runners when trying to preserve contacted_atchange-update-interval-of-runnersKamil Trzcinski2016-09-071-1/+1
|/
* Tracking of custom eventscustom-events-trackingYorick Peterse2016-08-171-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GitLab Performance Monitoring is now able to track custom events not directly related to application performance. These events include the number of tags pushed, repositories created, builds registered, etc. The use of these events is to get a better overview of how a GitLab instance is used and how that may affect performance. For example, a large number of Git pushes may have a negative impact on the underlying storage engine. Events are stored in the "events" measurement and are not prefixed with "rails_" or "sidekiq_", this makes it easier to query events with the same name triggered from different parts of the application. All events being stored in the same measurement also makes it easier to downsample data. Currently the following events are tracked: * Creating repositories * Removing repositories * Changing the default branch of a repository * Pushing a new tag * Removing an existing tag * Pushing a commit (along with the branch being pushed to) * Pushing a new branch * Removing an existing branch * Importing a repository (along with the URL we're importing) * Forking a repository (along with the source/target path) * CI builds registered (and when no build could be found) * CI builds being updated * Rails and Sidekiq exceptions Fixes gitlab-org/gitlab-ce#13720
* Use AR callbacks as suggested by:Lin Jen-Shin2016-06-291-1/+0
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12744656
* Prefer Ci::Build#erase_artifacts!Lin Jen-Shin2016-06-281-2/+1
|
* Just save the size in total rather than individual filesLin Jen-Shin2016-06-281-1/+1
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
* Introduce ci_builds.artifacts_sizes as JSON:Lin Jen-Shin2016-06-281-0/+1
| | | | | | | | | | | | | | | We store the sizes as a hash from path to bytes like: ``` ruby {'ci_artifacts.txt' => 27, 'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif' => 71759, 'other_artifacts_0.1.2/doc_sample.txt' => 1314, 'rails_sample.jpg' => 35255, 'tests_encoding/utf8 test dir ✓/regular_file_2' => 7} ``` So that it's easier to access than reading gzip file again.
* Support expiration date in CI API when uploading artifactsKamil Trzcinski2016-06-131-1/+1
|
* Allow to expire build artifactsKamil Trzcinski2016-06-131-0/+2
|
* Fix Build#append_trace method usage when trace file doesn't exists yetTomasz Maczukin2016-04-201-2/+3
|
* Fix some typos in documentationTomasz Maczukin2016-04-201-1/+1
| | | | [ci skip]
* Add documentation of incremental trace update APITomasz Maczukin2016-04-201-1/+2
| | | | [ci skip]
* Make sure that appending is done on a valid lengthTomasz Maczukin2016-04-201-1/+11
|
* Add range checkingTomasz Maczukin2016-04-201-4/+16
|
* Add incremental build trace update APITomasz Maczukin2016-04-201-0/+9
|
* Move build eraseable API to proper API contextGrzegorz Bizon2016-02-191-18/+1
|
* Do not allow to modify build if it has been erasedGrzegorz Bizon2016-02-191-0/+3
|
* Use DELETE verb for erasing a build contentGrzegorz Bizon2016-02-191-2/+4
| | | | Also added API specs for that
* And CI API endpoint where user can erase a buildGrzegorz Bizon2016-02-191-0/+16
|
* Fix CI runner version not being properly updated when asking for a buildfix-ci-runners-version-updateKamil Trzcinski2016-01-271-1/+1
| | | | | | Due to broken implementation of attribute_for_keys the runner information was not updated correctly. This MR adds test to check that such scenario will never happen again.
* Let the CI runner know about builds that this build depends onci/build_dependenciesKamil Trzcinski2016-01-141-2/+2
| | | | This allows us to implement artifacts passing: runner will download artifacts from all prior builds
* Refactor build artifacts upload API endpointGrzegorz Bizon2016-01-141-8/+7
|