summaryrefslogtreecommitdiff
path: root/lib/ci/api
Commit message (Collapse)AuthorAgeFilesLines
* 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-193-16/+30
|\
| * Don't instrument 405 Grape calls26051-fix-missing-endpoint-route-methodRémy Coutable2017-01-091-0/+10
| | | | | | | | | | | | Fixes #26051. Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Ensure nil User-Agent doesn't break the CI APIRémy Coutable2016-12-211-1/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Use a block to insert extra check for authenticate_build!fix-forbidden-for-build-api-for-deleted-projectLin Jen-Shin2016-12-201-3/+6
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8091#note_20253762
| * Prefer unless over if notLin Jen-Shin2016-12-191-1/+1
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/builds/7606797
| * Use a separate method to skip validationLin Jen-Shin2016-12-192-3/+8
| | | | | | | | | | 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-152-15/+11
| | | | | | | | 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-152-12/+3
| |
* | lintingKim "BKC" Carlbäcker2016-12-151-2/+2
| |
* | typo-oKim "BKC" Carlbäcker2016-12-141-1/+1
| |
* | Add BuildQueueWorker for injecting redis-keysKim "BKC" Carlbäcker2016-12-141-0/+1
| |
* | First attemptKim "BKC" Carlbäcker2016-12-142-0/+20
|/
* Send credentials array with build dataTomasz Maczukin2016-11-211-3/+5
|
* Send registry_url with build data to GitLab RunnerTomasz Maczukin2016-11-161-0/+4
|
* Extract method that checks if ci runner needs updateGrzegorz Bizon2016-10-031-4/+11
|
* Update runner version only when updating contacted_atKamil Trzcinski2016-10-032-14/+10
|
* Merge branch 'master' into per-build-tokenKamil Trzcinski2016-09-191-0/+9
|\
| * Properly create deployment using all possible optionsKamil Trzcinski2016-09-191-0/+9
| |
* | Fix most of specsKamil Trzcinski2016-09-151-2/+2
| |
* | Merge remote-tracking branch 'origin/master' into per-build-tokenKamil Trzcinski2016-09-152-1/+9
|\ \ | |/ | | | | | | # Conflicts: # db/schema.rb
| * Change response for /ci/api/v1/builds/register.json from 404 to 204Tomasz Maczukin2016-09-132-1/+9
| |
* | Use a permissions of user to access all dependent projects from CI jobs ↵Kamil Trzcinski2016-09-131-3/+11
|/ | | | (this also includes a container images, and in future LFS files)
* 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-072-4/+6
|/
* Add Sentry logging to API callsadd-sentry-logging-to-apiStan Hu2016-08-241-10/+2
| | | | Closes #21043
* 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.
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2016-06-172-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/runner-lock-on-project * upstream/master: (337 commits) Update CHANGELOG for !4659 Center the header logo for all Devise emails Add previews for all customized Devise emails Customize the Devise `unlock_instructions` email Customize the Devise `reset_password_instructions` email Customize the Devise `password_change` emails Use gitlab-git 10.2.0 Use Git cached counters on project show page Fix indentation scss-lint errors Added title attribute to enties in tree view Closes #18353 Banzai::Filter::ExternalLinkFilter use XPath Reduce queries in IssueReferenceFilter Use gitlab_git 10.1.4 Fixed ordering in Project.find_with_namespace Fix images in emails Banzai::Filter::UploadLinkFilter use XPath Turn Group#owners into a has_many association Make project_id nullable CHANGELOG [ci skip] CHANGELOG [ci skip] ...
| * Improve design based on reviewKamil Trzcinski2016-06-131-2/+2
| |
| * Support expiration date in CI API when uploading artifactsKamil Trzcinski2016-06-132-1/+2
| |
| * Allow to expire build artifactsKamil Trzcinski2016-06-131-0/+2
| |
* | Merge branch 'master' into feature/runner-lock-on-projectLin Jen-Shin2016-06-141-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (147 commits) Update CHANGELOG Remove deprecated issues_tracker and issues_tracker_id from project Schema doesn’t reflect the changes of the last 3 migrations Revert CHANGELOG Also rename "find" in the specs Change to new Notes styleguide Add guide on changing a document's location Change logs.md location in README Move logs/logs.md to administration/logs.md Make "four phase test" Only show branches for revert / cherry-pick Instrument all Banzai::ReferenceParser classes Removed old comment from update_column_in_batches Update columns in batches until no rows are left Remove counters from Pipeline navigation Handle NULL migration errors in migration helpers Fix typo causing related branches to Error 500 Improved SVG sanitizer specs to include smoke tests for clean. Refactored SVG sanitizer Added SVG sanitizer fix to the changelog ...
| * Fix expose of TriggerRequestKamil Trzcinski2016-06-101-1/+1
| |
| * Fix CI TriggerRequest entityrename-ci-commit-phase-4Kamil Trzcinski2016-06-091-1/+1
| |
* | Prefer attributes_for_keys so that it ignores nilsLin Jen-Shin2016-06-091-7/+3
| | | | | | | | Also add a test for setting locked.
* | WIP, try to add views for locked runnersLin Jen-Shin2016-06-091-1/+2
|/
* Add minor corrections related to config of runnerGrzegorz Bizon2016-05-191-1/+1
|
* Improve setting default runner attrs when using APIGrzegorz Bizon2016-05-191-2/+5
|